# AI chatbot call center: Taxi service with Grok and Postgres: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/ai-chatbot-call-center-taxi-service-with-grok-and-postgres (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# 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.

Large Calls a model: Grok Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-chatbot-call-center-taxi-service-with-grok-and-postgres)

**33 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 3 Logic 17 Service 11

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

- 1 **Flow Trigger** Execute Workflow trigger *Starts it*
- 2 **Test Trigger** Chat trigger *Starts it*
- 3 **Postgres Chat Memory** Memory Postgres Chat *Model*
- 4 **Update User Session** Redis Tool *Service*
- 5 **xAI @grok-2-1212** Lm Chat XAi Grok *Model*
- 6 **Load User Memory** Postgres Tool *Service*
- 7 **Save User Memory** Postgres Tool *Service*
- 8 **Create Route Data** Redis Tool *Service*
- 9 **Find Route Distance** Http Request Tool *Service*
- 10 **Input** Set *Logic*
- 11 **Test Fields** Set *Logic*
- 12 **AI Agent** Agent *Model*
- 13 **Service Cache** Redis *Service*
- 14 **Route Data** Redis *Service*
- 15 **Error Output** Set *Logic*
- 16 **If Service Cache** If *Logic*
- 17 **If Route Data** If *Logic*
- 18 **Call Back** Execute Workflow *Logic*
- 19 **Parse Service** Code *Logic*
- 20 **Load Service Data** Postgres *Service*
- 21 **Parse Route** Code *Logic*
- 22 **Output** Set *Logic*
- 23 **Service** Set *Logic*
- 24 **If Active** If *Logic*
- 25 **Taxi Service Provider** Execute Workflow *Logic*
- 26 **Switch** Switch *Logic*
- 27 **Reset Session** Redis *Service*
- 28 **Save Service Cache** Redis *Service*
- 29 **Inactive Output** Set *Logic*
- 30 **Chinese** Set *Logic*
- 31 **Japanese** Set *Logic*
- 32 **English** Set *Logic*
- 33 **Delete Route Data** Redis *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-chatbot-call-center-taxi-service-with-grok-and-postgres)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Redis](https://millionrounds.com/workflows?service=Redis#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Build an omnichannel OTP verification flow with Postgres** 33 steps · Email, Postgres](https://millionrounds.com/workflow/build-an-omnichannel-otp-verification-flow-with-postgres)
- [**Create a self-updating RAG chatbot with Google Drive** 34 steps · calls a model · Google Drive, Postgres](https://millionrounds.com/workflow/create-a-self-updating-rag-chatbot-with-google-drive)
- [**From sitemap crawling to vector storage: Creating an efficient** 35 steps · calls a model · Postgres, Supabase](https://millionrounds.com/workflow/from-sitemap-crawling-to-vector-storage-creating-an-efficien)
- [**Find and score event and speaker opportunities with Gumloop** 35 steps · Gmail, Postgres](https://millionrounds.com/workflow/find-and-score-event-and-speaker-opportunities-with-gumloop)
- [**Filter URLs with Gemini and Groq** 37 steps · calls a model · Postgres](https://millionrounds.com/workflow/filter-urls-with-gemini-and-groq)
- [**Automated email responses with OpenAI and Supabase** 27 steps · calls a model · Outlook, Postgres](https://millionrounds.com/workflow/automated-email-responses-with-openai-and-supabase)
