Skip to content
GitHub Agentic Workflows

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.

  • 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
  • ChatOps - Build interactive automation with 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]

Add a ChatOps workflow to your repository:

Terminal window
gh aw add githubnext/agentics/chatops-example

Then trigger it by commenting /review on a pull request!