# AI chatbot call center: demo call back with Postgres and Redis: n8n workflow

> Started by someone opening a chat with it, and works across Postgres, Redis and Telegram. 29 steps, 8 branches: large, and worth reading before you trust it...

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

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# AI chatbot call center: demo call back with Postgres and Redis

Started by someone opening a chat with it, and works across Postgres, Redis and Telegram. 29 steps, 8 branches: large, and worth reading before you trust it with anything live.

Large

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

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

**8** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Logic 17 Service 10

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 **Input** Set *Logic*
- 4 **Test Fields** Set *Logic*
- 5 **If Provider No** If *Logic*
- 6 **Provider Cache** Redis *Service*
- 7 **Media Switch1** Switch *Logic*
- 8 **If Provider Cache** If *Logic*
- 9 **If Reply** If *Logic*
- 10 **Output** Set *Logic*
- 11 **Parse Cache** Code *Logic*
- 12 **Load Provider Data** Postgres *Service*
- 13 **Telegram Reply Output** Telegram *Service*
- 14 **Telegram Output** Telegram *Service*
- 15 **Provider** Set *Logic*
- 16 **Save Provider Cache** Redis *Service*
- 17 **Media Switch** Switch *Logic*
- 18 **If Input** If *Logic*
- 19 **If Provider Voice** If *Logic*
- 20 **Create Chat Log Input** Postgres *Service*
- 21 **Create Chat Log Output** Postgres *Service*
- 22 **Switch** Switch *Logic*
- 23 **Chinese,Yue** Set *Logic*
- 24 **Chinese** Set *Logic*
- 25 **Japanese** Set *Logic*
- 26 **English** Set *Logic*
- 27 **Minimax TTS** Http Request *Service*
- 28 **Download Minimax Audio** Http Request *Service*
- 29 **Telegram Voice Output** Telegram *Service*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 29, with 8 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Postgres, Redis, Telegram
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Postgres, Redis and Telegram accounts. 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?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

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.

## 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-demo-call-back-with-postgres-and-redi)
- **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)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**AI chatbot call center: Telegram call in with Postgres** 29 steps · Postgres, Redis](https://millionrounds.com/workflow/ai-chatbot-call-center-telegram-call-in-with-postgres)
- [**Assistant for Telegram chat with OpenAI and Airtable** 29 steps · Airtable, Telegram](https://millionrounds.com/workflow/assistant-for-telegram-chat-with-openai-and-airtable)
- [**Create and manage ERC-20 tokens with Telegram and 1Shot API** 29 steps · Telegram, n8n data table](https://millionrounds.com/workflow/create-and-manage-erc-20-tokens-with-telegram-and-1shot-api)
- [**Match teacher substitutes and send notifications with OpenAI** 29 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/match-teacher-substitutes-and-send-notifications-with-openai)
- [**Monitor favorite YouTube channels with RSS** 29 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/monitor-favorite-youtube-channels-with-rss)
- [**Advanced Slackbot with Postgres** 30 steps · Postgres, Slack](https://millionrounds.com/workflow/advanced-slackbot-with-postgres)
