Automation library · Alerts and monitoring

Monitor brand mentions and draft crisis responses with OpenAI

Started by an incoming Telegram message, and works across Google Sheets, Slack and Telegram. It hands the judgement calls to OpenAI. 24 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

24 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 3Model 2Logic 8Service 11

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

  1. 1Monitor TriggerSchedule triggerStarts it
  2. 2Approval Response ListenerTelegram triggerStarts it
  3. 3On Workflow ErrorError triggerStarts it
  4. 4Get New MentionsGoogle SheetsService
  5. 5Parse Approval MessageCodeLogic
  6. 6Slack – Post Workflow Error AlertSlackService
  7. 7Loop MentionsSplit In BatchesLogic
  8. 8Find Pending CrisisGoogle SheetsService
  9. 9Batch CompleteNo OpLogic
  10. 10Classify SeverityOpen AiModel
  11. 11Merge Approval DataCodeLogic
  12. 12Parse ClassificationCodeLogic
  13. 13Approved?IfLogic
  14. 14Is Crisis?IfLogic
  15. 15Update Crisis Log - ApprovedGoogle SheetsService
  16. 16Update Crisis Log - RejectedGoogle SheetsService
  17. 17Draft ResponseOpen AiModel
  18. 18Mark No ActionGoogle SheetsService
  19. 19Confirm SentTelegramService
  20. 20Confirm RejectedTelegramService
  21. 21Parse DraftCodeLogic
  22. 22Log Crisis EventGoogle SheetsService
  23. 23Send Approval RequestTelegramService
  24. 24Mark Awaiting ApprovalGoogle SheetsService

How it's built

Starts on
An incoming Telegram message
Steps
24, with 2 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Google Sheets, Slack, Telegram
Model
OpenAI

Questions

What does it need to run?

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

What starts it?

It starts on an incoming Telegram message.

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 24 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 24 steps before you point it at anything that matters.