asksteps: create a process (as a draft)
asksteps_create_processCreates a process from building blocks (form, appointment, email, info, end) and the transitions between them. Requires "automation:write". The process is created as a DRAFT: nothing is switched on, nothing is sent, and the user opens it in the studio (blocks are laid out there). Call asksteps_get_automation_catalog first for kinds, exits, settings, conditions and limits. A fixed recipient address cannot be set by an agent (address_not_allowed); an API request block (kind "api") can only be created in the studio (api_part_studio_only); a message template for a transition must already exist (asksteps_create_message_template). portModes per block sets how an exit chooses ("first" or "all"); without it an exit is "all", or "first" when it mixes a transition without condition with ones that have a condition. Answers with the issues (path and code) when something is wrong, and "quota_exceeded" when the plan's process limit is reached. Switching on is a separate step: asksteps_set_process_active, which needs the account's mandate and otherwise answers "confirmation_required".
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": {
"spec": "<spec>"
},
"name": "asksteps_create_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The process: name, description, building blocks and transitions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Path of the process editor in the asksteps studio. Hand it to the user; a process created here shows its blocks laid out when the studio opens it. | |
| note | Yes | One or two sentences for the user. On "confirmation_required" and "pause_required" it says why. | |
| used | No | How many the account holds. Only on "quota_exceeded". | |
| limit | No | The plan limit. Only on "quota_exceeded". | |
| issues | No | The problems found, with path and code. Empty unless status is "invalid". | |
| status | Yes | Outcome. One of: "created" (a draft exists, nothing is switched on), "updated", "invalid" (the issues say exactly what to fix; nothing was saved), "quota_exceeded" (the account holds as many processes as its plan allows), "pause_required" (the process is active and this change touches its structure — it can only be made while the process is paused), "confirmation_required" (the process is active or paused and the account has not authorised an agent to change it: NOTHING was written, give the user the url), "stale" (the process was switched on, paused or otherwise changed in status since you read it: NOTHING was written, read it again), "rate_limited" (too many changes to live objects in the last minute), "not_found", "not_connected", "error". Authorisation can also refuse before the tool runs: "plan_required" (the account's plan does not include agent access), "not_enabled" (the account owner has not switched agent access on), "permission_denied" (the connected user's role lacks the permission; the note names it), "mandate_required" (the owner has not granted a mandate for this). The note then says what the user has to do. | |
| quotaKey | No | The limit that was reached, for example "processes.max". Only on "quota_exceeded". | |
| processId | No | The id of the process. | |
| processStatus | No | The status of the process after the call: "draft", "active" or "paused". A created process is always "draft". |