RAG Agent Over Odoo Data: Architecture, Access Rights, Hosting and Monthly Cost
A practical blueprint for an AI agent that answers from Odoo records: the architecture, how to respect Odoo access rights, hosting choices and how to estimate monthly cost.
Most businesses that want AI in Odoo want the same thing: ask a question in plain language and get an answer from their own records, such as which customers are late on payment, what we promised a client in last month's quote, or where a batch was used. Retrieval-augmented generation, or RAG, is the pattern behind that.
This guide sets out a reference architecture for a RAG agent over Odoo data, explains how to keep Odoo's access rights intact, compares hosting options and shows how to estimate the monthly running cost. It is for CTOs, IT managers and Odoo administrators. Our AI and Odoo integration team builds these systems.
Quick Summary
- A RAG agent answers questions by retrieving relevant Odoo records and documents first, then asking a language model to answer only from them.
- Access rights are the hard part: retrieval must respect the same record rules the user has in Odoo, every time.
- There are two safe patterns: query Odoo live as the user, or store permission metadata with every indexed chunk and filter on it.
- Hosting choices range from a managed cloud model API to a fully private deployment, driven by data residency and policy.
- Monthly cost is mostly model usage, which you can estimate from questions per month and tokens per question.
What is a RAG agent over Odoo data?
A RAG agent answers a question by first retrieving the Odoo records and documents that are relevant to it, then asking a language model to answer only from what was retrieved, with links back to the source records. The model does not learn your data; it reads the retrieved pieces each time.
That matters for two reasons. Answers stay current because they come from live or freshly indexed data, and every answer can cite the invoice, order or ticket it came from, so users can check it.
An agent goes one step further than a chatbot: it can call tools, such as looking up a customer's open invoices or drafting a follow-up, always within limits you set.
What does the architecture look like?
A RAG agent over Odoo has five parts: connectors, an index, a retriever, the language model and a guardrail layer. Each part can be swapped without rebuilding the others.
- Connectors: read records and attachments from Odoo through its external API, on a schedule and on change.
- Index: split text into chunks, turn each chunk into an embedding, and store it with metadata in a vector store such as PostgreSQL with pgvector.
- Retriever: for each question, find the closest chunks, filtered by the asking user's permissions.
- Model: generate the answer from the retrieved chunks only, with citations.
- Guardrails: log every question and answer, block restricted topics, and require human approval for any action that writes to Odoo.
Structured questions, such as totals and overdue counts, are often better answered by a tool that queries Odoo directly than by text retrieval. Good agents use both.
How do you enforce Odoo access rights?

Retrieval must return only what the asking user could open in Odoo, so permissions have to be checked at query time, not only when data is indexed. An index built with an administrator account will happily leak salaries or another company's margins unless you filter it.
| Pattern | How it works | Best for |
|---|---|---|
| Query Odoo live as the user | The agent calls Odoo's API with the user's own credentials, so Odoo's access rights and record rules apply automatically | Structured lookups and smaller datasets |
| Permission metadata on every chunk | Each indexed chunk stores its company, model, record and access group; the retriever filters on the user's rights | Large document sets and fast semantic search |
| Hybrid | Search the index with metadata filters, then re-check each hit against Odoo as the user before answering | Sensitive data such as HR, payroll and finance |
Odoo 20's MCP server follows the first pattern: connected AI clients act as the signed-in user. Our guide to Odoo AI governance and access rights covers approval gates and audit logs in more depth.
Where should the agent be hosted?
Host the agent where your data rules allow: next to your Odoo, in your own cloud account, with the model either called through an API or run privately. Data residency and your AI policy decide this more than cost does.
- Managed model API: fastest to build and the strongest models, with data sent to the provider under its business terms.
- Your cloud, provider model: the index, connectors and logs stay in your cloud account; only retrieved snippets go to the model.
- Fully private: an open-weight model on your own servers, for strict residency rules, at the price of more infrastructure and usually weaker answers.
Whichever you choose, keep the index and logs in the same region as your Odoo data and write down what leaves your environment.
What does a RAG agent cost to run each month?

Running cost is mostly model usage, which you can estimate as questions per month multiplied by tokens per question multiplied by your model's price per token. Hosting the index and connectors is usually a small, fixed server cost by comparison.
A worked example: 2,000 questions a month, each sending about 5,000 tokens of retrieved context and question and receiving about 500 tokens of answer, uses roughly 10 million input tokens and 1 million output tokens a month. Multiply each by your chosen model's current per-million-token price to get the model bill.
- Embeddings: a one-off cost to index existing data, then a small cost as records change.
- Vector store: pgvector inside an existing PostgreSQL server often costs nothing extra at SME scale.
- Monitoring: logs and evaluation runs, sized to your question volume.
Build cost depends on how many Odoo models, documents and tools the agent covers. Our Odoo project estimate gives a first range for integration work.
AI on business data case study: LabMart
LabMart, a healthcare SaaS company, had an eight-person team triaging support tickets by hand. Response times suffered as volume grew.
We built an LLM classifier wired into Zoho Desk and Odoo that handles 1,800 tickets a week, auto-classifies 92% of them and freed the equivalent of 8 full-time staff. The project took 7 weeks.
Read the LabMart AI support automation case study.
Conclusion

A useful RAG agent over Odoo is less about the model and more about retrieval, permissions and guardrails. Get access rights right first, start with one well-defined set of questions, and measure answer quality before widening the scope.
Planning an AI assistant on your Odoo data? Book a free consultation and we will review your data, policy and hosting with you.
Frequently Asked Questions
Does a RAG agent train the AI model on my Odoo data?
+
No. RAG retrieves relevant records at question time and passes them to the model as context. Your data is not used to train the model, though you should still check your model provider's data terms.
Can a RAG agent show users data they cannot see in Odoo?
+
Only if it is built badly. A safe agent either queries Odoo as the user, so record rules apply, or filters indexed data on stored permission metadata and re-checks sensitive hits before answering.
Can the agent update records in Odoo?
+
It can, through tools you expose, but every write should need human approval at first, with each action logged. Read-only is the right starting point.
How accurate are RAG answers?
+
Accuracy depends mostly on retrieval quality and clean data. Measure it with a fixed set of real questions and known answers before launch, and keep running that test as data and prompts change.
Is Odoo 20's built-in AI enough?
+
Odoo 20's built-in AI features and MCP server cover many in-app tasks. A custom RAG agent fits when you need answers across documents, several systems or custom permission rules.
Free integration feasibility review
Connecting your other systems to Odoo?
Tell us what needs to sync between your systems and Odoo. We recommend a connector, API or custom approach and plan how failures are handled.
Free, with no obligation. A senior consultant replies within 12 business hours.
Free Odoo tools
All tools- Odoo Health CheckVersion, modules, findings and upgrade cost
- Odoo App SelectorWhich apps you need, by industry
- Odoo Project EstimateIndicative cost and timeline in minutes
- Odoo Implementation Cost CalculatorImplementation cost and timeline, in minutes
- Odoo Migration Cost CalculatorVersion jump or legacy ERP, priced in minutes
- Free Odoo Database UpgradeCommunity or Enterprise database on v20, free
Continue reading
WhatsApp AI Agent for Odoo: Meta API Fees, Build Cost and an ROI Model
How Meta's per-message WhatsApp pricing works, what a WhatsApp AI agent connected to Odoo costs to build and run, and a simple model to check whether it pays back for you.
Odoo AI Governance: Access Rights, Data Privacy and Approval Rules
Odoo AI governance guide: an AI usage policy, access rights and record rules for agents, what data leaves Odoo, approval gates, audit logs and rollback.
Odoo Marketing Automation: Setup Guide for Odoo 19 and 20 Campaigns
Set up Odoo Marketing Automation in Odoo 19 and 20: triggers, filters, workflow activities, email and SMS, testing, metrics and what changed in Odoo 20.
