Automation library · Data collection

AI chatbot call center: Taxi service with Grok and Postgres

Started by someone opening a chat with it, and works across Postgres and Redis. It puts Grok behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 33 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: GrokRetrieval

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

The flow

Starts it 2Model 3Logic 17Service 11

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

  1. 1Flow TriggerExecute Workflow triggerStarts it
  2. 2Test TriggerChat triggerStarts it
  3. 3Postgres Chat MemoryMemory Postgres ChatModel
  4. 4Update User SessionRedis ToolService
  5. 5xAI @grok-2-1212Lm Chat XAi GrokModel
  6. 6Load User MemoryPostgres ToolService
  7. 7Save User MemoryPostgres ToolService
  8. 8Create Route DataRedis ToolService
  9. 9Find Route DistanceHttp Request ToolService
  10. 10InputSetLogic
  11. 11Test FieldsSetLogic
  12. 12AI AgentAgentModel
  13. 13Service CacheRedisService
  14. 14Route DataRedisService
  15. 15Error OutputSetLogic
  16. 16If Service CacheIfLogic
  17. 17If Route DataIfLogic
  18. 18Call BackExecute WorkflowLogic
  19. 19Parse ServiceCodeLogic
  20. 20Load Service DataPostgresService
  21. 21Parse RouteCodeLogic
  22. 22OutputSetLogic
  23. 23ServiceSetLogic
  24. 24If ActiveIfLogic
  25. 25Taxi Service ProviderExecute WorkflowLogic
  26. 26SwitchSwitchLogic
  27. 27Reset SessionRedisService
  28. 28Save Service CacheRedisService
  29. 29Inactive OutputSetLogic
  30. 30ChineseSetLogic
  31. 31JapaneseSetLogic
  32. 32EnglishSetLogic
  33. 33Delete Route DataRedisService

How it's built

Starts on
Someone opening a chat with it
Steps
33, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Postgres, Redis
Model
Grok
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 Postgres and Redis accounts, and a key for Grok. 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 Grok. 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 33 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 33 steps before you point it at anything that matters.