# Error monitor: AI-powered resolution [Context7, Supabase]: n8n workflow

> Started by an event in a connected app, and works across Email and Supabase. It hands the judgement calls to OpenRouter.

Source: https://millionrounds.com/workflow/error-monitor-ai-powered-resolution-context7-supabase (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Error monitor: AI-powered resolution [Context7, Supabase]

Started by an event in a connected app, and works across Email and Supabase. It hands the judgement calls to OpenRouter. 18 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ferror-monitor-ai-powered-resolution-context7-supabase)

**18 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 5 Service 9

The steps in the order they run, from what starts it.

- 1 **OpenRouter** Lm Chat Open Router *Model*
- 2 **Context7** Mcp Client Tool *Model*
- 3 **Workflow Error** Error trigger *Starts it*
- 4 **AI Agent** Agent *Model*
- 5 **Get Workflow** N8n *Service*
- 6 **Save Analysis** Supabase *Service*
- 7 **Get Execution** N8n *Service*
- 8 **Format Notification** Code *Logic*
- 9 **Structure Error Data** Code *Logic*
- 10 **Build HTML** Code *Logic*
- 11 **Find Workflow** Supabase *Service*
- 12 **Send Error Email** Email Send *Service*
- 13 **Workflow Exists?** If *Logic*
- 14 **Mark Notified** Supabase *Service*
- 15 **Insert Error** Supabase *Service*
- 16 **Create Workflow** Supabase *Service*
- 17 **Update Statistics** Supabase *Service*
- 18 **Workflow Creation** Split In Batches *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 18, with 1 branch, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Email, Supabase
- **Model:** OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Email and Supabase accounts, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 18 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 18 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ferror-monitor-ai-powered-resolution-context7-supabase)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Book website appointments into Google Calendar with Telegram** 18 steps · Email, Google Calendar](https://millionrounds.com/workflow/book-website-appointments-into-google-calendar-with-telegram)
- [**Generate weekly grocery lists in Notion with Telegram** 18 steps · Email, Notion](https://millionrounds.com/workflow/generate-weekly-grocery-lists-in-notion-with-telegram)
- [**Monitor brand mentions with OpenAI and Reddit** 18 steps · Email](https://millionrounds.com/workflow/monitor-brand-mentions-with-openai-and-reddit)
- [**Monitor weekly LLM share of voice with OpenRouter** 18 steps · Email, Google Sheets](https://millionrounds.com/workflow/monitor-weekly-llm-share-of-voice-with-openrouter)
- [**Daily Google Analytics report with OpenAI and WhatsApp** 19 steps · calls a model · ClickUp, Email](https://millionrounds.com/workflow/daily-google-analytics-report-with-openai-and-whatsapp)
- [**Monitor AI infrastructure costs and route budget alerts** 17 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/monitor-ai-infrastructure-costs-and-route-budget-alerts)
