Automation library · Chat assistants

Create personalized news digests with OpenAI and SerpAPI

Started by a clock, and works across Telegram and n8n data table. It hands the judgement calls to OpenAI. 26 steps, 2 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 4Logic 15Service 6

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

  1. 1GPT-5.1Lm Chat Open AiModel
  2. 2Tavily web search toolTavily ToolService
  3. 3Parse enriched article JSONOutput Parser StructuredModel
  4. 4Schedule TriggerSchedule triggerStarts it
  5. 5AI: enrich & write articleAgentModel
  6. 6Set topics and languageSetLogic
  7. 7Aggregate enriched articlesAggregateLogic
  8. 8Build topic queriesCodeLogic
  9. 9Get previous newslettersData TableService
  10. 10Insert newsletter content into Newsletters tableData TableService
  11. 11Fetch news from SerpAPI (DuckDuckGo News)Http RequestService
  12. 12Sort newsletters by newest firstSortLogic
  13. 13Send newsletter to TelegramTelegramService
  14. 14Split SerpAPI results into articlesSplit OutLogic
  15. 15Get most recent newsletterLimitLogic
  16. 16Limit previous newsletters to last 5LimitLogic
  17. 17Upsert articles into News tableData TableService
  18. 18Combine articles with last newsletter metadataMergeLogic
  19. 19Aggregate previous newsletters into listAggregateLogic
  20. 20Filter articles newer than last newsletterFilterLogic
  21. 21Combine candidate articles with past newslettersMergeLogic
  22. 22Stop if last newsletter is too recentIfLogic
  23. 23AI: decide send + select articlesOpen AiModel
  24. 24Aggregate candidate articles for AIAggregateLogic
  25. 25If AI decided to send newsletterIfLogic
  26. 26Split selected articles for enrichmentSplit OutLogic

How it's built

Starts on
A clock
Steps
26, with 2 branches
Size
Large: read it before trusting it with anything live
Connects to
Telegram, n8n data table
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Telegram account, 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 26 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 26 steps before you point it at anything that matters.