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