Skip to content

Started by an agent

This trigger turns the workflow into a tool that your agents can call during a conversation. The input fields you declare become the tool’s arguments, so the agent knows what to collect before it starts the run. The agent either gets a run id straight away or waits for the outcome.

  • A support agent on a call raises a refund request that needs back-office checks and approval.
  • A chat agent books a home sample collection, and a workflow handles the slot and the confirmation message.
  • An agent starts a loan top-up check and tells the customer the result in the same conversation.
Setting What it does
Input fields Values the agent must pass. Each has a name, a type and can be required. They become the tool’s arguments. A run with a missing required field or a wrong type is refused.
Agents that may start it The agents that get this workflow as a tool. Empty allows any agent in the workspace.
The agent immediately (default): the agent gets a run id and can ask for the status later. on_completion: the agent waits for the outcome, up to the response timeout.
Response timeout For On completion. Default: 20s. The agent never waits longer than 55 seconds, whatever you set.
  • input.<field> for each value the agent passed, converted to the declared type.
  • trigger.type is trigger.agent.
  • With On completion, the agent receives the run’s outcome and the Output of the End step.
  • With Immediately, the agent can read the run’s customer-safe status through get_workflow_status. You set that status with Status update.

An agent can only start a workflow through this trigger, and only when it is allowed here.

A bank’s chat agent starts a card replacement request once the customer has confirmed the reason.

Started by an agent → Identity check (OTP) → MCP tool (block card) → Status update → Send message → End

Input fields the agent passes:

{ "customerRef": "C-20411", "cardLast4": "4421", "reason": "lost" }