Agents API Workflow Bridge
Data Machine exposes datamachine/execute-agent-workflow as the supported bridge for simple Agents API workflow specs.
The bridge accepts a WP_Agent_Workflow_Spec array, passes execution to WP_Agent_Workflow_Runner, and records the run as a Data Machine direct job. It does not convert the spec into a Data Machine pipeline or implement a second workflow runner.
Supported Scope
Supported workflow shape:
- top-level
abilitysteps; - top-level
agentsteps, via the Agents APIagents/chatability; - empty triggers or
on_demandtriggers; - runner inputs, metadata, run IDs, and
continue_on_error.
Unsupported workflow features fail before execution with a typed error. Data Machine does not bridge foreach, cron triggers, action triggers, branching, parallel execution, nested workflows, or consumer-defined step types through this ability.
Job Mapping
Each run creates one Data Machine job with:
pipeline_id:direct;flow_id:direct;source:agents_api_workflow;label: caller-providedlabelorAgents API Workflow: <workflow_id>.
The job engine_data stores:
agents_api_workflow.workflow_idandagents_api_workflow.run_id;- the source
spec, runnerinputs, and runnermetadata; workflow_run_result, mirroringWP_Agent_Workflow_Run_Result::to_array();step_outcomes,output, anderrorfor job reporting;artifactsandlogs, copied frommetadata.artifactsandmetadata.logswhen the caller supplies them becauseWP_Agent_Workflow_Run_Resulthas no separate first-class artifact/log fields;provenanceidentifying Agents API as the source,WP_Agent_Workflow_Runneras the executor, and Data Machine jobs as the recording surface.
Runner status maps to Data Machine job status as follows:
runningremainsprocessing;succeededbecomescompleted;failedbecomesfailed - <error_code>;skippedbecomesfailed - agents_api_workflow_skipped.