Automation library · Content

AI-powered restaurant newsletter creator with Mailchimp

Started by an incoming Telegram message, and works across Gmail, Mailchimp and Telegram. It hands the judgement calls to OpenAI and OpenRouter. 38 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI, OpenRouter

38 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 5Model 12Logic 11Service 10

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2OpenAI Chat Model1Lm Chat Open AiModel
  3. 3Tavily1Tavily ToolService
  4. 4TavilyTavily ToolService
  5. 5Feedback AILm Chat Open AiModel
  6. 6Listen for Topic ReplyTelegram triggerStarts it
  7. 7Monday 9am Trigger1Schedule triggerStarts it
  8. 8Tuesday 4pm Trigger1Schedule triggerStarts it
  9. 9Friday 2pm Trigger1Schedule triggerStarts it
  10. 10Saturday 2pm Trigger1Schedule triggerStarts it
  11. 11OpenAI Chat Model2Lm Chat Open AiModel
  12. 12OpenRouter Chat ModelLm Chat Open RouterModel
  13. 13Restaurant Newsletter ExpertAgentModel
  14. 14Final Newsletter EditorAgentModel
  15. 15Restaurant Content Research TeamAgentModel
  16. 16Check FeedbackText ClassifierModel
  17. 17Correction AgentAgentModel
  18. 18Check if Message is a ReplyIfLogic
  19. 19Merge All Schedule Triggers1MergeLogic
  20. 20First Newsletter Editor1AgentModel
  21. 21Newsletter Section PlannerOpen AiModel
  22. 22IfIfLogic
  23. 23Gmail1GmailService
  24. 24CodeCodeLogic
  25. 25MergeMergeLogic
  26. 26Set IntentSetLogic
  27. 27Set Topic from ReplySetLogic
  28. 28Determine Schedule NameCodeLogic
  29. 29Split Newsletter SectionsSplit OutLogic
  30. 30Get_SubcribersMailchimpService
  31. 31Merge Research ContentMergeLogic
  32. 32HITLTelegramService
  33. 33Prompt for Topic on TelegramTelegramService
  34. 34Create_CampaignHttp RequestService
  35. 35Aggregate Newsletter ContentAggregateLogic
  36. 36Set_CampaignHttp RequestService
  37. 37Send_CampaignHttp RequestService
  38. 38TelegramTelegramService

How it's built

Starts on
An incoming Telegram message
Steps
38, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Mailchimp, Telegram
Model
OpenAI, OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Gmail, Mailchimp and Telegram accounts, and a key for OpenAI and OpenRouter. 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 and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 38 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 38 steps before you point it at anything that matters.