Skip to main content
An Automation is a saved workflow combining a prompt, a trigger (one-time schedule, recurring schedule, or channel/stream event), a connector policy, and memory settings so Motion runs video production automatically. Every triggered run creates an Automation Run linked to a standard Motion Project (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-8601 run_at with timezone offset) or schedule_recurring (interval_minutes).
  • Channel & stream events: Call GET /automations/capabilities to 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, and max_runs_per_hour. Pass a UUID Idempotency-Key header on POST /automations/{automation_id}/run for safe manual retries.

The Automation object

string
Unique UUID for the automation workflow.
boolean
When false, future triggers are paused without interrupting runs already in progress.
object
Schedule or channel-event trigger configuration (type, platform, label, source, plus interval_minutes or run_at).
object
Controls which connected services runs may read (mode: none, fixed, or conditional; on_unavailable: block or run_without; and grants[]).
object
Cross-run memory configuration (remember_processed_items, include_previous_runs, compact_after_runs).
enum
Execution state of a run: queued, running, completed, skipped, failed, or blocked.
string | null
UUID of the Motion Project created by this run. Pass to GET /projects/{id} to read its saved generations and exports.

Endpoints