Conductor
Conductor is an open-source workflow orchestrator. If your organisation runs it, a Conductor workflow can call your CHANGENTS.AI agents and platform checks as ordinary tasks, through the MCP server.
Tested: Conductor OSS 3.34.5 on 28 November 2026, on a local installation of both. Its MCP tasks and its A2A tasks both work.
What you need
- Conductor with its AI tasks switched on (
conductor.integrations.ai.enabled=true). - A CHANGENTS.AI key with the
mcpscope: on/developer, choose Create MCP Key. - Your MCP address:
https://changents.ai/api/v1/mcp, orhttps://<your-host>/api/v1/mcpon your own installation. Conductor must be able to reach it.
Pass the key to a workflow as an input and keep it in Conductor's own secret handling. Do not write it into a workflow definition.
Run a platform check
A check computes its figures in code from the documents you send. No model is involved. This workflow checks a demurrage and detention invoice:
{
"name": "changents_dd_invoice_check",
"description": "Check a demurrage and detention invoice with CHANGENTS.AI. The figures are computed in code; no model is involved.",
"version": 1,
"schemaVersion": 2,
"inputParameters": ["mcpServerUrl", "mcpKey", "documents"],
"tasks": [
{
"name": "check_dd_invoice",
"taskReferenceName": "check",
"type": "CALL_MCP_TOOL",
"inputParameters": {
"mcpServer": "${workflow.input.mcpServerUrl}",
"method": "check_dd_invoice",
"arguments": { "documents": "${workflow.input.documents}" },
"headers": { "Authorization": "Bearer ${workflow.input.mcpKey}" }
}
}
],
"outputParameters": {
"isError": "${check.output.isError}",
"result": "${check.output.content[0].parsed}"
}
}Start it with this input, where each document is a file's name and its contents as text (.csv, .txt or .json, at most 1 MB each, up to 10):
{
"mcpServerUrl": "https://changents.ai/api/v1/mcp",
"mcpKey": "<your MCP key>",
"documents": [
{ "name": "free_time_rules.csv", "text": "…" },
{ "name": "container_moves.csv", "text": "…" },
{ "name": "dd_invoice_DD-1001.csv", "text": "…" }
]
}The workflow's result output holds the check's headline, figures and findings.
Run an agent
Starting an agent returns a run id at once. The workflow then reads the run until it has finished:
{
"name": "changents_run_agent",
"description": "Start one CHANGENTS.AI agent on an instruction and read its run until it finishes or stops for approval.",
"version": 1,
"schemaVersion": 2,
"inputParameters": ["mcpServerUrl", "mcpKey", "agentType", "instruction", "documents"],
"tasks": [
{
"name": "list_tools",
"taskReferenceName": "tools",
"type": "LIST_MCP_TOOLS",
"inputParameters": {
"mcpServer": "${workflow.input.mcpServerUrl}",
"headers": { "Authorization": "Bearer ${workflow.input.mcpKey}" }
}
},
{
"name": "run_agent",
"taskReferenceName": "start",
"type": "CALL_MCP_TOOL",
"inputParameters": {
"mcpServer": "${workflow.input.mcpServerUrl}",
"method": "run_agent",
"arguments": {
"agent_type": "${workflow.input.agentType}",
"instruction": "${workflow.input.instruction}",
"documents": "${workflow.input.documents}"
},
"headers": { "Authorization": "Bearer ${workflow.input.mcpKey}" }
}
},
{
"name": "read_until_finished",
"taskReferenceName": "read_loop",
"type": "DO_WHILE",
"loopCondition": "if ($.read_loop['iteration'] < 40 && $.read['content'][0]['parsed']['finished'] != true && $.read['content'][0]['parsed']['status'] != 'awaiting_approval') { true; } else { false; }",
"loopOver": [
{
"name": "get_run",
"taskReferenceName": "read",
"type": "CALL_MCP_TOOL",
"inputParameters": {
"mcpServer": "${workflow.input.mcpServerUrl}",
"method": "get_run",
"arguments": {
"run_id": "${start.output.content[0].parsed.runId}",
"wait_seconds": 30
},
"headers": { "Authorization": "Bearer ${workflow.input.mcpKey}" }
}
}
]
}
],
"outputParameters": {
"runId": "${start.output.content[0].parsed.runId}",
"run": "${read.output.content[0].parsed}"
}
}agentType is an agent id from the list_agents tool, such as shipping. Each read waits up to 30 seconds for the run, and the loop makes at most 40 reads.
What stays the same as in the app
- A run started from Conductor is an ordinary run of the key's owner. It uses one run of their allowance, appears under Runs, and follows your approval rules and retention policy.
- Approvals are decided in CHANGENTS.AI. No tool approves a step. When a run stops for approval, the workflow above ends its loop and returns the run with status
awaiting_approval. Approve the step in the app, then read the run again withget_run. - Each check also uses one run of the allowance.
How Conductor calls the MCP server
- It lists and calls tools directly, without an
initializecall first. - It reads each tool's result from the text content, as JSON. In a workflow, that is
<task>.output.content[0].parsed. - The key goes in the task's
headersinput, as in the examples.
Over A2A instead
Conductor's AGENT task can send work to an agent through the A2A server. Conductor 3.34.5 uses the A2A 0.3 method names, which the A2A server answers. You need a key with the a2a scope (Create A2A Key on /developer).
{
"name": "changents_a2a_agent",
"description": "Send work to one CHANGENTS.AI agent over A2A and wait for its result.",
"version": 1,
"schemaVersion": 2,
"inputParameters": ["agentUrl", "a2aKey", "agentType", "instruction"],
"tasks": [
{
"name": "get_agent_card",
"taskReferenceName": "card",
"type": "GET_AGENT_CARD",
"inputParameters": { "agentUrl": "${workflow.input.agentUrl}" }
},
{
"name": "ask_agent",
"taskReferenceName": "ask",
"type": "AGENT",
"inputParameters": {
"agentType": "a2a",
"agentUrl": "${workflow.input.agentUrl}",
"message": {
"role": "user",
"metadata": { "agentType": "${workflow.input.agentType}" },
"parts": [{ "kind": "text", "text": "${workflow.input.instruction}" }]
},
"pollIntervalSeconds": 5,
"maxDurationSeconds": 600,
"headers": { "Authorization": "Bearer ${workflow.input.a2aKey}" }
}
}
],
"outputParameters": {
"state": "${ask.output.state}",
"taskId": "${ask.output.taskId}",
"text": "${ask.output.text}",
"artifacts": "${ask.output.artifacts}"
}
}- Set
agentUrlto the A2A endpoint itself,https://changents.ai/api/v1/a2a, not the site's address: Conductor posts to the address it is given. agentTypeis a skill id from the agent card, the same ids aslist_agents.- Conductor reads the task every
pollIntervalSecondsuntil it ends. TheAGENTtask's output has the finalstate, thetaskId(the run's id),textandartifacts. - A run waiting for approval reads as
input-required. Approve the step in CHANGENTS.AI; sending the task another message does not approve it. - If Conductor retries the task, the repeated message starts a second run.
MCP or A2A: use MCP for the platform checks and when you want to send documents as plain text; use A2A when your workflow already treats outside agents as A2A agents.
Not tested
A run that stops for approval, started from Conductor, over either protocol.
Starting a Conductor workflow from Power House Studio
The HTTP Request step has a preset, Conductor: start a workflow. It posts to your Conductor server and the reply is the new execution's id. Set conductorHost and workflowName as run inputs.
- The step calls public addresses only, so your Conductor must be reachable from CHANGENTS.AI.
- It is a
POST, so a live run waits for a person's approval before it is sent. - The preset has not been run by us against a live server through this step.