New to Kestra?
Use blueprints to kickstart your first workflows.
Automate a personalized daily digest email with Kestra and Anthropic Claude. Combine real-time weather, commute planning, and AI summaries into one briefing.
Wake up to a personalized morning briefing without lifting a finger. This blueprint orchestrates a fully automated daily digest email that pulls live weather data, asks Anthropic's Claude model to interpret it and plan your commute, then formats everything into a clean HTML email delivered to your inbox every morning. It solves the daily friction of checking multiple apps to decide what to wear and which train to catch by turning scattered signals into one friendly, AI-written summary on a fixed schedule.
io.kestra.plugin.core.trigger.Schedule trigger fires every day at 06:00 using the cron expression 0 6 * * *.get_weather task uses io.kestra.plugin.core.http.Request to call the OpenWeatherMap API for the configured location input and return current conditions as JSON.get_digest task (io.kestra.plugin.anthropic.ChatCompletion) feeds that weather JSON to Claude alongside a commute question, producing a friendly natural-language morning summary in outputs.get_digest.outputText.turn_into_html task, also io.kestra.plugin.anthropic.ChatCompletion, rewrites that text into a structured HTML email body with separate weather and commute sections.send_digest task uses io.kestra.plugin.email.MailSend to deliver the HTML over Gmail SMTP (smtp.gmail.com, port 465).Anthropic's API has no scheduler, no retry logic, and no way to chain a weather lookup, two AI calls, and an email send into one observable pipeline. Kestra fills that gap with an event-driven Schedule trigger, automatic retries on transient failures, full execution lineage across every task output, and a declarative YAML definition you can version and review. Each step's output is captured and passed downstream, so you can inspect exactly what Claude received and produced on any given morning.
OPENWEATHERMAP_API_KEY: API key for the OpenWeatherMap weather request.ANTHROPIC_API_KEY: API key for Anthropic Claude (set in pluginDefaults).EMAIL: the Gmail address used as both sender and recipient.EMAIL_PASSWORD: the Gmail app password for SMTP authentication.location input to your city (defaults to London).Schedule trigger enabled to receive the digest daily at 06:00.