Save an automation
save_automationCreate or update stream automations that respond to events like follows, raids, and cheers. Define triggers and prompts to automatically react to high-signal events during live streams.
Instructions
Create or update an automation (matched by id; id is derived from name when omitted). Only create automations the streamer asked for. The doc follows automation-v1: trigger.event_types uses canonical names ("Follow", "Raid", "Cheer", "SuperChat", …); trigger.min_amount compares against the event's amount, whose meaning is per-type (raid=viewers, cheer=bits, gift=count, resub=months). Prefer rare, high-signal events; every match wakes the AI session. Matching events start relaying immediately.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | automation-v1 doc: { name, trigger: { event_types: ["Raid"], platform?, min_amount? }, prompt, enabled?, id? }. |