Automation library ยท Customer support

Route WhatsApp customer support with OpenAI

Started by another system calling it, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to OpenAI. 48 steps, 7 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 4Model 5Logic 20Service 19

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

  1. 1๐Ÿ“ฅ WhatsApp WebhookWebhookStarts it
  2. 2๐Ÿ“Š Read Support Control PanelGoogle Sheets ToolService
  3. 3๐Ÿง  OpenAI Chat Model (Reply)Lm Chat Open AiModel
  4. 4๐Ÿ“„ FAQ Knowledge BaseGoogle Docs ToolService
  5. 5๐Ÿ•™ Daily Summary TriggerSchedule triggerStarts it
  6. 6๐Ÿง  OpenAI Chat Model (Summary)Lm Chat Open AiModel
  7. 7๐Ÿ” Parse Evolution PayloadCodeLogic
  8. 8๐Ÿง  Evaluate Intent & Support StateOpen AiModel
  9. 9๐Ÿค– Generate Customer ReplyAgentModel
  10. 10๐Ÿ“Š Read All ConversationsGoogle SheetsService
  11. 11๐Ÿค– Generate Daily SummaryAgentModel
  12. 12๐Ÿšฆ Skip CheckIfLogic
  13. 13๐Ÿ“ค Parse AI ResponseCodeLogic
  14. 14๐Ÿ•™ Daily Summary Window?CodeLogic
  15. 15โณ Find Inactive ConversationsCodeLogic
  16. 16๐Ÿ“ง Format Daily Summary EmailCodeLogic
  17. 17โœ… Respond 200 (Skip)Respond To WebhookStarts it
  18. 18โŒจ๏ธ Send Typing PresenceEvolution ApiService
  19. 19๐Ÿ’พ Save Bot ReplyGoogle SheetsService
  20. 20๐Ÿ”€ Session Complete?IfLogic
  21. 21Send WhatsApp ReplyEvolution ApiService
  22. 22๐Ÿ“Ž Has File?IfLogic
  23. 23๐Ÿ“ˆ Aggregate Daily DataCodeLogic
  24. 24๐Ÿ“ง Send Daily SummaryGmailService
  25. 25๐Ÿ’พ Save User MessageGoogle SheetsService
  26. 26๐Ÿ“Ž Email Wait For Upload?IfLogic
  27. 27โœ… Respond 200Respond To WebhookStarts it
  28. 28๐Ÿ“‚ Ensure Phone FolderGoogle DriveService
  29. 29โš™๏ธ Read Control Panel (Daily)Google SheetsService
  30. 30๐Ÿงน Clear Pending Timer On User ReplyCodeLogic
  31. 31๐Ÿ“‚ Search Chat FolderGoogle DriveService
  32. 32๐Ÿ“ง Route to DepartmentGmailService
  33. 33๐Ÿ“ Folder Exists?IfLogic
  34. 34๐Ÿงฉ Aggregate Daily ContextAggregateLogic
  35. 35๐Ÿ“‹ Read Chat MemoryGoogle SheetsService
  36. 36๐Ÿ“ Chat Folder Exists?IfLogic
  37. 37๐Ÿ”— Get Folder IDCodeLogic
  38. 38๐Ÿ“‚ Create Phone FolderGoogle DriveService
  39. 39๐Ÿงพ Format Conversation HistoryCodeLogic
  40. 40๐Ÿ”— Get Chat Folder IDCodeLogic
  41. 41๐Ÿ“‚ Create Chat FolderGoogle DriveService
  42. 42๐Ÿ“ฅ Download WhatsApp MediaEvolution ApiService
  43. 43โœ๏ธ Make Chat BinaryCodeLogic
  44. 44๐Ÿ“ฆ Prepare Uploaded File BinaryCodeLogic
  45. 45๐Ÿ“„ Upload Chat TextGoogle DriveService
  46. 46โ˜๏ธ Upload Customer AttachmentGoogle DriveService
  47. 47๐Ÿ’พ Save Attachment LinkGoogle SheetsService
  48. 48๐Ÿ“จ Complete After Upload?IfLogic

How it's built

Starts on
Another system calling it
Steps
48, with 7 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Drive, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Google Sheets accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 48 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 48 steps before you point it at anything that matters.