Skip to content

Order your coffee in a DM

اطلب قهوتك في رسالة

Café Ordering Bot takes coffee orders across Messenger, Instagram, and web chat. Gemini extracts what the customer asked for in Arabic, English, or Franco, while Google Sheets and deterministic workflow rules control pricing, stock, hours, and kitchen notifications.

n8nGeminiMeta Graph APINext.jsTypeScriptGoogle SheetsTelegram

Sample DM exchange

عايز ٢ سبانش لاتيه، توصيل على المعادي
Order confirmed · 2 × Spanish Latte + 25 EGP delivery. Sent to kitchen & Telegram.

Menu items

14

Arabic + English

n8n workflows

4

Setup, bot, kitchen, specials

Delivery fee

25 EGP

Fixed flat rate

Café hours

08:00 – 00:00

Daily confirmation window

Live portal client

Try the bot live

Every reply, cart item, hour status, and order update below comes directly from live n8n webhooks via Next.js server routes. Nothing is mocked or calculated in the browser.

The same bot also answers on Messenger and Instagram.

Café Ordering Bot · Web Chat

Live session · Arabic, English, or Franco

Message Café Ordering Bot

Send a message below or pick a quick-reply chip. Replies, cart totals, and order IDs come straight from n8n.

How it works

Deterministic rules around AI extraction

The AI only reads meaning; items, prices, totals, hours and fees always come from the sheet and fixed rules.

  1. 01

    A DM arrives

    Messages from Messenger, Instagram, or the portal webhook land in n8n and trigger a single normalized turn.

  2. 02

    Gemini reads it

    Gemini turns Arabic, English, or Franco text into structured JSON: intent, menu IDs, quantities, delivery mode, and language.

  3. 03

    Rules build the reply

    Fixed JavaScript rules check the Google Sheet Menu, enforce the 20-item limit and café hours, and compute exact totals.

  4. 04

    The kitchen takes over

    Confirmed orders append to Orders and ping Telegram. Kitchen status updates automatically message the customer.

Workflow JSON files

Served directly from /workflows/*.json for import into n8n.

Workflow 0 · Setup Sheet

Creates the spreadsheet tabs and seeds the 14-item menu once.

JSON

Workflow 1 · Order Bot

Handles Messenger, Instagram, and portal chat orders via Gemini + Rules.

JSON

Workflow 2 · Kitchen & Status

Updates order status from the kitchen form and notifies the customer.

JSON

Workflow 3 · Daily Specials

Posts the daily café special and serves GET /webhook/fenjan-specials.

JSON

Built with

  • n8n (4 modular workflows)
  • Google Gemini for natural-language parsing
  • Meta Graph API (Messenger, Instagram & Facebook Page)
  • Google Sheets (Menu, Carts, Orders, Specials, Errors)
  • Telegram alerts & Next.js / TypeScript proxy routes

Safeguards

  • Unknown or unavailable items are named, never added
  • Max 20 of one item; delivery requires a street address
  • Orders confirm only 08:00 to midnight
  • Unreadable messages escalate directly to a person
  • Every failure is logged in Google Sheets and sent to Telegram

Run it yourself

  1. Import the four workflow JSON files into n8n.
  2. Connect your Meta, Google Sheets, Telegram, and Gemini credentials.
  3. Run Workflow 0 once to initialize the spreadsheet structure and menu.
  4. Fill the Config nodes with your Sheet ID and webhook values.
  5. Activate workflows 1, 2, and 3, then set the three FENJAN_*_URL vars.