AI-powered food order processing with Facebook Messenger, Google Sheets & Calendar
Needs changesWhat this workflow does
This AI workflow has 17 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects OpenRouter Chat Model, Google Calendar and Google Sheets.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Validate Webhook Subscription (If): checks a condition and branches into true / false
- AI Agent: runs an AI agent, with model: OpenRouter Model; memory: Memory Buffer (Customer Session)
- Respond Challenge (Respond to Webhook): sends the response back to the webhook caller
- Respond 202 (Error fallback) (Respond to Webhook): sends the response back to the webhook caller
- Respond 200 OK (Respond to Webhook): sends the response back to the webhook caller
- Check for Menu Trigger (If): checks a condition and branches into true / false
- Send Message to FB (Image) (HTTP Request): calls an HTTP API (POST)
- Send Generic Text (HTTP) (HTTP Request): calls an HTTP API (POST)
- Validate Parsed Order (If): checks a condition and branches into true / false
- Parse Order Text (Code): runs custom JavaScript code
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (Order Assistant) (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (Order Assistant) (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Respond to Webhook
n8n-nodes-base.respondToWebhook - Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Calendar
n8n-nodes-base.googleCalendar - Google Sheets
n8n-nodes-base.googleSheets
From the author
📌 Title (SEO-Friendly) Automate Facebook Messenger orders to Google Sheets and Google Calendar --- Introduction This workflow automates Facebook Messenger order management by connecting your Facebook Page with Google Sheets and Google Calendar. It’s designed…