Telegram IVR menu
The Telegram IVR menu is the button menu a Telegram Inbox bot can send before the chat reaches Messages. You design it here. The menu stays off until you switch it on and save.
Opening this page for a bot that has no menu yet creates a starter menu and leaves it switched off. See The menu created on first open.
Open the designer
Settings → Integrations (/integrations) → Telegram Inbox → manage the connected bot. On each bot’s card, after Append agent name, a section titled Telegram IVR has the link Design IVR menu. The link opens /integrations/inbox/telegram/ivr for that bot.
The link is only on a Telegram Inbox card. Telegram Business does not have it.
You need access to the Integrations module. Without that access, or when the link does not point at a connected bot, the page sends you back to Integrations.
The screen
From top to bottom:
- Header. A back link, ← Integrations, the Telegram logo, and the title Telegram IVR. Under the title is the bot’s name and its @username. Save is at the top right, with a floppy-disk icon.
- Info box. A blue outline around a short hint. It tells you to test the menu by sending the start command to the bot in Telegram.
- General settings.
- Menu steps.
General settings
| Control | Meaning |
|---|---|
| Enable IVR menu | Switch. Off by default, including on the starter menu. The bot uses the menu only while this is on and you have saved |
| Start command | Text. The default is /start. The customer sends this to begin the menu. /start still starts the menu when you change this |
| Handoff message | The message the bot sends when the menu hands the chat to an agent. One box per language. On a new menu the English text is “Thank you! An agent will reply to you shortly.” Armenian and Russian are filled in as well |
Languages
Each field that has a language shows one box per company language: the company language, plus each language under Additional languages in Languages and translations. The languages are tabs, named with the language names. With only one language there are no tabs. If no language is available, the boxes use English.
Handoff message, Prompt, and Button label are the fields that work this way.
Menu steps
Menu steps is the list of messages the bot sends, in order. With no steps, the card says No data to display and offers Add step.
Each step is its own card:
| On the card | Meaning |
|---|---|
| #N • the step key | The step number and the key stored for that step |
| Trash icon | Deletes the step. There is no confirmation |
| Drag handle | Reorders the steps. Save stores them in the order on the screen |
| Step key | Text. A new step is named step_1, step_2, and so on |
| Prompt | The message the bot sends together with the buttons, one box per language |
| Options | The buttons for this step. Each option is a card, plus a + add link |
A + add link under the steps adds another step. That link is shown once the menu has at least one step.
Options
Each option card is numbered #N and has a trash icon. Deleting an option does not ask you to confirm.
| Field | Meaning |
|---|---|
| Option key | Text. This is the value stored for the choice |
| Button label | The text on the Telegram button, per language. An option with no label in the chat’s language, in English, or in any language, is not shown |
| Next step | — when the button ends here, or another step, listed as N. step_key. The step you are editing is not in the list. The field is disabled while Hand off to an agent is on |
| Hand off to an agent | Switch. Ends the menu and opens the chat in the inbox |
| Department | None, or a department. At handoff the inbox conversation is assigned to that department |
| Default lead source | None, or a lead source. The value is saved but currently not used by the bot |
| Topic code | Free text. The value is saved but currently not used by the bot |
The menu created on first open
Opening the designer for a bot that has no menu yet creates one. The new menu is disabled. It has two steps. The texts are filled in English, Armenian, and Russian.
| Step | Key | Prompt | Options |
|---|---|---|---|
| 1 | language | Please choose your language: | English (en), Armenian (hy), and Russian (ru). Each one goes to the next step, topic |
| 2 | topic | What do you need help with? | Sales (sales) and Support (support). Each one has Hand off to an agent on |
The menu stays off until you turn on Enable IVR menu and choose Save.
Save
Save sends the whole menu. Lua CRM stores it, shows IVR menu saved, and loads the menu again.
- Step keys and option keys are stored in lower case. Anything other than a–z, 0–9, and
_is replaced with_. A blank step key becomesstep_1,step_2, and so on. A blank option key becomesopt_1,opt_2, and so on. - A start command with no leading
/is given one. A blank start command is stored as/start. - Turning Hand off to an agent on clears Next step for that option.
- Steps are stored in the order on the screen. Every save replaces the whole menu.
- Saving with Enable IVR menu on also connects the bot, so Telegram delivers button taps to Lua CRM.
- A step with no options is accepted. An option with no next step and no handoff is accepted. Tapping that option does nothing.
Nothing is stored until Save. Leaving the page drops edits you have not saved, and the page does not warn you.
What the customer sees in Telegram
The menu runs in a private chat with a Telegram Inbox bot, and only while the menu is enabled. A group chat does not use it. A Telegram Business message does not use it.
If any knowledge base is ticked on the channel, the menu stays off and the AI answers instead. The menu runs when no knowledge base is selected.
The customer sends the start command, or /start, which always starts the menu. The bot replies with the first step’s prompt and inline buttons, two buttons on each row. Sending the start command again starts the menu from the first step.
The first menu uses the language of the customer’s Telegram app. If that language has no text, English is used, then whichever language does have text. When a step’s key is exactly language, the option key the customer chooses (for example hy) becomes the language for later prompts, button labels, and the handoff message.
Tapping a button stores the choice under that step’s key. The bot then sends the next step. With Hand off to an agent on, the chat is handed over:
- An inbox conversation is opened or updated for that chat and assigned to the option’s Department. The subject is the customer’s name, a dash, and the topic. The topic is the choice made on the step whose key is
topic. The choices are saved on the conversation. - The bot sends the Handoff message.
- Later messages arrive in Messages. The request created from the chat is named “Telegram: ” followed by the topic, when a
topicchoice exists.
Typing a message instead of tapping a button, while the menu is still running, gets the reply “Please use the menu buttons to continue.”
Tips
- Opening the page creates the starter menu when the bot does not have one. It stays disabled until you switch Enable IVR menu on and Save.
- Default lead source and Topic code are saved but currently not used by the bot. Only Department is applied. The request name comes from the option key chosen on a step whose key is
topic, not from Topic code. - An option with no next step and no handoff does nothing when the customer taps it.
- After each Save, buttons in menus the bot has already sent stop working. The customer sends the start command again.
- With the menu enabled, a message from a customer who has never sent the start command is not stored in the inbox.
- Deleting a step or an option does not ask you to confirm. Nothing is stored until Save. Leaving the page drops unsaved edits without a warning. Save before you add or delete steps, and check each option’s Next step after you reorder or delete a step.