Skip to main content

Integrate `ai_tools` with server actions to automate tasks using AI.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_addon_ai_automation-16.0.1.0.0.2-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file odoo_addon_ai_automation-16.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_ai_automation-16.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64a723fa8eb441fff575336a6542e4d01ad78253b75aa7daaa42b7e826913252
MD5 73df5e1f32e660e9ab3f0abad5a017fa
BLAKE2b-256 d72bdffe8d841804aabbc21aa2091151113ee3e20053a9ebebd50e62ab0a89b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page