Quick overview
An AI-powered Telegram assistant that manages restaurant bookings end-to-end: shares your menu, checks real-time availability via Google Calendar, confirms or cancels reservations, logs every conversation to Airtable, notifies staff instantly, and escalates tricky requests to a human when needed.
How it works
- Triggers when a guest sends a Telegram message to your bot.
- Uses a DeepSeek-powered AI agent with chat memory to interpret the request, ask for missing booking details, and decide whether to answer a menu question, create a reservation, cancel a reservation, or escalate.
- For menu questions, searches the Menu table in Airtable and replies only with items returned by Airtable.
- For new reservations, checks Google Calendar free/busy for the requested 90-minute slot, creates a Google Calendar event if available, then saves the confirmed booking to Airtable and notifies staff via Telegram.
- For cancellations, searches Airtable for the matching booking, deletes the associated Google Calendar event, updates the Airtable booking status to Cancelled, and notifies staff via Telegram.
- For out-of-scope requests, creates a gotoHuman review request (if configured) so a staff member can follow up.
- Logs the guest message and agent response to an Airtable Call Log table and sends the AI agent’s reply back to the guest in Telegram.
Setup
- Create a Telegram bot with @BotFather and add your Telegram credentials in n8n.
- Add a DeepSeek API key credential for the AI agent.
- Replace the Airtable base/table ID placeholders in the Airtable tool nodes and HTTP request URLs
- Connect Google Calendar OAuth2 credentials, enable the Google Calendar API, and set the Calendar field on all Calendar tools to your actual calendar email address.
- (Optional) Add a gotoHuman API key and replace the form ID used for escalations.