К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-tool-update-chain-step.mdиндекс документации — /llms.txt

update_chain_step

Обновлено

Patch one chain step by `chain_id` plus `step_id`. Steps own title, buttons and targets, timeout and timeout target, entry-point and active state, delay, message lifetime, prior-message deletion and the goal. `goal` is what the step sells (`order_created` — the order is placed, `order_paid` — it is paid; `null` clears it): a run standing on or past the step is closed as converted when the customer reaches it. TRANSITION buttons — a tap moves the customer's run to another step — are `deeplink_buttons: [{title, target_id}]`, the target is a step id of the same chain, at most 3 per step: a fourth is refused with CHAIN_STEP_TOO_MANY_TRANSITIONS (split the choice into two steps or move one option to the goal button). After a tap only the chosen transition stays on the sent card. `button_target` (kind url / deeplink / web_app) is the ONE goal button of the step, a LINK that opens a page or the bot, never a transition inside a funnel. Timeout targets (`timeout_next_step_id`) are step ids in the same chain. `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`. A step breaking those rules is refused with CHAIN_INSTANT_STEP_INVALID. The chain shell has no stored active state: its graph is computed from steps. The step message (text, caption, files) is not edited here — a request carrying it is refused by name; replace it with publish_entity (intent REPLACE, target_topic message_chains, replace_target {kind: card, id: the step id}).

Права и условия

required_scopes: ALL.

ПолеЗначение
description"Patch one chain step by `chain_id` plus `step_id`. Steps own title, buttons and targets, timeout and timeout target, entry-point and active state, delay, message lifetime, prior-message deletion and the goal. `goal` is what the step sells (`order_created` — the order is placed, `order_paid` — it is paid; `null` clears it): a run standing on or past the step is closed as converted when the customer reaches it. TRANSITION buttons — a tap moves the customer's run to another step — are `deeplink_buttons: [{title, target_id}]`, the target is a step id of the same chain, at most 3 per step: a fourth is refused with CHAIN_STEP_TOO_MANY_TRANSITIONS (split the choice into two steps or move one option to the goal button). After a tap only the chosen transition stays on the sent card. `button_target` (kind url / deeplink / web_app) is the ONE goal button of the step, a LINK that opens a page or the bot, never a transition inside a funnel. Timeout targets (`timeout_next_step_id`) are step ids in the same chain. `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`. A step breaking those rules is refused with CHAIN_INSTANT_STEP_INVALID. The chain shell has no stored active state: its graph is computed from steps. The step message (text, caption, files) is not edited here — a request carrying it is refused by name; replace it with publish_entity (intent REPLACE, target_topic message_chains, replace_target {kind: card, id: the step id})."
domain"chains"
name"update_chain_step"
platform_version"1.0.34"
required_scopes["chains:write"]
risk"write"
scope"chains:write"
title"Update Chain Step"

Входные параметры

update_chain_step: inputSchema

Результат

update_chain_step: outputSchema