Sentry with an AI Agent: Example Prompts and Routines
· DoubleX
Quick answer
An AI agent connected to Sentry can read errors, issues, releases and performance data, summarize what changed, and run on a schedule. With DoubleX IA OS you ask in plain language, for example a daily error digest or a release comparison, and the agent can send results to Slack, Linear, Jira or GitHub.
Most engineering teams open Sentry only when something is already on fire. An AI agent changes that: it checks Sentry on a schedule, explains what it finds, and hands the result to the tools your team already uses. This guide focuses on ready-to-use prompts and routines. If you want a deeper walkthrough of debugging a single error, see how to investigate Sentry errors with an AI agent.
What can an AI agent look at in Sentry?#
Through the Sentry connector, an agent can investigate errors, issues, releases and performance. In practice that means it can read issue lists, open a specific issue to see its details, look at which release introduced a problem, and review performance data for slow areas.
An AI agent is an assistant that uses a language model, your instructions and connected tools to do a task, not just answer a question. In Sentry, the agent reads data and reports back in plain language. It does not replace Sentry; it works inside the account you already have.
| Sentry area | What you can ask the agent | Output you might want |
|---|---|---|
| Errors and issues | Which issues are new, frequent or unresolved | A ranked list with short explanations |
| Releases | What changed after the last deploy | A before-and-after comparison |
| Performance | Where things got slower | A summary of affected areas |
| Triage | Which issues deserve a ticket | A draft ticket per issue |
If you have not connected Sentry yet, start with the step-by-step Sentry setup guide.
Which prompts help you understand a new error?#
Start with prompts that ask for a short explanation, the likely scope and a suggested next step. Be specific about the project, the time window and the format you want back.
- "List the new issues in the checkout project from the last 24 hours. For each one, explain in two sentences what is failing and how often it happens."
- "Open the most frequent unresolved issue and tell me which release it first appeared in and whether it is getting worse."
- "Summarize this Sentry issue for a non-technical product manager: what users see, what is broken, and what we know so far."
- "Group today's issues by likely cause and tell me which ones look related to each other."
- "Draft a ticket for this issue with a title, a description, the steps to reproduce if Sentry shows them, and a suggested priority. Do not create it yet."
How do you compare a release with the previous one?#
Ask the agent to compare the two releases by new issues, regressions and performance, then to say what stands out. The answer is most useful right after a deploy, when the team still remembers what shipped.
Prompts to try:
- "Compare the latest release with the previous one: which issues are new, which got worse, and which were resolved?"
- "Did the last release introduce any new errors in the first hours after deploy? List them with a short explanation."
- "Check whether performance in the main transactions changed between the last two releases and summarize the biggest differences."
To tie the result to code, add the GitHub connector and ask: "For each new issue in this release, look at the related pull requests and tell me which change is the most likely cause." The agent reports a hypothesis for your engineers to confirm, not a verdict.
Which scheduled routines are worth creating?#
The most useful routines are a daily error digest and a weekly issue review. A routine is a trigger that makes the agent work on its own, for example every day at 8 a.m., every Monday, or once on a set date. It runs with the permissions of the person who created it. You can read more in the Triggers documentation.
| Routine | When | What the agent does | Where it goes |
|---|---|---|---|
| Daily error digest | Every weekday morning | Summarizes new and most frequent issues | Slack channel |
| Post-deploy check | After a release | Compares the release with the previous one | Slack or a document |
| Weekly issue review | Every Monday | Lists unresolved issues and suggests priorities | Linear or Jira drafts |
| Performance watch | Weekly | Summarizes areas that got slower | Report artifact |
Sample routine requests:
- "Every weekday at 8 a.m., summarize new Sentry issues from the last 24 hours, rank them by frequency, and post the summary in #engineering-alerts."
- "Every Monday, list issues that are still unresolved after a week and suggest which three deserve a ticket first."
How do you combine Sentry with Slack, Linear, Jira and GitHub?#
Connect each tool as a connector, then ask the agent to move information between them. Slack is for sharing, Linear and Jira are for tracking work, and GitHub is for tying errors to code changes.
Here is a practical flow in DoubleX IA OS:
- Create the agent in the Agents screen, or start from the diagnostic and turn it into a team of agents.
- In Connectors, connect Sentry and the other tools you want to use, such as Slack, Linear, Jira or GitHub. See the Connectors documentation for the API side.
- In the agent settings, choose which actions each tool allows. Keep Sentry read-only if the agent only needs to report.
- Run the prompt once by hand and check the result in Tasks.
- Turn it into a scheduled routine once the output looks right.
Examples of combined requests:
- "Post the daily Sentry summary in Slack, and mention which issues already have a ticket."
- "For the top three unresolved issues, draft Linear issues with the error details and link back to Sentry."
- "Search Jira for existing tickets about this error before suggesting a new one."
How do you keep control with permissions and task history?#
You control what the agent can do by choosing the systems it uses and the actions allowed in each one. Actions that change data can stay switched off, which leaves the agent read-only.
Every request becomes a task with a full history: the request, each tool the agent used and the result. That lets you see who asked for what and when. Connection credentials are stored encrypted, and company content is not used to train models. For recurring work, remember that a routine runs with its creator's permissions, so create it with an account that has only the access it needs.
Frequently asked questions#
Can the agent fix errors in my code?#
It can read issues and, with the GitHub connector, review related pull requests and help draft a ticket or a comment. Treat its suggestions as a starting point that an engineer reviews.
Will the agent change anything in Sentry on its own?#
Only if you allow it. You choose which actions the agent can run in each connected system, and you can keep Sentry read-only. The agent also asks for confirmation before changing or sending anything.
Can I run a prompt automatically every day?#
Yes. Create a scheduled routine, such as every weekday at 8 a.m., and the agent runs the prompt without being asked. See the Triggers documentation for details.
Do I need to write code to use these prompts?#
No. You describe what you need in your own words and the system builds the agent. Developers who want more can use the REST API, the CLI or the MCP server.
Where can I review what the agent did?#
In the Tasks screen. Each task keeps the request, every tool call and the final result.
Related guides
- How to Connect Sentry to an AI Agent: Step-by-Step SetupLearn how to connect Sentry to an AI agent: authorize the connector, choose personal, team or company scope, limit actions, and run a read-only test.
- How to Connect Gmail to an AI Agent, Step by StepLearn how to connect Gmail to an AI agent: add the connector, choose personal, team or company access, and set what the agent can read, draft or send.