Automation library · Customer support

Handle customer support queries with Redis and LangCache

Started by someone opening a chat with 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. 28 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 2Model 14Logic 10Service 2

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2Structured Output ParserOutput Parser StructuredModel
  3. 3Embeddings OpenAIEmbeddings Open AiModel
  4. 4Embeddings OpenAI1Embeddings Open AiModel
  5. 5Default Data LoaderDocument Default Data LoaderModel
  6. 6OpenAI Chat ModelLm Chat Open AiModel
  7. 7Schedule TriggerSchedule triggerStarts it
  8. 8Simple MemoryMemory Buffer WindowModel
  9. 9Simple Memory1Memory Buffer WindowModel
  10. 10Simple Memory2Memory Buffer WindowModel
  11. 11LangCache ConfigSetLogic
  12. 12decompose_queryAgentModel
  13. 13Redis Vector Store2Vector Store RedisModel
  14. 14Redis Vector StoreVector Store RedisModel
  15. 15synthesize_response_nodeAgentModel
  16. 16search_node1AgentModel
  17. 17example DataSetLogic
  18. 18Split OutSplit OutLogic
  19. 19evaluate_qualityOpen AiModel
  20. 20Loop Over ItemsSplit In BatchesLogic
  21. 21getScoreSetLogic
  22. 22AggregateAggregateLogic
  23. 23Search LangCacheHttp RequestService
  24. 24low quality ?IfLogic
  25. 25Is Cache Hit?IfLogic
  26. 26current_iterationSetLogic
  27. 27increase iterationSetLogic
  28. 28Save to LangCacheHttp RequestService

How it's built

Starts on
Someone opening a chat with it
Steps
28, with 2 branches, 1 loop 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 someone opening a chat with 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 28 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 28 steps before you point it at anything that matters.