| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Discuss (mail) • Calendar (calendar) • Contacts (contacts) |
| Lines of code | 961 |
| Technical Name |
crm_ai_reply_assistant |
| License | LGPL-3 |
| Website | https://github.com/emin-ahmed |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
CRM (crm)
• Discuss (mail) • Calendar (calendar) • Contacts (contacts) |
| Lines of code | 961 |
| Technical Name |
crm_ai_reply_assistant |
| License | LGPL-3 |
| Website | https://github.com/emin-ahmed |
Reply to leads in one click â without leaving Odoo
The salesperson always reviews and sends. It never auto-sends.
AI Reply Drafter adds a Draft Reply button to every lead and opportunity. It reads the lead's data and its full chatter conversation, sends them to the LLM you configure with your own system prompt, and streams back a personalized email draft â live, token by token â into an editable box. Tweak it, then send it straight to the customer or open the full composer. Every generation is logged with token usage and a cost estimate.
See it in action
Grounded in the conversation
The draft is built from the lead's fields (contact, expected revenue, tags, source) and the most recent chatter messages, in chronological order. Replies reference what the customer actually asked â not a generic template.
You stay in control
The draft streams into an editable field. Nothing is sent until you click Send. Prefer the full composer? Edit in composer⦠opens Odoo's email composer pre-filled, for attachments and extra recipients.
Your provider, your key
Choose Anthropic (Claude), OpenAI, or local Ollama â and any OpenAI-compatible gateway such as OpenRouter via a base-URL override. One provider per configuration. API keys are stored as system parameters, never in code.
Auditable & transparent
Every draft is recorded under CRM â AI Reply Logs with the provider, model, token counts, an indicative cost estimate, the lead, the user and a timestamp â so usage and spend stay visible.
Setup & requirements
Depends on Odoo's standard CRM and Mail apps. After installing, open Settings â AI Reply Drafter to pick a provider, paste your API key, set the model and your system prompt.
Install the Python SDK for the one provider you use (a clear in-app message tells you if it is missing):
- Anthropic â
pip install anthropic - OpenAI / OpenRouter / compatible â
pip install openai - Ollama (local) â uses
requests, already shipped with Odoo
Data & privacy
Drafting sends the lead's fields and chatter to the single provider you configure â the one place data leaves your Odoo instance. It is sent only to that provider, and you review every draft before anything is sent. For a fully on-premise setup with no external calls, use Ollama.
Odoo 19 Community & Enterprise · LGPL-3
Authored by Emin Ahmed
Please log in to comment on this module