This module integrates AI connections with Odoo server actions, allowing you to define AI-powered automations. By default it provides Ollama support, but it can be extended with additional providers by adding new kind options to ai.connection.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0This module lets you create AI-powered automated actions in Odoo. You configure a connection to an AI service (Ollama), then add an "AI OCA Action" to any server action so it can generate text, post messages, or update record fields automatically.
This module connects Odoo's automation engine (server actions) to an AI service. It adds a new menu called "AI Connection" under the AI menu where administrators can register connections to an AI provider. Each connection has a name, a type (currently only Ollama), a URL and a model name; the URL and model fields are only visible to system administrators.
On any server action, a new state called "AI OCA Action" becomes available. When selected, a new "AI OCA" tab appears where you choose: - the AI connection to use, - which AI tools the assistant may call (tools tied to the same model or generic tools), - an AI prompt written in rich text, which can include dynamic placeholders that are filled with data from the record being processed, - what to do with the AI result: post it as a message on the record, or write it into a chosen text field of the record.
When the server action runs, the prompt is rendered with the record's data, sent to the AI connection together with the selected tools, and the AI answer is then posted or saved according to your choice. The module touches ir.actions.server and adds the ai.connection model, with read access for all users and full management for system administrators.
Depends on
Models and fields (2)
- ai.connection · new modelurl, kind, name, model, active
- ir.actions.server · extends an existing modelstate, ai_prompt (AI Prompt), ai_tool_ids (AI Tools), ai_connection_id (AI Connection), ai_result_action (AI Result Action), mailing_model_real, ai_update_record_field_id (AI Update Record Field)
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/ai.
terminal Installation and usage
OCA documentation · Odoo 16.0Usage
Source · Odoo 16.0This module adds a new server action type: AI OCA Action.
To use it:
- Go to
Settings > Technical > Actions > Server Actions - Create a new action and select AI OCA Action as the state
- Select an AI Connection (Ollama)
- Define the prompt — supports dynamic placeholders using Qweb syntax (e.g.
{{ object.name }}) - Optionally select tools the AI can call during execution
- Define what to do with the result:
- Post Message: posts the AI response as a chatter message on the record
- Update Record: writes the AI response to a specific field
To extend with a new AI provider, inherit ai.connection and add a new selection value to kind, then implement the corresponding _run_{kind} method.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.