Answer WhatsApp shop messages with Claude, Twilio, Google Sheets and Gmail
Needs changesWhat this workflow does
This AI workflow has 26 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Anthropic Chat Model, Google Sheets, Gmail and Twilio.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Settings (Edit Fields (Set)): sets 13 fields: shop_name, shop_description, service_area…
- Verify Twilio signature (Code): runs custom JavaScript code
- Signature valid? (If): checks a condition and branches into true / false
- Extract sender and message (Edit Fields (Set)): sets 5 fields: from, to, name…
- Reject unsigned request (Respond to Webhook): sends the response back to the webhook caller
- Classify message intent (AI Agent): runs an AI agent, with model: Claude Haiku: classify
- Route by intent (Switch): routes items into 5 branches
- Extract order details (AI Agent): runs an AI agent, with model: Claude Haiku: extract order
- Read FAQ tab (Google Sheets): uses Google Sheets
- Log complaint to Complaints tab (Google Sheets): append
…plus 9 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Anthropic + Google Sheets templates (261) · Other Anthropic + Gmail templates (192)
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 Classify message intent (v1.7), Extract order details (v1.7), Draft order confirmation (v1.7)…: replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Classify message intent (v1.7), Extract order details (v1.7), Draft order confirmation (v1.7), Answer from FAQ (v1.7), Draft complaint reply (v1.7), Draft social reply (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Switch
n8n-nodes-base.switch - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail - Twilio
n8n-nodes-base.twilio
From the author
Quick overview This workflow receives incoming WhatsApp messages from Twilio, uses Anthropic Claude to classify and draft replies in your shop’s voice, and logs orders, complaints, and review items to Google Sheets while alerting the owner about complaints…