AI Drafts

Draft Generation Workflow

Users with `agent_drafts.manage` can generate workflow drafts from `/dashboard/agent-drafts`.

Use this when...

Use this when you need to follow the normal operating flow for AI Drafts.

Users with agent_drafts.manage can generate workflow drafts from /dashboard/agent-drafts.

Generation flow:

  1. Check agent and Sprint 17/Sprint 18 guardrails.
  2. Read source-linked local context.
  3. Create an AgentRun.
  4. Create AgentRunStep records for guardrail check, context read, draft generation, and proposal creation.
  5. Create an AgentActionProposal with autoExecute: false.
  6. Create an AgentWorkflowDraft.
  7. Create initial AgentWorkflowDraftVersion.
  8. Create an activity log.

The source record is never mutated during generation.

Developer Details
Source
apps/docs/content/agent-drafts/draft-generation-workflow.md
Owner
Module Owner
Status
Current
Module
AI Drafts
Related route
/dashboard/agent-drafts