ChatCompletion icon
Create icon
SlackIncomingWebhook icon
Schedule icon

Generate a Daily AI News Summary and Publish It to Notion with Slack Alerts

Automate a daily AI news digest with Perplexity, publish it to a Notion page, and notify Slack with the link. Schedule and orchestrate it in Kestra.

Categories
AI

Generate a daily AI-powered news digest with Perplexity, publish it to Notion, and notify your team in Slack, all from a single scheduled Kestra flow. This blueprint solves a recurring problem for briefings and knowledge sharing: someone has to gather the day's top headlines, write them up in a readable format, store them somewhere durable, and tell people the update is ready. Here that whole loop runs hands-off every morning, with curated headlines and source links landing in a central Notion workspace and a Slack ping pointing straight to the new page.

How it works

  1. A io.kestra.plugin.core.trigger.Schedule trigger (daily_run, cron 0 0 * * *, shipped disabled: true) kicks off the flow every day at 00:00 UTC.
  2. The chat_completion task (io.kestra.plugin.perplexity.ChatCompletion) calls Perplexity with model: sonar and temperature: 0.7, sending a USER message that asks for the day's most important news as a markdown bulleted list of headlines with hyperlinks.
  3. The create_notion_page task (io.kestra.plugin.notion.page.Create) creates a new page titled "Daily News Summary from AI" under your parentPageId, using {{ outputs.chat_completion.outputText }} as the content.
  4. The send_slack_notification task (io.kestra.plugin.slack.notifications.SlackIncomingWebhook) posts a message containing {{ outputs.create_notion_page.url }} so the team gets a direct link to the fresh page.

What you get

  • A reproducible daily news digest written in clean markdown with source links.
  • A durable, searchable record in Notion that grows day over day.
  • A Slack notification that closes the loop so nobody has to check manually.
  • A single declarative YAML flow that ties three tools together with full execution history.

Who it's for

  • Founders and executives who want a consistent morning briefing.
  • Operations, comms, and marketing teams running internal newsletters.
  • Analysts doing market monitoring or competitive intelligence.
  • Anyone who wants curated, AI-summarized news delivered on a schedule.

Why orchestrate this with Kestra

Perplexity has no built-in scheduler, no way to chain a completion into Notion and Slack, and no execution history. Kestra fills that gap: the Schedule trigger runs the digest on a cron, outputs pass declaratively between tasks (outputs.chat_completion.outputText, outputs.create_notion_page.url), and you can layer on retries, alerting on failure, and full run-by-run lineage. The entire pipeline lives in version-controlled YAML, so changes are reviewable and reproducible instead of hidden in a one-off script.

Prerequisites

  • A Kestra instance (local or cloud).
  • A Perplexity API key with access to the sonar model.
  • A Notion integration with write access and a parent page to nest under.
  • A Slack incoming webhook URL.

Secrets

  • PERPLEXITY_API_KEY: API key for the Perplexity chat completion call.
  • NOTION_API_KEY: Notion integration token used to create the page.
  • NOTION_PARENT_PAGE_ID: ID of the Notion page new pages are created under.
  • SLACK_WEBHOOK_URL: Slack incoming webhook for the notification.

Quick start

  1. Add the four secrets above to your Kestra instance.
  2. Import this blueprint and adjust the prompt, model, or temperature to match your audience.
  3. Run the flow once manually to confirm Perplexity, Notion, and Slack are wired correctly.
  4. Set disabled: false on the daily_run trigger to start the daily schedule.

How to extend

  • Change the prompt to target a different region, industry, or topic feed.
  • Swap the cron for hourly or weekday-only delivery.
  • Append the summary to an existing Notion database instead of a standalone page.
  • Fan out notifications to multiple Slack channels or add email delivery.
  • Add an error handler to alert when Perplexity or Notion is unreachable.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.