Odoo Community Association

Ai Automation

Beta License: AGPL-3 OCA/ai Translate me on Weblate Try me on Runboat

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.

Table of contents

Usage

This module adds a new server action type: AI OCA Action.

To use it:

  1. Go to Settings > Technical > Actions > Server Actions
  2. Create a new action and select AI OCA Action as the state
  3. Select an AI Connection (Ollama)
  4. Define the prompt — supports dynamic placeholders using Qweb syntax (e.g. {{ object.name }})
  5. Optionally select tools the AI can call during execution
  6. 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.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Dixmit

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/ai project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.