Recued
Menu
← Back to recipes

Distill newsletters weekly

by recued-core v3 38 views

Use “Distill newsletters weekly” in Recued. Reads the newsletter mail filed in one folder over the past week, groups it by sender, and renders one reading digest: a dated table of what arrived plus a per-source summary of what each sender covered. It reads information without changing data in the connected service.

How it works 25 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (25 steps)
■ window date_period
Apply date_period
■ since date_parse
Parse window start as a date
■ until date_parse
Parse window end as a date
■ scan_all_folders compare
Check if setting newsletter folder is empty
■ mailbox_set compare
Check if setting mail slug has data
■ mailbox_note ternary
Apply ternary
■ read_foldered all
Check if all conditions are true
■ read_all all
Check if all conditions are true
◆ messages_foldered core.mail.email.list
List mail email
skip: step.read_foldered equal false
◆ messages_all core.mail.email.list
List mail email
skip: step.read_all equal false
■ records coalesce
Use the first available value from: messages foldered records, messages all records,
■ scanned_count count
Count items in records
■ has_newsletters compare
Check if scanned count is greater than
■ flat map
Extract from each item
■ dated map
Extract received_at from each item
■ sorted sort
Sort by
■ rows slice
Take a subset of
■ issues_table to_table
Format results as a data table
■ by_source group_by
Group by source
■ sources to_list
Apply to_list
■ source_count count
Count items in sources
✦ summaries core.ai.summarize
AI generates a concise summary
skip: step.has_newsletters not_equal true
■ summary_rows default
Apply default
■ summary_table to_table
Format results as a data table
■ card to_summary
Format results as a summary card
▼
Output
summary card
table issues_table
table summary_table
json rows
Settings 9 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

period setting = last_7_days
end hour setting = 9
weekdays setting = 1
mail slug setting = [object Object]
row limit setting = 25
max length setting = 120
scan limit setting = 200
start hour setting = 7
newsletter folder setting = Newsletters

Uses (3 operations)

Triggers Time watch core.watch.time
Mail List mail email core.mail.email.list
AI models AI generates a concise summary core.ai.summarize

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read Triggers core.watch.time read-only
Read Mail core.mail.email.list read-only
Read AI models core.ai.summarize read-only

Data it touches

SurfacesTriggersMailAI models

About

Tags

pack:pkm-vaultpkmnewsletterreadingdigestmailsummaryreactiveai_surface

Details

25 steps 9 configurable settings recipe_id: distill-newsletters-weekly