AI fields¶
AI fields allow users to utilize Odoo’s built-in AI capabilities directly in forms and records. When an AI field is configured, the system can generate or suggest values automatically based on the record’s context, existing data, or external information.
This feature is especially useful for creating product descriptions, summarizing notes, or generating structured content from unstructured data.
Adding a new AI field¶
AI fields can be added to a record through the Studio app or property field.
Aviso
Installing Studio may impact the current pricing plan for a database. For more information, refer to Odoo’s pricing page or contact your account manager.
First, navigate to the page in the database where a new field is needed. Then, click on the studio icon to open the app. On the left sidebar, click and drag the AI Field option and place it in the desired location on the record.
After the field is placed, an Add an AI Field pop-up opens. Use the Field Type drop-down menu to select a field type:
Texto
Multiline Text
HTML
Integer
Decimal
Monetary
Data
Datetime
Checkbox
Many2one
Marcadores
Next is the Prompt field. In Odoo, prompts define the instructions that guide the AI when generating or improving the content of the AI field. The prompt tells the system what kind of information to produce, how to format it, and what tone or style to use.
When creating a prompt, use the /field command to reference specific fields in the database. For
example, to reference the Company field on a record, enter /field, and click the
Field Selector option. Type Company in the search bar, and select Company
from the list.
Once the prompt is complete, click Add Field. Before closing Studio, click on the left sidebar and update the Label field with a title for the new AI field. Then click Close to exit Studio.
After the field is added, click the AI icon to refresh the field value.
Dica
If the AI is unable to complete the request, a warning message is generated. This could mean that the prompt is asking for information that is not available, in the given context, or that the prompt is providing unclear instructions. Use this as an indication to revisit the prompt and add additional context or instructions.
Add via edit properties¶
AI fields can also be added as property fields without opening the Studio app. Click on the Actions icon and select Edit Properties. Tick the AI checkbox, confirm the field should be AI-enabled, then follow the steps above to define the field type and enter the prompt.
Nota
Property fields can only be added to form views.
Computing AI fields¶
To compute, or refresh, an AI field, click on the AI icon next to the field. Clicking the button updates the field based on the prompt.
Additionally, a scheduled action runs once a day to compute all AI fields. This action is active by default.
Dica
To run the scheduled action manually, navigate to . Click on AI Fields:Compute AI fields to open it, then click Run Manually.