Automation library · Scheduling

AI sales agent: WhatsApp, FB, IG, OpenAI, Airtable, Supabase

Started by an incoming WhatsApp message, and works across Airtable, Supabase vectors and WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 50 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

50 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 9Model 18Logic 12Service 11

The steps in the order they run, from what starts it.

  1. 1Facebook TriggerWebhookStarts it
  2. 2Instagram TriggerWebhookStarts it
  3. 3Embeddings OpenAIEmbeddings Open AiModel
  4. 4OpenAI Chat Model1Lm Chat Open AiModel
  5. 5Calendar AgentTool WorkflowModel
  6. 6CRM AgentTool WorkflowModel
  7. 7Postgres Chat MemoryMemory Postgres ChatModel
  8. 8WhatsAppWhats App triggerStarts it
  9. 9OpenAI Chat ModelLm Chat Open AiModel
  10. 10Airtable Form SubmittedWebhookStarts it
  11. 11Embeddings OpenAI1Embeddings Open AiModel
  12. 12OpenAI Chat Model2Lm Chat Open AiModel
  13. 13Postgres Chat Memory1Memory Postgres ChatModel
  14. 14OpenAI Chat Model3Lm Chat Open AiModel
  15. 15Calendar Agent1Tool WorkflowModel
  16. 16When chat message receivedChat triggerStarts it
  17. 17Respond to Webhook - facebook postRespond To WebhookStarts it
  18. 18Respond to Webhook - facebook getRespond To WebhookStarts it
  19. 19Respond to Webhook - instagram postRespond To WebhookStarts it
  20. 20Respond to Webhook - instagram getRespond To WebhookStarts it
  21. 21Demo SupabaseVector Store SupabaseModel
  22. 22sales_technique_knowledgeTool Vector StoreModel
  23. 23AI AgentAgentModel
  24. 24Get LeadAirtableService
  25. 25AirtableAirtableService
  26. 26Demo Supabase1Vector Store SupabaseModel
  27. 27sales_technique_knowledge1Tool Vector StoreModel
  28. 28AI Agent1AgentModel
  29. 29Edit Fields - chatSetLogic
  30. 30If is not echo - facebookIfLogic
  31. 31If is not echo - instagramIfLogic
  32. 32SwitchSwitchLogic
  33. 33Handle Message TypesSwitchLogic
  34. 34Create ContactAirtableService
  35. 35No Operation, do nothingNo OpLogic
  36. 36Edit Fields - facebookSetLogic
  37. 37Sales Agent Demo - typing_onFacebook Graph ApiService
  38. 38Edit Fields - instagramSetLogic
  39. 39Reply To UserWhats AppService
  40. 40Facebook Graph API - Sales Agent DemoFacebook Graph ApiService
  41. 41Instagram Graph API - smb.sales.agent.demoHttp RequestService
  42. 42Output - chatSetLogic
  43. 43Edit Fields - chat1SetLogic
  44. 44WhatsApp Business CloudWhats AppService
  45. 45Reply To User1Whats AppService
  46. 46Edit Fields - formSetLogic
  47. 47HTTP RequestHttp RequestService
  48. 48WhatsApp Business Cloud2Whats AppService
  49. 49OpenAIOpen AiModel
  50. 50Edit Fields - chat2SetLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
50, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Airtable, Supabase vectors, WhatsApp
Model
OpenAI
Retrieval
Answers are drawn from documents you supply, not from the model alone

Questions

What does it need to run?

An n8n account, plus your own Airtable, Supabase vectors and WhatsApp accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 50 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 50 steps before you point it at anything that matters.