Automation library · Data collection

Taxi service provider with Grok and Postgres

Started by someone opening a chat with it, and works across Postgres and Redis. It hands the judgement calls to Grok. 24 steps, 4 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: Grok

24 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 14Service 5

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

  1. 1Flow TriggerExecute Workflow triggerStarts it
  2. 2Test TriggerChat triggerStarts it
  3. 3xAI @grok-2-1212Lm Chat XAi GrokModel
  4. 4Create Booking DataPostgres ToolService
  5. 5CalculatorTool CalculatorModel
  6. 6InputSetLogic
  7. 7Test FieldsSetLogic
  8. 8AI AgentAgentModel
  9. 9Provider CacheRedisService
  10. 10CodeCodeLogic
  11. 11Error Output1SetLogic
  12. 12Provider Cache SwitchSwitchLogic
  13. 13If Valid?IfLogic
  14. 14Call BackExecute WorkflowLogic
  15. 15Parse ProviderCodeLogic
  16. 16Load Provider DataPostgresService
  17. 17If ScoreIfLogic
  18. 18Test OutputSetLogic
  19. 19ProviderSetLogic
  20. 20If ActiveIfLogic
  21. 21Output w/ ScoreSetLogic
  22. 22Output w/o ScoreSetLogic
  23. 23Provider NumberRedisService
  24. 24Save Provider CacheRedisService

How it's built

Starts on
Someone opening a chat with it
Steps
24, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
Postgres, Redis
Model
Grok

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. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

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