run.motion_agent_chat_id). Once that project ID is populated, inspect its saved Generations and Exports via GET /projects/{id} or open https://motion.so/agent?chat={motion_agent_chat_id}.
Plan & scopes: Automations require a Pro plan or above, with
motion:automations:read to inspect capabilities, automations, runs, and analytics, and motion:automations:write to create, edit, delete, trigger, or retry runs.Triggers & safeguards
- Schedules:
schedule_once(exact future ISO-8601run_atwith timezone offset) orschedule_recurring(interval_minutes). - Channel & stream events: Call
GET /automations/capabilitiesto see which event triggers are enabled in your workspace (youtube_video_uploaded,youtube_channel_content,youtube_stream_ended,twitch_stream_ended,kick_stream_ended). - Policies & safety caps: Configure
connector_policy(none,fixed,conditional),memory(avoid reprocessing prior items),max_concurrent_runs, andmax_runs_per_hour. Pass a UUIDIdempotency-Keyheader onPOST /automations/{automation_id}/runfor safe manual retries.
The Automation object
Schedule or channel-event trigger configuration (
type, platform, label, source, plus interval_minutes or run_at).Controls which connected services runs may read (
mode: none, fixed, or conditional; on_unavailable: block or run_without; and grants[]).Cross-run memory configuration (
remember_processed_items, include_previous_runs, compact_after_runs).UUID of the Motion Project created by this run. Pass to
GET /projects/{id} to read its saved generations and exports.