Personalized morning news brief in your inbox before standup

By General Input

Every weekday at 7am, get a clean email with the latest on the topics you care about, with citations, ready to read before standup.

Integrations

  • Perplexity AI
  • Gmail

Type

Deterministic Code

Categories

  • Personal Productivity
  • Operations

Build me a deterministic code workflow that delivers a personalized morning news brief to my inbox every weekday at 7am in my local time zone, before standup.

Trigger: cron, every weekday (Mon-Fri) at 07:00 in my local time zone.

Workflow config (static, no model-driven branching):

- topics: a static list of strings I edit by hand. Seed it with three example topics: "generative AI infrastructure", "my portfolio companies", and "industry-x regulation". I will replace these with my real beats.

- recipient: a single configurable email address (allow a comma-separated list of addresses too) that the brief is sent to.

- sender: my connected Gmail account.

Steps:

1. For each topic in the topics list, call Perplexity AI "Create Chat Completion" once. Use model sonar-pro and search_recency_filter=day so results are from the last 24 hours. The user message should ask for the most important news on that topic from the last 24 hours and request 3 to 5 concise bullet points with inline citations. Keep the system prompt short and consistent across topics so the output stays uniform.

2. From each Perplexity response, extract the assistant message text and the citations list (and search_results when present) so links can be rendered.

3. Concatenate the per-topic results into one HTML email body. Layout: one <h2> section per topic in the same order the topics appear in the config, followed by an unordered list of 3 to 5 bullets. Render citations as inline numbered links (e.g. [1], [2]) that point to the source URLs Perplexity returned. Include a short header at the top with the date (formatted in my local time zone) and a one-line footer noting the brief was generated by Perplexity Sonar.

4. Call Gmail "Send a Message" once to deliver the email. Subject line: "Morning brief — {date}" where {date} is today in my local time zone. Body: the assembled HTML. From: my connected Gmail. To: the configured recipient(s).

Determinism requirements:

- Topics, format, and recipient are fixed in config. No branching based on model output.

- If Perplexity fails for a single topic, still send the email with the remaining sections and a short note in place of the failed section. Do not block the whole brief on one topic failing.

- If Gmail send fails, surface the error in the run logs so I can fix and retry.

Integrations to use: Perplexity AI (Create Chat Completion) and Gmail (Send a Message). Do not introduce any other services.

Related prompts

Explore more prompts
Win back LiveChat visitors whose chats went unansweredChase the paperwork every new client and vendor still owesFile Gmail attachments into storage with names you can findCandidate rediscovery desk for your archived Lever applicantsLaytime and demurrage claim workspace for chartering opsKajabi customer support console for member access fixesRun your application review round on Jotform submissionsRun your nutrition clients' weekly meal plans from one consoleReplace the dispatch whiteboard with a live production boardJob search command center with a self-filling pipeline board