Draft weekly newsletter for Beehiiv from the week's content and insights
Draft a weekly newsletter that synthesizes the week's content, engagement insights, and briefing highlights into a cohesive Beehiiv draft.
Gather source material — Run these knowledge_search calls:
"content calendar", tags: ["content-calendar"] — this week's planned content"engagement insights", tags: ["engagement-insights"] — what performed well"daily briefing", tags: ["briefing"] — recent briefing summaries (if stored)Check Postiz analytics (if available):
postiz_channels to get integration IDspostiz_analytics for LinkedIn and X channels with days: 7Draft the newsletter with this structure:
Present to user — Show the full newsletter draft and offer 3 subject line options:
Ask the user to:
publish [1/2/3] — create the Beehiiv draft with that subject lineedit [feedback] — regenerate with feedbackOn publish — Call beehiiv_create_draft with:
title: the chosen subject linecontent: the newsletter body formatted as HTMLsubtitle: a preview text snippet (first sentence of the opening hook)On edit — Regenerate incorporating feedback, present again.
When creating the Beehiiv draft, convert the newsletter to clean HTML:
<h2> for section headers<p> for paragraphs<ul><li> for quick hits<strong> for emphasis<a href> for any links