Create a workflow from a template
create_workflow_from_templateCreate a new workflow in the team by copying a prebuilt template. The workflow goes live at once when it can take requests; active in the result says whether it did, and message says why not. There is no way to keep it as a draft, so tell the user before calling if they asked for one. Call activate_workflow only for a workflow that is inactive. Prefer this over building a workflow field by field.
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": {
"template_id": "<template_id>"
},
"name": "create_workflow_from_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional workflow name (max 75 chars). Defaults to the template name. | |
| steps | No | Optional. Approval steps to wire into the clone. Omit or pass an empty array to leave approvers blank — that is a supported setup, and the person submitting picks the approver on the form. Resolve every approver to a TeamUser id with `search_team_users` BEFORE calling — never pass names or emails. For sequential approvals (e.g. manager → finance) pass multiple steps in order. For value-based routing ('under $1,000 to Julia, $1,000+ to Serge') give each branch its own step and put the rule in that step's `conditions`. | |
| add_fields | No | Extra fields to append beyond the template's (plain fields, no OCR binding). | |
| template_id | Yes | Template id from `list_workflow_templates`. | |
| remove_fields | No | Labels (or bindings) of template fields to drop, e.g. 'Cost center'. On OCR templates, removing the invoice-file field disables extraction. | |
| rename_fields | No | Rename template fields while keeping their bindings (so OCR survives). | |
| template_name | No | The template's name exactly as `list_workflow_templates` returned it, e.g. 'Bill Approval'. ALWAYS pass this alongside `template_id` — the name is what the user said, and if the two disagree the name wins. Passing the id alone has created the wrong workflow when the id was misremembered across turns. |