Skip to content
ThirdLayer

Docs > Automations

Automations

Run personal and shared Dex agents on schedules, one-shot datetimes, integration events, or manual dispatches with admission checks and approvals.

An automation defines when an agent runs and the task for each run. Automations live under their parent agent’s folder in Factory (agents/<slug>/automations/<name>.md or workspace/agents/<id>/automations/<id>.md) and inherit the agent’s identity, harness, model, requires, and write-approval policy from AGENT.md.

Keep standing agent behavior in AGENT.md and repeatable step-by-step procedures in skills. Keep only the trigger, optional condition, and per-run task in the automation file.

ScopeFile pathWhat happens on trigger
Personal agent automationusers/<you>/agents/<slug>/automations/<name>.mdRuns once for you under your connected accounts and optional Access Scope
Shared agent automation (fan-out)workspace/agents/<id>/automations/<id>.md (no TEAM.md body)Creates one parent run and dispatches one isolated child run per active, enabled member under each member’s own credentials
Shared agent automation (coordinated)workspace/agents/<id>/automations/<id>.md (with TEAM.md body)Starts one coordinator run as the assigned Admin runner, which calls members via agent(prompt, { agent, user })
Member personal automation on a shared agentusers/<you>/shared-agents/<id>/automations/<name>.mdRuns only for you on your own schedule using the shared agent’s AGENT.md

Every automation run executes headlessly on durable background infrastructure with strict safety boundaries:

  • Fresh context on every run — Background runs do not inherit prior chat history. Reference any required Views, skills, or knowledge files explicitly.
  • No browser/desktop tools — Client-side Chrome extension and Desktop companion tools are automatically stripped from automation runs.
  • Config immutability during runs — An executing automation cannot modify its own AGENT.md, automation schedule, or sharing grants.
  • Per-user concurrency & leases — Runs execute under durable leases with per-user concurrency gating so overlapping runs do not race on the same account.
  • Approval safety — External writes follow requireWriteApproval and autoMode from AGENT.md, landing as Pending Action cards in Nexus Inbox, Slack, or Webhooks when review is required.