Answer the questions you ask about every record, in about a second.
A decision model reads a ticket, a lead or any text and answers fixed questions: one choice out of a list, a score on a scale, or the chance of a yes, each with its confidence. Use it to fill fields, route records and start an AI agent only where one is needed.
A team, the tags or any selection set by a server action, from an automation rule, a schedule or a list.
Every answer carries its confidence. Below your threshold nothing is written, and a person checks the record.
A yes or no question first, so an AI agent chat starts only for the records that still need one.
Questions instead of prompts
Decide with AI is a server action for any model. Each question either fills a field or routes the record, and the decision model answers them all for a record in one call.
One choice out of a list, a score on a scale, or the chance of a yes, with a probability for every option.
A selection, a many2one or a tags field turns its values into the options, with one yes or no per tag.
An answer can run another action on the records that gave it, such as a refund check for the billing team.
An answer below its confidence is never written. Each question names the action that takes its unsure records over.
The preview shows the exact text the decision model reads for any record, before a single decision is paid for.
Jev in the TypeSafe cloud, Laya on your own server with Decis, or the small model of your chat provider.
Sorted before anyone reads it
Run the action from the Actions menu of a list, or put it in an automation rule that fires on creation. Every ticket gets its team and its tags the moment it arrives.
A refund request gets its check, and a ticket the model was not sure about gets a to-do instead of a guess.
Every decision, and why
Each decision is logged with the question set, the answers and their probabilities, the model that served it, the time it took, its cost, and the values it wrote.
When a record was sorted the way you did not expect, the log shows what the model saw and how sure it was.
No key and no server yet? The small model of OpenAI, Anthropic or Google answers in the same shape, and the next provider takes over when one fails.
A chat only where it is needed
A yes or no decision in front of an agent action asks about each record first. Only the records answered yes, or where the model is unsure, get an agent chat.
A thank-you note does not need a reply drafted, and costs a fraction of a cent instead of a chat.
The decide tool for your agents
An agent hands the decide tool the texts it was given, the records it names, or every record a domain selects, and gets them back grouped by answer, in one call.
Spam or not, which tags fit, which team should take it. The cost of the call counts against the budget of the chat like every other turn.
One service, every module
Every decision goes through the same service, so your own modules get the providers, the fallback, the log and the cost tracking for free.
decide(state, questions) on muk_ai.decision answers a choice, a score or a yes or no about any text or record.
The decide tool is open to every MuK AI agent and to MCP clients, for texts, records or a whole domain at once.
Any server speaking the System One API is a provider: a hosted model with its key, or your own with none.
Help and support
What you get for free, and what has to be paid work.
Issues and merge requests are welcome on the public repository. They are read — but no response time is promised.
A question set built for your process, or a fix on a deadline, is paid work — quoted up front. Write to sale@mukit.at.
LGPL-3. Use it, change it, ship it inside your own work — no licence key, no database count.
Want more?
MuK IT — Austrian Odoo partner, ViennaModules written for your process, on your Odoo version.
Odoo joined up with the systems you already run.
Hosting, deployment and upgrades you do not have to watch.
Your team taught the parts of Odoo they actually use.
An agreement, so an answer does not depend on who is free.
Documentation
The full text is on the Documentation tab, and in doc/ inside the download.Odoo.sh or on-premise, Community or Enterprise, with MuK AI Assistant and MuK AI Automation. A decision server is optional: without one, a chat provider answers.
Under MuK AI › Configuration › Providers, give TypeSafe its key or Decis its address, or set a Default Decision Model on a chat provider.
Depends on muk_ai_automation. Install it like any other module; it needs no extra Python packages.
Create a decision action with its questions, then run it from the Actions menu, an automation rule or a schedule. Put a decision in front of an agent action. Read every answer in the log.
Decision actions, their questions and the log are records, and an upgrade keeps them.
MuK IT GmbH, Vienna. Author and maintainer.
Which questions does your team answer by hand all day?
Tell us where records wait for someone to sort them, and we will tell you which decision takes that over. MuK IT — Austrian Odoo partner, Vienna.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 41211 |
| Technical Name |
muk_ai_decision |
| License | LGPL-3 |
| Website | http://www.mukit.at |
MuK AI Decision
Adds decision models to the MuK AI assistant. A decision model reads a text or a record and answers typed questions: one choice out of a list, a score on a scale, or the probability of a yes, each with its confidence. One service answers them for every module, through any server speaking the System One API, TypeSafe Jev in the cloud or a self-hosted Laya, or a small chat model of an existing provider. Every decision is logged with its model, answers, duration and cost. A Decide with AI server action fills fields, routes records to other actions and flags unsure ones from any automation rule or scheduled action, a decision step in front of an agent starts its chats only where they are needed, and agents decide about texts or records through the decide tool.
Installation
To install this module, you need to:
Download the module and add it to your Odoo addons folder. Afterward, log on to your Odoo server and go to the Apps menu. Trigger the debug mode and update the list by clicking on the "Update Apps List" link. Now install the module by clicking on the install button.
Upgrade
To upgrade this module, you need to:
Download the module and add it to your Odoo addons folder. Restart the server and log on to your Odoo server. Select the Apps menu and upgrade the module by clicking on the upgrade button.
Configuration
Open MuK AI > Configuration > Providers. Every provider has a Default Decision Model; the decision providers are asked first, then the chat providers, each in list order, and the next one takes over when one fails:
- System One Compatible: any server speaking the System One decision API. Two accounts ship ready to fill in: typesafe decides with Jev in the TypeSafe cloud once its API key is set, decis with Laya on a self-hosted Decis server once its Custom URL is set, with a key only when the server asks for one. An account without either is skipped; Test Connection answers one question.
- OpenAI, Anthropic and Google: their smallest chat model answers decisions through structured output when no System One account is active. The model reports its own confidence, which is less reliable than the probabilities of a decision model. Parallel Decisions sets how many records are sent at once; set it to 1 for a self-hosted server on a CPU.
Decisions are deleted after the Log Retention of the MCP audit logs under Settings > MuK AI.
Usage
Decide with AI (MuK AI > Automation > Decision Actions) is a server action for any model, run from an automation rule, a scheduled action or the Action menu of a list:
- Questions: What should the AI do? sets the goal. Fill a Field fills a yes/no, selection, many2one or tags field, limited to its Candidates; a tags field asks one yes/no per tag and its Operation either adds the tags that apply, or adds them and also removes the tags that confidently do not apply. Own Categories and Score list their own options or levels, and Yes/No Check asks a question to route on. An answer is written only above its Min. Confidence.
- Options: a table of the categories, or the levels of a score from lowest to highest, each with a description as a hint and a Run Action for the records answered with it, for example an AI agent action for complaints. A Yes/No Check runs its action on the answer yes or no.
- When Unsure: per question, an action run on the records whose answer stays below its confidence, for example one that schedules an activity to check them.
- Reads: the fields the decision model reads, of any type, each with its label and readable value and long texts cut short, preset to the name and the list columns, with Read Last Messages that many of the last emails and comments, with External Only without the internal notes; or Python Code that builds the text itself. Preview shows it for a record.
The log notes the values each decision wrote.
To start an agent chat only where it is needed, put a decision in front of the agent action: a Yes/No Check whose answer yes and When Unsure both run the agent action.
A step of an AI automation rule (MuK AI > Automation > Automation Rules) is a decision or an agent run: a decision step sets the tags of a new record, an agent step after it works with them.
A module asks for a decision in Python:
result = env['muk_ai.decision']._decide(
mail.body,
{
'team': {
'type': 'choice',
'instructions': 'Which team should handle this?',
'criteria': {'billing': 'Payments', 'support': 'Bugs'},
},
'refund': {'type': 'noul', 'instructions': 'Is it a refund request?'},
},
min_confidence=0.8,
record=mail,
origin='mail_triage',
)
Each answer carries its confidence and a confident flag against min_confidence. Pass model to pin one model version; a pinned model never hands over to another provider.
AI agents call the decide tool about the texts they were given, the records they name, or every record a domain selects; a question can name a field to take its options from, and the result groups the texts or records by answer with the value to write. Its cost counts against the budget of the chat. MuK AI > Reports > Decision Logs lists every decision with its answers, served model version, duration and cost.
Credits
Contributors
- Mathias Markl <mathias.markl@mukit.at>
Author & Maintainer
This module is maintained by the MuK IT GmbH.
MuK IT is an Austrian company specialized in customizing and extending Odoo. We develop custom solutions for your individual needs to help you focus on your strength and expertise to grow your business.
If you want to get in touch please contact us via mail (sale@mukit.at) or visit our website (https://mukit.at).
Please log in to comment on this module