chatbot_triggering_answers_widget
Tags for the answers that trigger a chatbot step, filtered to the script you are editing. It does that by writing into the user's own context, which is an unusually blunt way to pass a filter.
| Technical name | chatbot_triggering_answers_widget |
|---|---|
| Field types | many2many |
| Views | form, list |
| Module | im_livechat, Live Chat and chatbots |
| Used in core | 1 occurrence, the chatbot script step form in im_livechat |
| Versions | Odoo 19.0, Odoo 18.0, Odoo 17.0, Odoo 16.0 |
| No-code setup | No. It relies on a server-side domain keyed off the context it writes |
| Alternatives | many2many_tags, chatbot_steps_one2many, many2many |
What the chatbot answers picker does
What this means for your team
Supported options in Odoo 19
| Option | Type | What it does |
|---|---|---|
force_domain_chatbot_script_id | context key written by the widget | Written into the user's context at startup with the current script's id, and read by the server-side domain on the answers field. Not scoped to the field or the view. |
no_create | boolean | Inherited from the tags widget. Removes creation from the dropdown.(default: false) |
no_quick_create | boolean | Inherited. Removes creation from the typed text while keeping the popup form path.(default: false) |
color_field | field | Inherited from the tags widget. Names an integer field used to color the tags. |
The filter travels through the user context. The widget writes a key naming the current script, and the server-side domain on the answers field reads it. Because it is written to the user's context rather than to the field's, it is not scoped to this field or even to this view once set.
Working examples
A filter written into the user's context
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 20.0 | In development | Not released. The widget and its file are absent from the development branch. |
| Odoo 19.0 | Verified | Verified against the shipped source. Identical to Odoo 18. |
| Odoo 18.0 | Verified | Same context write and same guard. |
| Odoo 17.0 | Verified | Same purpose with older component conventions. |
| Odoo 16.0 | Verified | Same purpose with older component conventions. |
Upgrade note. No view change is needed between Odoo 18 and Odoo 19, where the file is identical. The change to plan for is the next version, where the widget is absent entirely and the step form will need re-checking.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| Answers from other scripts are offered | The context key was never written, usually because the script has not been saved. Save the chatbot script; the key is only written when the record has an id. |
| The wrong script's answers are offered | The key was written for another script earlier in the session and not cleared. Reload the page. Nothing clears the key when the widget is destroyed. |
| The filtering does nothing | The server-side domain on the field does not read that context key. Check the field definition; the widget only supplies the key. |
| Options are ignored | The widget declares none of its own; the inherited tag options work normally. Use the tags widget's options as usual. |
| The filter disappeared after upgrading | The widget is absent from the next version, so the name falls back to the field's type. Re-check the step form and how filtering is done in that version. |
| Missing widget error | The live chat module is not installed in that database. Install Live Chat, or use the plain tags widget. |
Chatbot answers picker vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
chatbot_triggering_answers_widget | Narrowing a relation to the record being edited, inside the chatbot builder | Writes a filter key into the user's context at startup rather than passing a domain |
| many2many_tags | Any relation shown as tags | No filtering, so every record is offered |
| chatbot_steps_one2many | The steps list in the same builder | The list this field lives beside, with its own saving behavior |
| many2many | A relation shown as a table | Columns rather than tags |
Frequently asked questions
How does it filter the answers?+
Why is nothing filtered on a new script?+
Does the context entry get cleaned up?+
Does it support options?+
Does it exist in Odoo 20?+
Chatbots that hand over at the right moment
Script design, handover rules and the reporting behind them decide whether a chatbot deflects work or creates it. We build Odoo Live Chat and chatbot flows on versions 16 through 19.
Book a free consultation