Real-time lead response across social channels with Llama AI & Google Sheets
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs when an HTTP POST request hits its webhook URL (plus 4 other triggers). Along the way it connects Google Sheets, Gmail and WhatsApp Business Cloud. It also calls api.groq.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 4 other triggers).
- Normalize Lead Data (Edit Fields (Set)): sets 5 fields: body.lead_name, body.contact_phone, body.message_text…
- Normalize Lead Data (Edit Fields (Set)): sets 5 fields: body.lead_name, body.contact_phone, body.message_text…
- Normalize Lead Data (Edit Fields (Set)): sets 5 fields: body.lead_name, body.contact_phone, body.message_text…
- Normalize Lead Data (Edit Fields (Set)): sets 5 fields: body.lead_name, body.contact_phone, body.message_text…
- Normalize Lead Data (Edit Fields (Set)): sets 6 fields: body.lead_name, body.contact_phone, body.message_text…
- Switch: routes items into 5 branches
- Extract Day and Hours (Code): runs custom JavaScript code
- Is Working Day and Working Hour? (If): checks a condition and branches into true / false
- Code: runs custom JavaScript code
- Get Ai Response (HTTP Request): calls api.groq.com (POST)
…plus 9 more steps. See the full node list below.
Services it uses
HTTP calls to: api.groq.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - HTTP Request
n8n-nodes-base.httpRequest - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
From the author
How it works This workflow acts as an instant SDR that replies to new inbound leads across multiple channels in real time. It first captures and normalizes all incoming lead data into a unified structure. The workflow then evaluates IST working days and…