ai_pipeline_step_execute
Execute a named AI pipeline step in Odoo to process a record, update context with computed fields, and return results.
Instructions
Execute a single ai.pipeline.step by name via Odoo RPC. Looks up the step in Odoo by name, builds a ctx from the supplied parameters, calls env[step.model].step.method(ctx), and returns the updated ctx (with composite_fields populated by the step). Use ai_pipeline_steps_list to discover available step names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | default | |
| step_name | Yes | The step 'name' field in Odoo (e.g. 'resolve_partner_bg', 'post_vendor_bill_bg'). | |
| source_model | Yes | Odoo model of the triggering record (e.g. 'account.move'). | |
| source_id | Yes | Database ID of the source record. | |
| composite_fields | No | ctx['composite_fields'] dict — pass extracted invoice fields: partner_vat, partner_name, partner_eik, invoice_date, ref, amount_total, lines, etc. | |
| extra_ctx | No | Additional top-level ctx keys merged before executing the step. |