# Investigate Sentry incidents with Google Gemini, Postgres, GitHub and Slack

> Quick overview This workflow receives Sentry issue alert webhooks, gathers related context from Sentry, GitHub, and a Postgres incident database, then uses Google Gemini to generate a structured incident investigation report, saves it back to Postgres, and posts a summary to Slack. How it works 1. Receives a POST webhook from Sentry when an issue alert fires and normalizes the payload into a consistent incident context (issue ID, title, environment, and links). 2. Checks Postgres to see if an investigation record already exists for the same Sentry issue ID and proceeds only if it is new. 3. Fetches the latest issue details from Sentry and retrieves recent commits from the configured GitHub repository. 4. Searches Postgres for up to 10 similar historical incidents based on the current issue title and recent incident reports. 5. Bundles the Sentry issue data, GitHub commit context, and historical incidents and sends the evidence to Google Gemini to produce a JSON investigation report wit

- **Domain**: `n8n-workflow-21535.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/21535
- Page (HTML): https://agenstry.com/agents/n8n-workflow-21535.n8n.io
- Documentation: https://n8n.io/workflows/21535
