Add a step to a workflow
add_stepAdd one step: a step_type (get_step_type for its settings) or an app action (app_action from search_actions, with settings.integration_arguments from get_action_schema). Without placement it goes just before End; in a workflow with conditions or loops pass placement. A prompt step needs messages. The change is saved as a version: the answer's undo.version_id restores the steps from before it. Check problems in the answer before running.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workflow_id": "<workflow_id>"
},
"name": "add_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| messages | No | Prompt steps only: system message, user message, then a user message of labelled placeholders. | |
| settings | No | Field names and values from get_step_type (for an app action: integration_arguments, and integration_authorization_id when the app has more than one connected account). | |
| placement | No | Where it goes, relative to step_id: after_step, condition_true or condition_false (first in that branch), after_condition, iteration_body (inside the loop), after_iteration. | |
| step_type | No | From list_step_types. Leave out for an app action. | |
| app_action | No | An action slug from search_actions, e.g. "SLACK_SEND_MESSAGE". | |
| workflow_id | Yes |