ai_pipeline_run
Execute Odoo-defined pipeline steps in sequence, dispatching MCP-native steps locally and others via RPC, with error handling and per-step state updates.
Instructions
Execute an Odoo-defined pipeline (ai.pipeline.step records for the given pipeline name, ordered by sequence). Respects skill_id + trigger_domain + on_error. MCP-native steps (model starts with 'mcp') are dispatched to the local registry; other steps are invoked via RPC on the configured Odoo model.method. Writes back last_run_state/message per step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | default | |
| pipeline | Yes | Pipeline name as defined in Odoo (tokenize, post, refresh, ...). | |
| source_model | Yes | Odoo model of the triggering record (e.g. account.move). | |
| source_id | Yes | ||
| tenant_code | No | ||
| tenant_tier | No | business | |
| extra_ctx | No | Additional key/value pairs merged into the runtime context. | |
| update_step_stats | No | Write last_run_state/message back to ai.pipeline.step. |