# Automated product health monitor with OpenAI and Gmail: n8n workflow

> Started by a clock, and works across Gmail, Notion, Postgres and Slack. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automated-product-health-monitor-with-openai-and-gmail (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)

# Automated product health monitor with OpenAI and Gmail

Started by a clock, and works across Gmail, Notion, Postgres and Slack. It hands the judgement calls to OpenAI. 32 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomated-product-health-monitor-with-openai-and-gmail)

**32 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 4 Model 1 Logic 5 Service 22

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

- 1 **daily report trigger** Schedule trigger *Starts it*
- 2 **Trigger RH** Schedule trigger *Starts it*
- 3 **Trigger CS** Schedule trigger *Starts it*
- 4 **Trigger UH** Schedule trigger *Starts it*
- 5 **Execute SQL query incident check** Postgres *Service*
- 6 **Execute the SQL query** Postgres *Service*
- 7 **select open incident** Postgres *Service*
- 8 **daily usage metrics** Postgres *Service*
- 9 **sum up** Code *Logic*
- 10 **anomalies check** Code *Logic*
- 11 **Condition incident** If *Logic*
- 12 **anomalies** Code *Logic*
- 13 **daily report email** Gmail *Service*
- 14 **log incident** Postgres *Service*
- 15 **revenue by country** Postgres *Service*
- 16 **revenue by plan** Postgres *Service*
- 17 **insert incidents** Postgres *Service*
- 18 **Notions database creation** Notion *Service*
- 19 **Update notions** Notion *Service*
- 20 **Merge data** Merge *Logic*
- 21 **Slack notification** Slack *Service*
- 22 **log system final1** Postgres *Service*
- 23 **slack notification** Slack *Service*
- 24 **sum up/ hypothesis** Open Ai *Model*
- 25 **usage health email** Gmail *Service*
- 26 **email alert** Gmail *Service*
- 27 **root cause summary** Slack *Service*
- 28 **log system UH** Postgres *Service*
- 29 **log system** Postgres *Service*
- 30 **root cause summary email** Gmail *Service*
- 31 **update incident status** Postgres *Service*
- 32 **log system final** Postgres *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 32, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Notion, Postgres, Slack
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Notion, Postgres and Slack accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

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

How long does it take to set up?

Take your time. At 32 steps it is large: read it before trusting it with anything live.

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 32 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%2Fautomated-product-health-monitor-with-openai-and-gmail)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Notion](https://millionrounds.com/workflows?service=Notion#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

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

- [**Automate ESG carbon monitoring and strategy execution** 32 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/automate-esg-carbon-monitoring-and-strategy-execution)
- [**Monitor and optimize carbon emissions for ESG with OpenAI** 32 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/monitor-and-optimize-carbon-emissions-for-esg-with-openai)
- [**Automate delivery confirmation with Telegram Bot** 32 steps · Gmail, Google Drive](https://millionrounds.com/workflow/automate-delivery-confirmation-with-telegram-bot)
- [**Receive Meta Ads ad account webhooks, log** 32 steps · Google Sheets, Slack](https://millionrounds.com/workflow/receive-meta-ads-ad-account-webhooks-log)
- [**Create n8n update notifications relevant to you with GitHub** 31 steps · calls a model · GitHub, Slack](https://millionrounds.com/workflow/create-n8n-update-notifications-relevant-to-you-with-github)
- [**Automated press release distribution with OpenAI** 33 steps · Slack](https://millionrounds.com/workflow/automated-press-release-distribution-with-openai)
