Automation library · AI assistants

Wix chat auto-responder with OpenAI

Started by another system calling it. It calls services over plain HTTP rather than through connectors. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 29 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

29 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
2Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 2Model 6Logic 12Service 9

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

  1. 1WebhookWebhookStarts it
  2. 2Send EmailEmail Send ToolService
  3. 3OpenAI Chat Model1Lm Chat Open AiModel
  4. 4Window Buffer Memory1Memory Buffer WindowModel
  5. 5Window Buffer MemoryMemory Buffer WindowModel
  6. 6OpenAI Chat Model2Lm Chat Open AiModel
  7. 7Send Email1Email Send ToolService
  8. 8When Executed by Another WorkflowExecute Workflow triggerStarts it
  9. 9Execute WorkflowExecute WorkflowLogic
  10. 10AI AgentAgentModel
  11. 11AI Agent1AgentModel
  12. 12HTTP Request1Http RequestService
  13. 13IfIfLogic
  14. 14Code6CodeLogic
  15. 15Code5CodeLogic
  16. 16HTTP Request2Http RequestService
  17. 17HTTP Request3Http RequestService
  18. 18Loop Over Items1Split In BatchesLogic
  19. 19Loop Over ItemsSplit In BatchesLogic
  20. 20HTTP Request5Http RequestService
  21. 21HTTP Request4Http RequestService
  22. 22HTTP RequestHttp RequestService
  23. 23HTTP Request6Http RequestService
  24. 24Code1CodeLogic
  25. 25CodeCodeLogic
  26. 26If2IfLogic
  27. 27If1IfLogic
  28. 28Human reponse within last hour, END1No OpLogic
  29. 29End chatNo OpLogic

How it's built

Starts on
Another system calling it
Steps
29, with 3 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
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, 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. 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 29 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 29 steps before you point it at anything that matters.