Skip to content

Daily

Get a sourced news digest on your topics every morning

Every morning a short newsletter on your chosen topics arrives in your inbox, with each story linked to its source.

Runs
Daily
Apps
Gmail, Perplexity
AI
Not needed
Access
Perplexity key; gmail.send

Send this to your assistant

Create a ClickRuntime automation: every day at 7am, ask Perplexity for the top news on AI and on logistics from the last 24 hours, format it with sources and email it to me from my Gmail.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Staying informed across two or three topics means reading several newsletters that overlap and miss things, or checking news sites that bury what matters to you under what matters to everyone.

Executives, analysts and founders use it to get one short briefing on exactly their topics, with links to check anything before acting on it.

What you get out of it

  • One email, your topics

    Each topic gets its own short section, so one email replaces several newsletters.

  • Every claim linked

    Sources are listed under each section so you can read the original.

  • No repeats

    Stories already sent in earlier digests are left out.

  • Delivered on your schedule

    It arrives at the time you choose, ready for your first look at the inbox.

How it works

What happens, step by step

  1. Every morning at the time you choose, ClickRuntime asks Perplexity for the main news on each of your topics from the last day.

  2. Stories whose links were already sent in earlier digests are left out.

  3. Each topic gets a short section with its sources listed underneath.

  4. The digest is sent to you from your Gmail address.

Before it runs live

  • Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
  • Connect Perplexity

What you get

RunsDaily
Get a sourced news digest on your topics every morningtoday, 9:00Succeeded
Email · Morning briefingAI: Acme releases an open model for warehouse robots · Logistics: Northwind Freight adds Rotterdam rail link

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Gmail and Perplexity steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
daily_researched_news_digest_in_my_inbox.pyexample
import base64
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_trigger, credentials, http, state

TOPICS, ME = ["AI", "logistics and freight"], "me@example.com"

def sonar(prompt):
    r = http.post("https://api.perplexity.ai/chat/completions", headers={"Authorization": f"Bearer {credentials.secret('PERPLEXITY_API_KEY')}"},
                  json={"model": "sonar", "messages": [{"role": "user", "content": prompt}]}, timeout=90).json()
    return r["choices"][0]["message"]["content"], [s["url"] for s in r.get("search_results", [])]
def send(to, subject, body):
    raw = f"To: {to}\r\nSubject: {subject}\r\nContent-Type: text/plain; charset=utf-8\r\n\r\n{body}"
    build("gmail", "v1", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False).users() \
        .messages().send(userId="me", body={"raw": base64.urlsafe_b64encode(raw.encode()).decode()}).execute()

@on_trigger
def run(event):
    seen, sections = set(state.get("seen") or []), []
    for topic in TOPICS:
        text, links = sonar(f"Top news about {topic} from the last 24 hours. Up to five short bullets.")
        new = [l for l in links if l not in seen]
        sections += [f"## {topic}\n{text}\nSources:\n" + "\n".join(new)] if new else []
        seen |= set(new)
    if not sections:
        return {"sent": False}
    send(ME, "Your morning briefing", "\n\n".join(sections))
    state.set("seen", sorted(seen)[-2000:])
    return {"sections": len(sections)}

FAQ

Common questions

How many topics can I include?
As many as you like, though three to five keeps the email short. Each topic is one Perplexity request.
Can I send it to my team?
Yes. Add their addresses and the digest goes to everyone from your Gmail.
How are repeats avoided?
Links from previous digests are remembered, and stories whose sources were all sent before are dropped.
What permissions does it need?
Perplexity key; gmail.send. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (daily). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get a sourced news digest on your topics every morning” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.