# Real-time sales quote creation in Odoo with Telegram: n8n workflow

> Started by an incoming Telegram message, and works across Telegram. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/real-time-sales-quote-creation-in-odoo-with-telegram (Millionrounds; every figure on the page links to its filing or article)

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

# Real-time sales quote creation in Odoo with Telegram

Started by an incoming Telegram message, and works across Telegram. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 43 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freal-time-sales-quote-creation-in-odoo-with-telegram)

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

**4** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 14 Logic 15 Service 12

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 3 **Telegram Trigger** Telegram trigger *Starts it*
- 4 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 5 **Sale Quotation1** Tool Workflow *Model*
- 6 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 7 **Google Gemini Chat Model5** Lm Chat Google Gemini *Model*
- 8 **Window Buffer Memory1** Memory Buffer Window *Model*
- 9 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 10 **Create Sales Order SubWorkflow** Tool Workflow *Model*
- 11 **Get Product Pricing** Tool Workflow *Model*
- 12 **From AI** Agent *Model*
- 13 **AI Agent** Agent *Model*
- 14 **From AI1** Agent *Model*
- 15 **Quote Creator** Agent *Model*
- 16 **Check Feedback** Text Classifier *Model*
- 17 **Edit Fields3** Set *Logic*
- 18 **Code** Code *Logic*
- 19 **Telegram2** Telegram *Service*
- 20 **Telegram3** Telegram *Service*
- 21 **Code1** Code *Logic*
- 22 **Telegram1** Telegram *Service*
- 23 **Switch2** Switch *Logic*
- 24 **Switch** Switch *Logic*
- 25 **Switch1** Switch *Logic*
- 26 **Search Customer** Odoo *Service*
- 27 **Product Data** Odoo *Service*
- 28 **Code2** Code *Logic*
- 29 **Edit Fields1** Set *Logic*
- 30 **Check Existing Customer** Switch *Logic*
- 31 **Prepare output** Code *Logic*
- 32 **Create Contact** Odoo *Service*
- 33 **Code7** Code *Logic*
- 34 **Search Customer1** Odoo *Service*
- 35 **Sale Order1** Odoo *Service*
- 36 **Code6** Code *Logic*
- 37 **Prepare Item Lines** Code *Logic*
- 38 **Split Out3** Split Out *Logic*
- 39 **Get Product Variant** Odoo *Service*
- 40 **Sale Order Line1** Odoo *Service*
- 41 **Get Sales Order line Id** Odoo *Service*
- 42 **Get Sales Order Details** Odoo *Service*
- 43 **Prepare output3** Code *Logic*

## How it's built

- **Starts on:** An incoming Telegram message
- **Steps:** 43, with 4 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Telegram
- **Model:** Gemini
- **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 Telegram account, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming Telegram message.

Does it use AI?

Yes. It calls Gemini. 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 43 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 43 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%2Freal-time-sales-quote-creation-in-odoo-with-telegram)
- **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.

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

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**AI-powered receipt and expense tracker with Telegram** 45 steps · calls a model · Google Sheets, Redis](https://millionrounds.com/workflow/ai-powered-receipt-and-expense-tracker-with-telegram)
- [**Handle Telegram support, payments, and logo orders** 51 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/handle-telegram-support-payments-and-logo-orders)
- [**Automated expense tracking with Google Sheets** 31 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automated-expense-tracking-with-google-sheets)
- [**Manage restaurant orders, upsells, and payments with Telegram** 29 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/manage-restaurant-orders-upsells-and-payments-with-telegram)
- [**Automated invoice processing with Telegram and OpenAI** 27 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/automated-invoice-processing-with-telegram-and-openai)
- [**Automate income and expense tracking in Google Sheets** 27 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/automate-income-and-expense-tracking-in-google-sheets)
