Skip to content
Auboros

Odoo 20 AI Agent Sources: What Gets Embedded, Where the Text Goes and How to Switch It Off

Odoo 20 AI agent sources: chunks of about 2,000 characters, embedded via Odoo's IAP AI service, stored in your database. What leaves, what stays, how to stop.

By Josh Craig, Managing Director, Auboros ·

Odoo 20 AI agent sources are the files, web pages, Documents and Knowledge articles attached to an agent’s Knowledge tab. As at 17 November 2026 the 20.0 Enterprise source splits each into chunks of about 2,000 characters, sends the chunk text and record title to Odoo’s AI service for embedding, and stores the text and a 1,536-number vector in your own database. Removing or deactivating the source switches it off.

At a glance

  • Who it is for: Owners, operations managers and IT leads of Australian businesses on Odoo 20 Enterprise who are about to attach a policy, a price list or a Documents folder to an AI agent and want to know what that does with the data first.
  • Problem it solves: Nobody can tell you what “indexed” means on the Knowledge tab, whether the file left the server, what it costs in credits, or how to undo it when the file was the wrong one.
  • Platforms: Odoo 20 Enterprise with the AI app (the ai module carries the Odoo Enterprise licence and is not in Community). Odoo Online, Odoo.sh and your own servers all run the same code; self-hosted databases also need the PostgreSQL vector extension, which the AI app’s install step creates and will refuse to install without.
  • What gets embedded: Uploaded files (including PDFs, spreadsheets and CSVs), web pages fetched by Odoo’s scraper service, files and folders from the Documents app, and Knowledge articles. Spreadsheet sources are chunked one row per chunk. Helpdesk tickets are embedded separately when a team turns on similar ticket detection.
  • Where the data goes: The chunk text plus the record’s display name travel to Odoo’s AI endpoint with your database’s In-App Purchase token, and a vector comes back. The text, the vector and the embedding model name are stored in the ai_embedding table in your database. Odoo’s service picks the embedding model; the source has no setting for your own key.
  • Approval gate: None at the point of indexing. Adding a source is the approval. At question time the agent retrieves the five closest chunks and must cite them; “Restrict to Sources” is an instruction to the model, not a filter on the retrieval.
  • Audit trail: Each source shows a status (Processing, Indexed, Incomplete, Failed or Skipped) and an error detail, and each embedded record shows an embedding status. There is no log of which chunks were retrieved for which question; the citations in the agent’s reply are the only record.
  • Typical cost: Indexing and every question draw Odoo AI credits, listed at EUR 1.00 per credit in packs of 10 to 1,000 with 20 free, per Odoo’s IAP page for the Odoo AI service as at 17 November 2026. Odoo publishes no per-chunk figure; our Odoo 20 AI credits post explains how to measure it. Our AI agents for ERP in Australia pilots start from A$5,000 ex GST and include the source review described below.
  • Typical timeline: Half a day to decide what an agent may read and write the source list down; indexing a few dozen documents completes within the day; a Documents folder with hundreds of files can take several cron runs.
  • What it never does: It never embeds a record you did not attach, never gives the asking user access to a file they could not already open through the agent, and never deletes a Documents file or Knowledge article when you remove the source. It does delete the uploaded copy of a file you attached directly.
  • Last verified: 17 November 2026 against the Odoo 20.0 Enterprise source (ai, ai_knowledge, ai_documents_source and ai_helpdesk modules), the Odoo 20 AI agents documentation, the Odoo AI overview and the IAP page above.

An Odoo 20 agent with no sources answers from the model’s general knowledge and from whatever tools you give it. The moment you attach a source, you’ve built a small retrieval system inside your ERP, and most of the questions a CFO asks about AI (“where does our data go?”, “who can see it?”, “what does it cost?”) now have very specific answers. This post gives them, from the code, with the Australian privacy context attached.

What does Odoo 20 do when you attach a source to an AI agent?

Four things happen, in this order, and only the first one needs a person.

You attach the source. The Odoo 20 agents documentation lists four formats: files uploaded to the agent, links to web pages, Documents from the Documents app, and Knowledge articles. In the source these are two record types under the hood: an attachment or a scraped web page, with Documents and Knowledge modules extending the model to point at their own records. A Documents folder brings every file in it and every subfolder with it.

Odoo extracts the text and chunks it. For a file, the AI module reads the attachment’s indexed content, the same text Odoo already extracts for search. If the extracted text is 10 characters or shorter the source is marked Skipped with the reason. Otherwise the text is split into chunks aimed at 2,000 characters, with a floor of 1,500 and a hard ceiling of 5,000, breaking on paragraphs where it can. Spreadsheets and CSV files are the exception: each row becomes its own chunk, which is why a price list works well as a source and a 40-column export does not. For a web page, nothing is chunked until Odoo’s scraper service has fetched it; a cron runs every three hours to submit URLs and collect results, and a page that returns no text is marked with “No text content could be extracted from this URL.”

The chunks go out for embedding. A scheduled job collects chunks without a vector, groups them into batches of up to 100 chunks or roughly 10,000 estimated tokens, and posts each batch to Odoo’s AI endpoint. The payload for each chunk is its text plus the title of the record it came from (the file name, the article name). The call carries your database’s In-App Purchase account token, so it draws credits, and if the account runs dry the job marks the remaining chunks as failed with the error “iap_credit_error” and stops, rather than trying the next batch.

The vector comes back and is stored. Each chunk record in the ai_embedding table ends up holding the original text, the vector (1,536 dimensions), and the name of the embedding model that produced it, indexed for cosine similarity search. The record it belongs to gets an embedding status of Indexed. The source on the agent’s Knowledge tab goes from Processing to Indexed, or to Incomplete if some chunks failed.

“Every source review we run finds the same thing: the agent was given the whole shared drive because that was easier than choosing. Choosing is the governance step. Attach the returns policy, the warranty terms and this quarter’s price list, and you can explain to anyone exactly what the agent knows.”

Josh Craig, Director, Auboros

What leaves your server, and what stays?

This is the question that decides whether your privacy officer signs off, so here it is plainly, from the 20.0 source as at 17 November 2026.

Leaves the server: the text of every chunk and the display name of the record it came from, at indexing time; the text of every user question to an agent that has active sources, at question time, because the question is embedded too; and then the question plus the retrieved chunks plus the agent’s instructions, because that is the prompt the model answers. All of it goes to Odoo’s AI endpoint under your IAP token. The Odoo AI overview says Odoo AI uses the IAP service for AI requests and that the alternative for an external agent is the MCP server; Odoo’s AI API keys page was still marked under construction when we checked it, and the module we read has no field for a customer’s own provider key. Odoo’s IAP page for the service does not say which embedding or language model providers sit behind the endpoint, where they run, or how long they retain requests.

Stays on the server: the vectors, the chunk text (a second copy of your document’s content, in plain text, in a database table), the embedding status on each record, and the source statuses. Note that “stays” means your Postgres database. On Odoo Online and Odoo.sh that database is in Odoo’s hosting; on your own servers it is wherever you put it.

For Australian businesses this maps onto the Australian Privacy Principles in two places. APP 6 (use and disclosure) is engaged the moment a chunk containing personal information, say a customer complaint email in a Helpdesk ticket or a staff name in an SOP, is sent to a third-party AI service. APP 11 (security) is engaged by the second copy of your documents sitting in a new table that your backup, retention and access policies probably don’t mention yet. The OAIC’s guidance on privacy and the use of commercially available AI products is the reference, and its practical advice matches ours: know what you are putting in, prefer not to put personal information in at all, and be able to explain it. Our AI usage policy post has the wording we use for that.

Who can see what the agent has read?

Here is the part the Knowledge tab does not make obvious. When a user asks a question, the retrieval query selects the five closest chunks from the agent’s sources. In the 20.0 source we read, that query is filtered by the agent’s source list, not by the asking user’s access rights to the underlying records. A source’s “user has access” flag controls whether the person can open the original from the citation link, which for an uploaded file means being an internal user and for a Documents file means having at least read permission on that document. It does not stop the chunk being retrieved and quoted in the answer.

So the working rule is simple: anything you attach to an agent can be surfaced to anyone who can talk to that agent. For an internal sales-team agent that is the sales team. For an agent connected to website live chat or the customer portal through the ai_website_livechat or ai_portal modules, that is the public. The permission model is the agent’s audience, and the source list has to be chosen for the least trusted person in it. This is the same lesson as our Odoo 20 MCP server post, from the other direction: tools run as a person, sources run as the agent.

Two other access details worth knowing. “Restrict to Sources” is a toggle on the agent, and in the source it adds a block of instructions telling the model to answer only from the retrieved chunks, conversation history, loaded skills, tool results and what the user typed, and to say “the provided sources do not contain the answer” otherwise. That is a well-written instruction and it works most of the time. It is not a hard filter, and a model instruction is not an access control. Second, every answer that draws on a chunk must carry an inline citation in the form [SOURCE: id], which Odoo renders as a numbered link to the source. That citation is the only record of which chunk was used; nothing else logs the retrieval. Our AI hallucination guardrails post covers why the citation matters more than the restriction toggle.

Table: the four Odoo 20 agent source types, what is embedded and what happens when you remove them, as at 17 November 2026
Source typeWhat is embeddedRefreshWhat removing the source does
Uploaded fileThe attachment’s extracted text, chunked; spreadsheets one row per chunk; files of 10 characters or less skippedManual Reprocess on the Knowledge tabDeletes the uploaded attachment and its chunks
Web page linkText fetched by Odoo’s scraper service (iap-scraper.odoo.com), shared between every agent that uses the same URLScraper cron every 3 hours for pending pages; Reprocess re-fetchesDeletes the scraped page record if no other agent uses it
Documents file or folderEach file’s extracted text; a folder adds every file in it and its subfoldersReprocess on a folder re-reads its current contents and re-embeds; files added to the folder later wait for that clickLeaves the Documents file in place; chunks are cleaned up by the autovacuum when no source points at them
Knowledge articleThe article body as plain text with embedded blocks removed, the title firstReprocess after editingLeaves the article in place; chunks cleaned up the same way

What does indexing cost, and when does it bill you again?

Three events draw credits. Indexing, when a chunk is embedded for the first time. Reprocessing, which deletes the chunks and starts again, so editing a 200-page manual and clicking Reprocess re-embeds all 200 pages. And every question, because the question itself is embedded before retrieval. Odoo’s IAP page gives the credit price and says usage “varies based on the specific AI feature, task complexity, and the size of your request”, and that is all it gives; our Odoo 20 AI credits post sets out how to read the balance before and after a known job to get your own figure.

There is a fourth event most people won’t expect. A daily cron called “Update deprecated embedding models” checks every stored chunk against the list of embedding models Odoo’s service still supports. When a model is retired, every chunk embedded with it is reset and re-embedded with the new default, and every agent on the old model is moved across. That is the right engineering decision (a query vector from one model can’t be compared with document vectors from another), and it means a bill you didn’t schedule, on a day you didn’t choose, proportional to everything you ever attached. Keep the source list lean and this is a non-event. Attach the shared drive and it isn’t.

Two cost savers are built in. A file whose checksum matches an already-embedded file reuses the existing vectors instead of calling the service again, so the same PDF attached to three agents is embedded once. And the indexing job stops at the first refused batch when credits run out, so an empty account produces Failed statuses rather than a queue of retries; top up, click Retry on the failed source, and it resumes.

How do you turn embeddings off, or never turn them on?

There is no single switch labelled “embeddings”. Control is per agent and per source, which is the right granularity, and it works like this.

  • Don’t attach anything. An agent with no sources makes no embedding calls at all, at indexing or at question time. Agents that only use tools (read a sales order, draft a reply) need no sources.
  • Deactivate rather than delete. Each source has an active toggle. An inactive source is left out of retrieval but keeps its chunks, so you can switch a seasonal price list off in February and on again in June without paying to re-index it.
  • Delete the source when the file should never have been there. For an uploaded file this deletes the attachment and its chunks. For Documents and Knowledge sources the document or article stays and the orphaned chunks are removed by Odoo’s autovacuum, which clears embeddings on records no source points at any more.
  • Delete the record and the chunks go with it. The embedding mixin removes a record’s chunks when the record is deleted, so there is no stranded vector for a document you’ve removed from the Documents app.
  • Check Helpdesk separately. Similar ticket detection embeds tickets through its own path, switched on per Helpdesk team with “Enable AI features” and a time range from one week to forever. Turning it off for a team stops new tickets being embedded; it is a team setting, not an agent source.

What you cannot do, in the 20.0 source we read: choose the embedding model, bring your own embedding key, or set a retention period on the ai_embedding table. If any of those is a hard requirement, the honest answer today is to keep that content out of agent sources and give the agent a tool instead, or to connect an external agent that you do control through the Odoo 20 MCP server.

What does a well-chosen source list look like?

The kind of build we run for a Queensland industrial supplies distributor, as an illustration. The sales team wanted an agent that could answer “can this customer return it?” and “what’s the trade price on this?” without a phone call to the office.

Sources attached: the returns and warranty policy (one PDF, 11 pages, 14 chunks), the current trade price list (one spreadsheet, 640 rows, 640 chunks, one per product line), and the Knowledge article that lists the freight cut-off times by depot. Three sources, all documents the business would hand to any new sales rep on day one. That is the test we use: if you would not put it in the onboarding pack for the least senior person who will talk to this agent, it is not a source.

Sources refused during the review: the Documents folder called “Customers”, because it contained signed credit applications with directors’ personal details and the agent’s audience was the whole sales team; the full purchase price file, because the agent’s audience didn’t need cost prices and a mistyped question could surface them; and the HR policies folder, because an agent can’t be given half a folder.

Settings: “Restrict to Sources” on, so a question about a product that isn’t in the price list gets “the sources do not contain the answer” rather than a confident guess. The agent’s tools limited to reading sale orders. Sources deactivated and the register entry updated when the price list changes, with the new file attached and the old one deleted rather than reprocessed, so the superseded prices cannot be retrieved.

The approval step sits where it always does in our builds: the agent drafts the answer to the rep with its citations, and the rep decides what to tell the customer. Nothing the agent reads is sent outside the business by the agent. When this distributor later wanted the agent in website live chat, the source list was reviewed again against a public audience, the price list came off, and a tool that reads only the customer’s own pricelist from their portal login went on in its place. The agent register records both versions.

If you are setting up an Odoo 20 implementation or upgrading to it, our Odoo partner in Brisbane team adds the source review to the AI configuration pass alongside the seven AI settings we check after an upgrade.

Goes well with


Deciding what your Odoo 20 agents may read?

Auboros implements Odoo 20 from Brisbane across Queensland and beyond, and the source review is part of every agent we configure: what to attach, what to refuse, who the audience is and what it will cost in credits. If you are about to attach documents to an agent, or already have and want to know what left the building, book a free consultation. We’ll walk through your Knowledge tab with you and leave you with a source list you can explain.

FAQ

Frequently asked questions

What is an AI agent source in Odoo 20?

A source is a file, web page link, Documents file or folder, or Knowledge article attached to an agent's Knowledge tab. Odoo 20 splits its text into chunks of about 2,000 characters, embeds each chunk through Odoo's AI service and stores the text and vector in your database, so the agent can retrieve the closest five chunks when someone asks a question.

Does attaching a source to an Odoo AI agent send my documents outside Odoo?

The chunk text and the record's title are sent to Odoo's AI endpoint with your In-App Purchase token to be embedded, and each question to the agent is sent the same way. As at 17 November 2026 Odoo's IAP page does not name the providers behind the endpoint, and the 20.0 module has no setting for your own embedding key. The vectors and a plain-text copy of the chunks stay in your database.

Can every Odoo user see what an AI agent has read?

Anyone who can talk to the agent can have any of its sources quoted back to them. In the 20.0 source the retrieval query is filtered by the agent's source list, not by the asking user's access rights to the underlying records; access rights only control whether the citation link opens the original. Choose sources for the least trusted person in the agent's audience.

How do I remove embeddings from Odoo 20?

Deactivate a source to drop it from retrieval while keeping its chunks, or delete the source. Deleting an uploaded-file source deletes the attachment and its chunks; deleting a Documents or Knowledge source leaves the document or article in place and Odoo's autovacuum removes the orphaned chunks. Deleting the record itself also deletes its chunks. There is no single embeddings switch.

Do Odoo 20 agent sources cost IAP credits?

Yes. Indexing, reprocessing and every question (the question is embedded before retrieval) draw Odoo AI credits, listed at EUR 1.00 per credit with 20 free as at 17 November 2026. Odoo publishes no per-chunk rate. A daily job also re-embeds every chunk whose embedding model Odoo's service has retired, which is an unscheduled bill proportional to everything attached.

Want help with your own implementation?

We're a Brisbane-based Odoo Silver Partner and MYOB Acumatica Partner. Book a free 1-hour scoping call and get a straight answer.