AI Connection Layer for Odoo

One place to connect your Odoo apps to an AI model

What AI Connection Layer does

Choose your provider, keep the API key where only administrators can read it, follow every request in a log and cap the monthly spend. Other Odoo apps use this connection instead of each bringing their own.

Shared AI settings for Odoo apps: provider and API key, request log with token usage, monthly budget, validated JSON answers with retry.

  • Bring your own API key
  • Request log
  • Monthly budget

Features

  • Providers

    Anthropic, OpenAI, Azure OpenAI, or any endpoint that speaks the OpenAI chat format, for example a self-hosted model server.

  • API key handling

    The key is stored in system parameters and shown only to administrators. The module ships without any AI access: you supply the account.

  • Request log

    Company, user, app, purpose, model, prompt and completion tokens, estimated cost, duration, status and the related record.

  • Budget per company

    Enter your provider prices and a monthly budget. Once the estimate reaches it, new requests for that company stop with a clear message.

  • Validated answers

    Apps ask for JSON with a schema. A wrong answer is retried once with the validation error, then reported as invalid output.

  • Retries and timeout

    Exponential backoff on HTTP 429 and 5xx or network errors, with a configurable number of retries and timeout.

  • Images

    Photos are resized to at most 1600 pixels on the long side and re-encoded as JPEG before they leave your server.

  • Privacy switch

    A setting for allowing personal data to be sent, off by default. Apps that declare personal data are blocked until you switch it on.

How it works, step by step

  1. 01Connection settings

    Provider, endpoint, API key, default text and vision models, timeout, retries, prices, monthly budget and the privacy switches.

    AI Connection Layer: Connection settings
  2. 02Request log

    Every call with its app, purpose, model, tokens, estimated cost, duration and status. Failed calls stand out.

    AI Connection Layer: Request log
  3. 03Failure detail

    A failed request keeps the reason, so support questions can be answered without guessing.

    AI Connection Layer: Failure detail

Questions about AI Connection Layer

Do I need this module on its own?

Only if an app you use depends on it, such as Vision Stock Count. Installed alone it just adds the settings screen and the log.

Who can see the API key?

It lives in system parameters and the settings field is restricted to administrators. Normal users cannot read it.

How is the cost calculated?

From the token counts the provider reports and the prices per million tokens that you enter. If you leave the prices at zero, no cost estimate is made and the budget does not trigger.

Are prompts stored?

Not by default. A debug switch stores prompts and answers in the log; that text is cleared after 30 days by a scheduled job. Metrics such as tokens and status stay.

Which providers work?

Anthropic, OpenAI and Azure OpenAI, plus any server that offers the OpenAI chat completions format. Choose a model that accepts images if an app sends photos.

Does it work with several companies?

Log entries and the budget belong to a company, with multi-company rules on the log.

All Odoo apps

Tell us which systems disagree. We will fix that.

Thirty minutes with an engineer, not a salesperson. You leave with a map of what you run, what to connect first and a price range, whether or not you hire us.