Scenarios
scenariosRead scenarios — this tool changes nothing. Actions: list, get, performance. Anything that writes (create, update, trigger, test, delete) is on scenarios_manage and is refused here.
Manage automation scenarios. Call get_action_types and get_trigger_types first when building triggers/actions. Shortcut worth checking before you build anything: to reply to people who comment on ONE specific post and DM them a link, use the medias tool's attach_comment_to_dm action instead — it targets the post, creates the link and fills in every step. Build a scenario here for anything wider (all posts, the next post, caption matching) or for a different flow. Actions: list (paginated index, params: page, per_page, order_column, order_direction, search, scenario_folder_id filter); get (full triggers/actions JSON + AI generation_data, params: id [required]); create (3 mutually-exclusive modes: template_id clones a template; prompt triggers async AI generation; triggers/actions persist a direct JSON definition); update (params: id [required]; prompt is mutually exclusive with triggers/actions; actions is the COMPLETE list — omitted existing actions are destroyed; triggers replace all existing triggers only when no item has an id, otherwise unlisted triggers are kept); trigger (run a scenario for contacts, params: scenario_id [required], contacts [required], data); test (run a scenario once for ONE contact, even if inactive; really sends the scenario's messages to that contact and is excluded from metrics, params: scenario_id [required], contact [required]); delete (permanently delete a scenario and its triggers/actions, params: id [required]); performance (per-step funnel over a window — how many runs reached each step, how many finished it, and the reason codes behind the rest: this is what says WHICH STEP of a misbehaving scenario is breaking. Params: id [required], since, until. Then use the executions tool to read the failing runs themselves).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The read operation to perform on scenarios. | |
| action_params | No | Parameters for the chosen action. Required per action — get/update/delete: id; trigger: scenario_id + contacts; test: scenario_id + contact. create has no required param but the three build modes (template_id | prompt | triggers/actions) are mutually exclusive. |