Для AI-агентов: markdown этой страницы — /docs/mcp-tool-prepare-reply-batch.mdиндекс документации — /llms.txt
prepare_reply_batch
Обновлено
Prepare personal messages for a human to approve: a reply to each customer's last message, a proactive message, or a ready card of a product, event, chain or other entity. Choosing the path: a personal text for each customer goes through prepare_reply_batch then execute_reply_batch; one identical message to a whole segment goes through broadcasts (create_broadcast). Get recipients from sample_segment_audience or list_dialogs. Each item is one customer, by user_id: a message (kind 'message', the default) with text and/or media, caption, entities and buttons. Pass reply_to_message_id as a message_id from get_conversation for one of this customer's messages to answer it: the reply arrives as a quote. Pass reply_to_message_id: null to write first (a greeting, an offer): a new message that answers nothing; leave it out to answer the customer's last message. An entity_card item (kind 'entity_card') carries target (the entity shown, as in a button) and on_active for a chain the customer is already in; it answers nothing. Each button is {text} with exactly one of url, callback_data or web_app_url (https; a Mini App only on an origin registered for your business, see get_mini_app_links; else a plain link), plus an optional style (primary, success or danger) and icon_custom_emoji_id. Media are refs from media_finalize or media_import_files; upload a heavy file once, reuse it. The result is the exact batch: each customer's name, the content and reply_to_message_id — the message answered (null for a proactive item, an entity card, or no customer message). A message_id that is not a quotable message of that customer refuses the whole batch, nothing is prepared (REPLY_TARGET_NOT_FOUND names the items). A batch does not skip customers who opted out of promotions, because it carries personal messages and not promotion: promotional text to someone who opted out is at the owner's own risk. Show the batch to the owner or operator; call execute_reply_batch only after they say to send. Nothing is sent here.
Права и условия
required_scopes: ALL.
| Поле | Значение |
|---|---|
| description | "Prepare personal messages for a human to approve: a reply to each customer's last message, a proactive message, or a ready card of a product, event, chain or other entity. Choosing the path: a personal text for each customer goes through prepare_reply_batch then execute_reply_batch; one identical message to a whole segment goes through broadcasts (create_broadcast). Get recipients from sample_segment_audience or list_dialogs. Each item is one customer, by user_id: a message (kind 'message', the default) with text and/or media, caption, entities and buttons. Pass reply_to_message_id as a message_id from get_conversation for one of this customer's messages to answer it: the reply arrives as a quote. Pass reply_to_message_id: null to write first (a greeting, an offer): a new message that answers nothing; leave it out to answer the customer's last message. An entity_card item (kind 'entity_card') carries target (the entity shown, as in a button) and on_active for a chain the customer is already in; it answers nothing. Each button is {text} with exactly one of url, callback_data or web_app_url (https; a Mini App only on an origin registered for your business, see get_mini_app_links; else a plain link), plus an optional style (primary, success or danger) and icon_custom_emoji_id. Media are refs from media_finalize or media_import_files; upload a heavy file once, reuse it. The result is the exact batch: each customer's name, the content and reply_to_message_id — the message answered (null for a proactive item, an entity card, or no customer message). A message_id that is not a quotable message of that customer refuses the whole batch, nothing is prepared (REPLY_TARGET_NOT_FOUND names the items). A batch does not skip customers who opted out of promotions, because it carries personal messages and not promotion: promotional text to someone who opted out is at the owner's own risk. Show the batch to the owner or operator; call execute_reply_batch only after they say to send. Nothing is sent here." |
| domain | "dialogs" |
| name | "prepare_reply_batch" |
| platform_version | "1.0.34" |
| required_scopes | ["dialogs:write"] |
| risk | "write" |
| scope | "dialogs:write" |
| title | "Prepare Reply Batch" |
Входные параметры
prepare_reply_batch: inputSchema