| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Discuss (mail) • Calendar (calendar) • Contacts (contacts) |
| Lines of code | 1970 |
| Technical Name |
telegram_bot_m2o |
| License | LGPL-3 |
| Website | https://many2one.online |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Discuss (mail) • Calendar (calendar) • Contacts (contacts) |
| Lines of code | 1970 |
| Technical Name |
telegram_bot_m2o |
| License | LGPL-3 |
| Website | https://many2one.online |
Telegram Bot Integration for Odoo
Create and manage Telegram bots directly from Odoo with full CRM integration
Key Features
Multiple Bots Support
Configure and manage multiple Telegram bots from a single Odoo instance. Each bot can have its own commands, responses, and settings.
Configurable Commands
Create custom commands with multiple response types: text messages, images, documents, locations, and inline keyboard buttons.
CRM Integration
Automatically create leads from Telegram conversations. Link Telegram users to Odoo contacts. All messages are logged in the partner's chatter.
Webhook Integration
Forward unmatched messages to external webhooks (n8n, Zapier, custom APIs) for advanced automation and AI-powered responses.
Screenshots
New bot - Create default commands with one click
Bot with configured commands
List of bot commands
/start command response in Telegram
Architecture
Message Processing Flow
Smart AI Fallback via n8n
Set Fallback Webhook URL on the bot to forward any message that does not match a configured command to an external workflow. Ideal for plugging in an LLM (Claude, GPT) for natural-language replies and routing business-critical conversations to a human team.
Example n8n workflow: Webhook â Claude (structured output) â Reply to user â Conditional team escalation
What the bot forwards
JSON payload with bot id, chat / user info, phone, raw text and the full Telegram update â ready for the LLM to consume.
Escalation to a team chat
Have the workflow classify the request and notify your internal Telegram group with the LLM-summarised query and the user's contact when human attention is needed.
How It Works
Create Bot
Get your bot token from @BotFather in Telegram and add it to Odoo
Configure Commands
Define commands like /start, /help, /price with custom responses and buttons
Start Bot
Click "Start Bot" to activate webhook and begin receiving messages
Inline Keyboards
Create interactive inline buttons with URL links, callback actions, or navigation to other commands. Build complex conversation flows.
Message History
Full logging of all incoming and outgoing messages. Track conversation history, user interactions, and bot performance.
Automatic Contact & Lead Creation
When a user interacts with your bot, the module automatically creates a contact (res.partner) with their Telegram info. When they share their phone number, the system links the Telegram contact to an existing contact or creates a new one. Enable CRM integration to automatically create leads from conversations.
Response Types
Text Messages
Send formatted text with HTML support and variable substitution
Images
Send photos with optional captions
Documents
Share PDF, Excel, or any file type
Inline Buttons
Create interactive keyboard layouts
Variables in Responses
Use placeholders in your response text:
{first_name} - User's first name{last_name} - User's last name{user_name} - Telegram username{full_name} - First + Last name{chat_id} - Telegram chat ID
Requirements
- Odoo 19.0
- HTTPS-enabled Odoo instance (required for Telegram webhooks)
- Telegram Bot Token (free from @BotFather)
Need Help?
Contact us at nadozirny.s@gmail.com or visit many2one.online
Please log in to comment on this module