Comment-Triggered Workflows
Comment-triggered workflows respond to slash commands typed in GitHub conversations. They enable ChatOps patterns where team members interact with AI agents through natural commands like /review, /deploy, or /analyze.
When to Use Comment-Triggered Workflows
Section titled “When to Use Comment-Triggered Workflows”- Interactive assistance: Code review helpers, analysis on demand
- Controlled automation: Human decides when workflow runs
- Context-aware responses: AI acts on specific issue/PR context
- Team collaboration: Shared commands for common tasks
Patterns in This Section
Section titled “Patterns in This Section”- ChatOps - Build interactive automation with command triggers
Example Command Triggers
Section titled “Example Command Triggers”on: slash_command: name: review # Responds to /review events: [pull_request_comment]on: slash_command: name: analyze events: [issue_comment, pull_request_comment]Quick Start
Section titled “Quick Start”Add a ChatOps workflow to your repository:
gh aw add githubnext/agentics/chatops-exampleThen trigger it by commenting /review on a pull request!