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.
Sample DM exchange
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.
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.
Café Kitchen · Telegram
staffNew orders and "call a human" alerts arrive here. This is the message the kitchen gets in Telegram.
No alerts yet. Try ordering something, or write "I need a human".
Live cart
No items in your cart yet.
Cart lines and totals appear directly from n8n.
Today's special
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.
- 01
A DM arrives
Messages from Messenger, Instagram, or the portal webhook land in n8n and trigger a single normalized turn.
- 02
Gemini reads it
Gemini turns Arabic, English, or Franco text into structured JSON: intent, menu IDs, quantities, delivery mode, and language.
- 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.
- 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.
Workflow 1 · Order Bot
Handles Messenger, Instagram, and portal chat orders via Gemini + Rules.
Workflow 2 · Kitchen & Status
Updates order status from the kitchen form and notifies the customer.
Workflow 3 · Daily Specials
Posts the daily café special and serves GET /webhook/fenjan-specials.
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
- Import the four workflow JSON files into n8n.
- Connect your Meta, Google Sheets, Telegram, and Gemini credentials.
- Run Workflow 0 once to initialize the spreadsheet structure and menu.
- Fill the Config nodes with your Sheet ID and webhook values.
- Activate workflows 1, 2, and 3, then set the three FENJAN_*_URL vars.