Для AI-агентов: markdown этой страницы — /docs/mcp-tool-create-chain-step.mdиндекс документации — /llms.txt
create_chain_step
Обновлено
Add a step with its message to the chain `chain_id`. `content` is required (text and/or `media_refs` from media_finalize); `title` and `delay_minutes` are optional. The first step of a chain becomes its entry point. Returns the step's `step_id`; when `wait_timed_out` is true, find the step with list_chain_steps. Set buttons, timeouts and entry state with update_chain_step; replace an existing step's message with publish_entity (intent REPLACE, replace_target id = the step id). A step is reusable prepared content in two modes: a STANDALONE message (video, file, photo, instruction) the AI agent sends instead of inventing text, attached to a knowledge entry with create_knowledge(prepared_step_ids); and an ENTRY into a funnel (an entry-point step): the AI sends the opening message and the whole funnel starts from it. Do not park standalone steps in a service chain with `is_active: false`: a switched-off step is never sent. `timeout_minutes: 0` with `timeout_next_step_id` sends the next step right after this one, as a reply to it — use it to follow a media card (caption up to 1024) with a long text step; the instant step carries no buttons and no `timeout_condition`.
Права и условия
required_scopes: ALL.
| Поле | Значение |
|---|---|
| description | "Add a step with its message to the chain `chain_id`. `content` is required (text and/or `media_refs` from media_finalize); `title` and `delay_minutes` are optional. The first step of a chain becomes its entry point. Returns the step's `step_id`; when `wait_timed_out` is true, find the step with list_chain_steps. Set buttons, timeouts and entry state with update_chain_step; replace an existing step's message with publish_entity (intent REPLACE, replace_target id = the step id). A step is reusable prepared content in two modes: a STANDALONE message (video, file, photo, instruction) the AI agent sends instead of inventing text, attached to a knowledge entry with create_knowledge(prepared_step_ids); and an ENTRY into a funnel (an entry-point step): the AI sends the opening message and the whole funnel starts from it. Do not park standalone steps in a service chain with `is_active: false`: a switched-off step is never sent. `timeout_minutes: 0` with `timeout_next_step_id` sends the next step right after this one, as a reply to it — use it to follow a media card (caption up to 1024) with a long text step; the instant step carries no buttons and no `timeout_condition`." |
| domain | "chains" |
| name | "create_chain_step" |
| platform_version | "1.0.34" |
| required_scopes | ["chains:write"] |
| risk | "write" |
| scope | "chains:write" |
| title | "Create Chain Step" |
Входные параметры
create_chain_step: inputSchema