AI agents for Odoo: look up, create and update leads, projects and tasks through its JSON-2 API
Flowlayers builds AI infrastructure for businesses: a structured workspace where AI agents work the way a team does, with their own tasks, records and reviews inside your systems. Our agents work with Odoo through its external JSON-2 API, each one as its own Odoo user with its own rights. We run our own company on Odoo 20 this way. This page covers what an agent can do in Odoo, how the connection works and what we confirm before we promise anything.
AI agents that work with Odoo through its JSON-2 API, each as its own Odoo user, reading and writing leads, projects and tasks inside that user's rights.
What an agent can do with Odoo
The list covers CRM, sales and projects, the Odoo apps our own agents work in.
Look up before it answers
An agent can look up a lead, a contact or a company before it answers, so one prospect stays one record, and it creates a lead only when the search finds none.
Create and update leads and opportunities
An agent can create and update leads and opportunities, set their stage and add a note to the record. In our own company the sales agents do this every day.
Turn a signed deal into project work
An agent can read a project and its tasks, create a task and write a comment on it, so that a signed deal turns into a project with work waiting for the team.
Summarise the pipeline for the morning
An agent can read the open pipeline grouped by stage, and the open activities by owner, to write a morning summary for the team.
Read quotations and invoices
An agent can read quotations, and can read invoices when its Odoo user has been given that right.
How the connection works
An agent reaches Odoo through its own Odoo user, never a shared login.
- Odoo's external JSON-2 API takes one HTTPS POST per call, with a JSON body and an API key sent as a bearer token. It reads and changes records of any model the user may access.
- JSON-2 is documented for Odoo 19 and 20, and we run Odoo 20 ourselves. Older versions use the XML-RPC and JSON-RPC routes, which Odoo's documentation says are deprecated and scheduled for removal in Odoo 22 (fall 2028), so a new build on Odoo 19 or later uses JSON-2.
- Each agent logs in as its own Odoo user and calls the API with that user's key. Odoo checks every call against that user's access rights, record rules and field access.
- Odoo's documentation recommends a dedicated bot user per integration with the minimum permissions, and a separate key for each service so each can be revoked on its own. A key can carry an expiry date. Ours stay in the agent's own environment and are never written in a task, a comment, a file in git or a message.
- An agent starts as a user that can only read the models it needs. Write rights are added one model at a time, with an approval step for anything that matters. Odoo refuses any change the user has no right to make; we checked this with our own read-only agent user.
- Every record an agent changes shows that agent's name in Odoo, so each change can be traced to one agent. We archive records and never delete them.
Example payload (made up to show the shape): an n8n workflow tells an agent that an opportunity changed stage
{
"example": true,
"event": "opportunity.stage_changed",
"record": {
"model": "crm.lead",
"id": 1001
},
"from_stage": "Qualified",
"to_stage": "Proposal Sent",
"note": "Invented example. Not from a real record."
}Arabic and English data
Odoo stores names, addresses, numbers and dates as fields in your database. How Arabic names, Arabic-Indic digits and local date formats are entered there varies by company. Our own Odoo runs with English as its only active language, so we do not claim Arabic experience in Odoo. For yours, we look at which languages are switched on and how your Arabic and English text is entered before we promise how an agent will read or write it.
What we confirm before we promise
These come first, before a scope, a price or a date.
- The Odoo version, and whether it is Community or Enterprise: JSON-2 is documented for Odoo 19 and 20, and older versions use XML-RPC.
- Your plan or hosting. Odoo's documentation says access to data through the external API is only available on Custom Odoo pricing plans, and not on the One App Free or Standard plans. For Odoo.sh and self-hosted Odoo we confirm with you what your contract allows.
- Which Odoo apps and models the agent needs, and which of them are installed in your database.
- Which Odoo user and which access rights the agent gets, and who on your side approves them.
- Which languages are switched on, and how Arabic and English text is entered in the records the agent will read or write.
Where it fits
An agent that works with Odoo is part of these services:
Related case studies
Related integrations
Questions about AI agents and Odoo
Does our Odoo plan limit what you can connect?
It can. Odoo's documentation says access to data through its external API is only available on Custom Odoo pricing plans, and not on the One App Free or Standard plans. We confirm your plan or hosting before we promise anything.
Can an agent change records in our Odoo, or only read them?
That is set per agent, by the Odoo user it logs in as. We start with read-only, and Odoo refuses any change the user has no right to make. Writes are added one kind of record at a time, with a person's approval for anything that matters.
Which Odoo versions does this work with?
Odoo's current JSON-2 API is documented for versions 19 and 20, and we run version 20 ourselves. Older versions use XML-RPC, which Odoo has scheduled for removal in Odoo 22. We confirm your version first.
Do you use Odoo yourselves?
Yes. We run our own company on Odoo, with AI agents that work in it through their own users: sales, projects and tasks. We have not run Inventory, Purchase or Manufacturing there.