Agent Automation
Agent Automation
Agent Automation lets you define rules that automatically trigger Rollbar's AI agents on errors in your project. Instead of manually launching a root cause analysis or a fix PR from an item, you configure conditions once and Rollbar's agents act the moment a matching error arrives.
Where to find it
Agent Automation is a project-level setting. Navigate to Project Settings → Agent Automation to create and manage rules.
Prerequisites
Root cause analysis and Fix PR creation both require a GitHub App installation. This applies whether you trigger them manually from the Root cause & fix tab or via an automation rule. See the Source Control Integration doc for setup instructions.
Creating a rule
Each rule has two parts: conditions that define which errors trigger it, and an outcome that defines what the agent does.
Conditions
- Environment — limit the rule to a specific environment (e.g.
production). Leave blank to match all environments. - Level — limit the rule to errors at or above a severity level (Critical, Error, Warning, Info, Debug).
Both conditions can be combined. A rule with Environment: production and Level: Error triggers only on errors at Error level or above in production.
Outcomes
- Root cause analysis — Rollbar's RCA agent analyzes the error and writes a root cause summary to the item. The result appears in the item's Root cause & fix tab and in the item timeline.
- Fix PR creation — after completing root cause analysis, the agent opens a pull request in the connected GitHub repository with a proposed fix.
Rules are evaluated against every new occurrence of an item. An item gets its first run the first time an occurrence meets the rule's conditions. While the item stays open, later occurrences that also meet the rule's conditions do not start another run. A second run can only happen after the item has been resolved and reopened: The agent runs again if an occurrence after that point still satisfies the rule's conditions, for example when a volume-based rule's threshold (such as more than 10 occurrences within an hour) is crossed again.
The item's Root cause & fix tab and timeline display only the most recent analysis. A new run replaces what's shown there, even though the item keeps a record of each run it has triggered.
Item timeline indicator
When an RCA is triggered by an automation rule rather than manually, the item timeline shows a "triggered by rule" indicator with a link back to the rule that fired. This lets you trace automated activity back to its source without digging through settings.
Notifications
You can receive email or Slack notifications when agent tasks complete. To configure them, go to Project Settings → Notifications and add rules for the Root cause analysis succeeded/failed or Fix PR creation succeeded/failed trigger types. A shortcut to Notifications is available directly from the Agent Automation screen.
See the Notifications doc for full configuration details.
Account-level AI toggle
If your account administrator has disabled AI features at the account level, the Root cause & fix tab and Agent Automation settings will not appear in any project. To re-enable them, an account owner can go to Account Settings → Agents and turn the toggle on. See Account Settings for details.
Updated 25 days ago