New to Kestra?
Use blueprints to kickstart your first workflows.
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.
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.
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.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.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.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.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.
sonar model.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.model, or temperature to match your audience.disabled: false on the daily_run trigger to start the daily schedule.