Agentic Workflows Overview
Agentic Workflows are AI-powered repository automations that run coding agents in GitHub Actions. Defined in markdown with natural language instructions, they enable event-triggered and scheduled automation with built-in guardrails and security-first design.What Are Agentic Workflows?
Agentic Workflows combine the power of AI coding agents with GitHub Actions to automate repository tasks. Unlike traditional GitHub Actions workflows written in YAML, Agentic Workflows use natural language instructions and compile to secure, locked GitHub Actions files.Natural Language
Write workflows in markdown with plain English instructions
AI-Powered
GitHub Copilot agents execute tasks autonomously
Security-First
Built-in guardrails and least-privilege permissions
Event-Driven
Trigger on schedules, GitHub events, or slash commands
How They Work
Write Instructions
Create a
.md file with YAML frontmatter and natural language instructions describing what the workflow should do.Workflow Structure
An Agentic Workflow consists of markdown frontmatter and natural language instructions:daily-report.md
Frontmatter Fields
name (required)
name (required)
Human-readable name for the workflow.
description (required)
description (required)
Brief description of what the workflow does.
on (required)
on (required)
Triggers that start the workflow. Supports schedules, GitHub events, slash commands, and manual dispatch.
permissions (required)
permissions (required)
GitHub token permissions required by the workflow. Use least-privilege principle.
safe-outputs (recommended)
safe-outputs (recommended)
Guardrails that constrain what the AI agent can do. Prevents unintended actions.
engine (optional)
engine (optional)
AI engine to use. Defaults to
copilot.tools (optional)
tools (optional)
Tools available to the AI agent.
timeout-minutes (optional)
timeout-minutes (optional)
Maximum workflow execution time.
labels (optional)
labels (optional)
Tags for categorizing the workflow.
Trigger Types
Agentic Workflows support multiple trigger types:Schedule Triggers
Run workflows on a schedule using natural language:GitHub Event Triggers
Run workflows when specific GitHub events occur:Slash Command Triggers
Run workflows via slash commands in issues or PRs:/relevance-check
Manual Dispatch
Run workflows manually with optional inputs:Safe Outputs
Safe outputs are guardrails that constrain AI agent actions to prevent unintended consequences:Installation & Usage
Managing Workflows
Trigger Manual Run
Check Workflow Status
View Workflow Logs
List All Workflows
Best Practices
Least Privilege
Only request the minimum permissions needed
Use Safe Outputs
Always constrain AI agent actions with safe-outputs
Clear Instructions
Write specific, step-by-step instructions for the agent
Test Thoroughly
Use workflow_dispatch to test before deploying
Security Guidelines
- Read-only by default: Start with read permissions only
- Validate inputs: Sanitize user inputs from slash commands
- Limit outputs: Use
maxconstraints in safe-outputs - Review compiled output: Check
.lock.ymlbefore committing - Use title-prefix: Clearly mark automated issues/PRs
When to Use Agentic Workflows
Agentic Workflows are ideal for:- Issue triage and labeling based on content
- Daily/weekly status reports from repository data
- Automated documentation maintenance and updates
- Scheduled code quality checks and reports
- Slash command tools for maintainers
- Multi-step repository automation with AI decision-making
Next Steps
Browse Workflow Catalog
Explore available workflows and examples
GitHub Agentic Workflows Spec
Read the official specification and documentation