Hand off production alerts to Devin
Fires on every production alert routed through Polylane (Datadog, Sentry, Honeycomb, Axiom, CloudWatch, Vercel, Render). The agent reads the alert payload, pulls the relevant logs/traces/metrics, traces the failure to a concrete code path, and decides whether the fix is small and well-scoped enough for autonomous implementation. When it is, the agent drafts a step-by-step plan citing file paths and line numbers, then calls `handoffToDevin` to spawn a Devin session. Devin clones the repo, applies the plan, runs tests, and opens the pull request itself. Polylane stays in identify mode; Devin owns implementation. The automation skips quietly when the fix is too broad (spans many files, needs product/design decisions, or touches security-sensitive code) or when the alert maps to a symptom with no clear file-level fix — surface those back to the alert thread for a human instead.
Install
Create this automation from the CLI, or pick it in the console under Automations → New → From template.
polylane automation from-template hand-off-production-alerts-to-devinTrigger
The event that starts this automation.
Fires every time a connected observability provider sends an alert webhook to Polylane.
Compatible providers
1Integrations this automation investigates and uses tools from. Connect them to unlock the full workflow.
Actions
1Platform-executed side effects the agent can request. These are applied when you create this automation.
Agent instructions
The prompt the agent follows on each execution. Customize it to fit your team's playbook.
How it works
When a alert event occurs, an agent runs the instructions above, investigating with your connected Devin tools, and sends results to your configured destinations.
Destinations
When you create this automation your email is added as a destination, so every run lands in your inbox. Add chat or webhook destinations afterward.