ChatGPTSalesFinding leadsAI score · 68/100AI-assisted edit · no obvious prompt-injection riskn8n.io

n8n Multi-Channel AI Sales Agent: WhatsApp, Facebook, Instagram Auto-Lead & Booking

Route customer messages from WhatsApp, Facebook Messenger, Instagram DM, and n8n Chat through a GPT-4o agent to automatically qualify leads, answer product questions, log to CRM, and book consultations

ExperiencedStepsWorkflowTip
Who
n8n users with self-hosted instances and Langchain node experience who need automated multi-channel sales follow-up
You get
After a customer initiates conversation on any channel, AI identifies intent, queries product knowledge, logs leads to Airtable, and calls a sub-workflow to book consultation times once interest is confirmed
You need
n8n · supabase · whatsapp

Constraints

Prerequisites: self-hosted n8n (Langchain community nodes required); OpenAI API key (GPT-4o + Whisper + Embeddings); Airtable account with base (Contacts/Opportunities tables); Supabase vector database (product knowledge base); PostgreSQL database (conversation memory); WhatsApp Business Cloud, Facebook/Instagram Business accounts with webhook configuration access; Meta Graph API credentials. Note: crmAgent and calendarAgent are sub-workflows not included in this template; you must build or source them separately. All node parameters are empty in workflow.json and require post-import configuration.

What they did

Author samyassine published a 58-node multi-channel AI sales automation workflow on the n8n official template library. The template integrates WhatsApp, Facebook Messenger, Instagram DM, and n8n built-in chat as customer entry points, uses OpenAI GPT-4o as the core conversation model (descriptive mention), PostgreSQL for conversation memory, Supabase vector store for product knowledge, and Airtable for CRM data. The template architecture includes audio message transcription (Whisper), multi-turn intent qualification, sub-workflow invocation (crmAgent for lead logging, calendarAgent for booking), and response routing back to the original channel. A separate Airtable form submission branch automatically sends WhatsApp confirmation messages. The workflow.json also contains AI Agent1 and its supporting nodes (Embeddings OpenAI1, OpenAI Chat Model2/3, Demo Supabase1, Postgres Chat Memory1, sales_technique_knowledge1, Calendar Agent1), but the source description.md does not explain this branch's purpose.

How it went

Source is an n8n official template (author_report), showing complete node structure and connections, with published status and 9249 views. This site has not run or tested the workflow; actual message delivery, transcription accuracy, and booking success rates are unverified.

Worth knowing

1. All node parameters are empty in workflow.json and require individual configuration after import; 2. crmAgent and calendarAgent are sub-workflow references not included in the template and must be built separately; 3. Requires self-hosted n8n with Langchain community nodes installed; 4. Meta platform webhooks require correct verification response configuration or messages will not be received; 5. Audio processing chain is long (WhatsApp Cloud → HTTP → OpenAI → Edit Fields) and failure at any step drops the message; 6. AI Agent system prompt is not provided in the snapshot and must be written for your business; 7. AI Agent1 and related nodes exist in workflow.json but are not described in the source; verify after import whether needed; 8. Source provides no ROI or actual deployment effectiveness data.

n8n workflow template

Structure checked · Not run-tested

Use “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.

Setup and test checklist

Credentials to connect

  • After import, connect your own credentials on auth-required nodes; author secrets are not included.

Configuration to replace

  • Source template is n8n public workflow #4083 (~58 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
  • Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.

Test input and expected output

  • Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
  • Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.

Template changes

  • Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
  • No business-logic edits; verify keys, quotas and privacy compliance before use.

Template retrieved: 2026-10-24

Steps

  1. Import template and configure credentials

    Import workflow.json (58 nodes) into your n8n instance. Configure credentials in sequence: OpenAI API key, Airtable personal access token, Supabase project URL and service role key, PostgreSQL connection string, WhatsApp Business Cloud credentials, Meta Graph API (Facebook/Instagram) credentials. All nodes have empty parameters initially and must be filled per your environment.

  2. Configure WhatsApp trigger and preprocessing branch

    Set up node WhatsApp (type: whatsAppTrigger) to receive messages. Add Get Lead node to query Airtable for existing leads by phone number. Configure Handle Message Types switch: text messages route to Edit Fields - chat1 to prepare AI input; audio messages flow through WhatsApp Business Cloud (get media URL) → HTTP Request (download) → OpenAI Whisper (transcribe) → Edit Fields - chat2 (prepare transcribed text with lead info); unsupported types trigger Reply To User1 with an unprocessable notification.

  3. Configure Facebook Messenger trigger and preprocessing

    Set up Facebook Trigger (Webhook) to receive messages. Add Respond to Webhook - facebook get for webhook verification, Respond to Webhook - facebook post for acknowledgment. Configure If is not echo - facebook to filter out page-sent messages. Add Sales Agent Demo - typing_on to send typing indicator. Configure Edit Fields - facebook to prepare message text, sender ID, and Facebook context.

  4. Configure Instagram DM trigger and preprocessing

    Set up Instagram Trigger (Webhook) to receive messages. Add Respond to Webhook - instagram get for verification, Respond to Webhook - instagram post for acknowledgment. Configure If is not echo - instagram to filter out business account messages. Configure Edit Fields - instagram to prepare message text, sender ID, and Instagram context.

  5. Configure n8n built-in chat trigger

    Set up When chat message received (Chat Trigger) node. Add Edit Fields - chat to prepare user input and session information, routing to the aggregation node.

  6. Configure input aggregation and AI Agent core

    All preprocessed channel data flows through No Operation, do nothing to the AI Agent. Configure AI Agent connected to OpenAI Chat Model node and Postgres Chat Memory node. Per source description, the main agent logic intends to use GPT-4o, but the OpenAI Chat Model node in workflow.json has empty parameters and requires manual model selection after import. You must write the system prompt yourself, setting the agent goal to qualify customers for Paint Protection Film (PPF), Ceramic Coating, or Window Tint.

  7. Configure AI tools: knowledge base, CRM, and calendar

    Connect three tool nodes to AI Agent: (1) sales_technique_knowledge (toolVectorStore) → Demo Supabase vector store + Embeddings OpenAI + OpenAI Chat Model1 for technical and sales knowledge queries; (2) CRM Agent (toolWorkflow sub-workflow) → log name, email, service interest to Airtable and update opportunity status; (3) Calendar Agent (toolWorkflow sub-workflow) → book consultation after CRM logging. Note: crmAgent and calendarAgent are external sub-workflows; create them separately and configure their workflow IDs in the toolWorkflow nodes.

  8. Configure response routing and channel reply

    AI Agent output text routes through Switch node by original channel: WhatsApp → Reply To User node (note: source node name is 'Reply To User' with double space); Facebook → Facebook Graph API - Sales Agent Demo; Instagram → Instagram Graph API - smb.sales.agent.demo (HTTP Request); n8n Chat → Output - chat node.

  9. Configure Airtable form submission branch (optional)

    Set up Airtable Form Submitted Webhook. On receiving data: Airtable node fetches full record → Create Contact in Contacts table → Edit Fields - form prepares notification data → WhatsApp Business Cloud2 sends templated confirmation message to lead.

Prompt you can copy

Setup guidance · Editorial suggestion。Give to setup assistant to review credential completeness, fill missing sub-workflows, verify webhook configuration and AI prompts

This block is the prompt. Ads are never placed here.

You are setting up an n8n multi-channel AI sales agent. I have imported the template workflow.json with 58 nodes, but all node parameters are empty. Please help me check and configure in this order:
1. Credentials: Are OpenAI, Airtable, Supabase, PostgreSQL, WhatsApp Business Cloud, and Meta Graph API all ready?
2. Triggers: Confirm WhatsApp/Facebook/Instagram webhook URLs are registered with their platforms and verification nodes respond correctly to challenges.
3. AI Agent: Help me draft or review the system prompt to ensure the agent properly qualifies for PPF/Ceramic Coating/Window Tint intent, calls CRM Agent after collecting name and email, and calls Calendar Agent after confirming a time.
4. Sub-workflows: crmAgent and calendarAgent are currently missing. Help me design minimum viable versions or confirm existing sub-workflow IDs are filled in the toolWorkflow nodes.
5. Testing: Send a test message from the n8n Chat interface to verify the full pipeline.

Confirm all platform credentials and webhook registration before filling node parameters; missing sub-workflows should be prioritized.

Source

AI sales agent: WhatsApp, FB, IG, OpenAI, Airtable, Supabase auto-booking · samyassine · n8n.io · 2025-05-15

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related