Perplexity AI to Gmail, weekly AI news digest ready
Your “quick AI catch-up” turns into 20 open tabs, half-read threads, and a vague feeling you missed the one story you actually needed. By Monday afternoon, you’re already behind again.
This Perplexity Gmail digest automation hits marketers first (you need the headlines before your clients ask). But founders and consultants feel it too, because staying current shouldn’t steal your best thinking hours.
This workflow pulls the week’s most important AI news, organizes it into four categories, then emails you a polished HTML digest every Monday at 9 AM. You’ll see how it works, what you need, and where you can tweak it to fit your routine.
How This Automation Works
Here’s the complete workflow you’ll be setting up:
n8n Workflow Template: Perplexity AI to Gmail, weekly AI news digest ready
flowchart LR
subgraph sg0["Daily Flow"]
direction LR
n0@{ icon: "mdi:play-circle", form: "rounded", label: "Daily Trigger", pos: "b", h: 48 }
n1@{ icon: "mdi:swap-vertical", form: "rounded", label: "Set Dates", pos: "b", h: 48 }
n2["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/httprequest.dark.svg' width='40' height='40' /></div><br/>Perplexity AI News Search"]
n3@{ icon: "mdi:message-outline", form: "rounded", label: "Gmail", pos: "b", h: 48 }
n4["<div style='background:#f5f5f5;padding:10px;border-radius:8px;display:inline-block;border:1px solid #e0e0e0'><img src='https://flowpast.com/wp-content/uploads/n8n-workflow-icons/code.svg' width='40' height='40' /></div><br/>Format Email Content1"]
n1 --> n2
n0 --> n1
n4 --> n3
n2 --> n4
end
%% Styling
classDef trigger fill:#e8f5e9,stroke:#388e3c,stroke-width:2px
classDef ai fill:#e3f2fd,stroke:#1976d2,stroke-width:2px
classDef aiModel fill:#e8eaf6,stroke:#3f51b5,stroke-width:2px
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px
classDef database fill:#fce4ec,stroke:#c2185b,stroke-width:2px
classDef api fill:#fff3e0,stroke:#e65100,stroke-width:2px
classDef code fill:#f3e5f5,stroke:#7b1fa2,stroke-width:2px
classDef disabled stroke-dasharray: 5 5,opacity: 0.5
class n0 trigger
class n2 api
class n4 code
classDef customIcon fill:none,stroke:none
class n2,n4 customIcon
Why This Matters: Keeping up with AI news is a weekly time sink
AI moves fast, but your schedule doesn’t magically make room for it. A “simple” weekly roundup often means scanning social feeds, opening newsletters, checking a few sources to confirm what’s real, then trying to remember why any of it matters. And the worst part is the context switching. You’re not just reading, you’re constantly deciding what to ignore, what to save, and what to revisit later. By the time you’ve got a decent picture, you’ve burned a chunk of your Monday and still don’t have a clean summary you can forward, reference, or use for content ideas.
It adds up fast. Here’s where it usually breaks down.
- Important stories get buried because you’re skimming across five sources and none of them is organized for “what matters this week.”
- You end up doing the same research twice: first to understand the story, then again to find a link you can cite.
- Manual summaries drift into opinion or hype, especially when you’re rushing between meetings.
- Even if you curate a great list, you rarely format it into something you’ll actually read later.
What You’ll Build: A Monday-morning AI news email that’s already organized
This workflow runs automatically every Monday at 9 AM and builds a weekly AI news digest for you. It starts by setting a date range for “the last week,” so the research stays fresh instead of pulling random old headlines. Next, it queries Perplexity AI to gather the most important updates, then groups them into four practical buckets: New Technology, Trending Topics, Top Stories, and AI Security. After that, the workflow turns the results into a nicely formatted HTML email with readable sections, short summaries, a quick “why this matters” explanation, and source links you can click for details. Finally, Gmail sends the digest straight to your inbox so it’s waiting when you start your week.
The workflow begins on a schedule trigger. Perplexity handles the research and summarization. A formatting step converts it into a clean email layout, then Gmail delivers it (and you’re done for the week).
What You’re Building
| What Gets Automated | What You’ll Achieve |
|---|---|
|
|
Expected Results
Say you normally spend about 15 minutes each on four places to “catch up” (social feeds, newsletters, a couple of blogs, and one research site). That’s roughly an hour every Monday, and it’s scattered time. With this workflow, the work is front-loaded into automation: it runs at 9 AM, compiles the digest, and emails it to you. You skim for about 5 minutes, click a link or two if something is relevant, and you’re back to your actual work.
Before You Start
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- Perplexity API access for weekly AI news research.
- Gmail account to send the digest email.
- Perplexity API key (get it from your Perplexity API dashboard).
Skill level: Beginner. You’ll connect credentials, edit a couple of fields, and run a test.
Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).
Step by Step
A weekly schedule kicks things off. The workflow runs every Monday at 9 AM by default, so you start the week with a digest waiting in your inbox.
A date range is defined for “this week’s news.” That small detail matters because it keeps Perplexity focused on current developments instead of recycling older headlines.
Perplexity AI gathers and structures the news. An HTTP request sends the prompt and date range to Perplexity, then the workflow parses the response into four categories: New Technology, Trending Topics, Top Stories, and AI Security.
The email is composed and sent via Gmail. A formatting step generates a styled HTML email with summaries, significance explanations, and clickable source links, then Gmail delivers it to your chosen address.
You can easily modify the categories or the send time based on your needs. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Schedule Trigger
Set the weekly schedule that kicks off the digest workflow.
- Add the Scheduled Run Trigger node to start the workflow.
- Set the schedule rule to run weekly at the desired time (the workflow uses Monday at 08:00 via the built-in schedule settings).
- Connect Scheduled Run Trigger to Define Date Range.
Step 2: Connect Perplexity API for News Retrieval
Prepare the API request that fetches the weekly AI news summary.
- Open Perplexity News Query and set URL to
https://api.perplexity.ai/chat/completions. - Set Method to
POSTand enable Send Body, Send Headers, and Specify Body asjson. - Set JSON Body to the provided payload starting with
{ "model": "sonar", "messages": [ ... ] }and including"search_recency_filter": "week". - Add the header Authorization with the value
Bearer [CONFIGURE_YOUR_TOKEN]and replace the placeholder with your Perplexity API token.
⚠️ Common Pitfall: If you leave Bearer [CONFIGURE_YOUR_TOKEN] unchanged, the API call will fail. Always paste a valid Perplexity token.
Step 3: Set Up Date Formatting and Email Markup
Generate the date fields and transform the API response into a formatted HTML email.
- In Define Date Range, add two string fields: currentDate with
{{ $now.format('yyyy-MM-dd') }}and lastweekDate with{{ $now.minus({days: 7}).format('yyyy-MM-dd') }}. - Connect Define Date Range to Perplexity News Query.
- In Compose Email Markup, paste the provided JavaScript that reads
$input.first().jsonand$('Define Date Range').first().json.currentDateto buildemailHtmlandemailSubject. - Connect Perplexity News Query to Compose Email Markup.
Tip: The Compose Email Markup node includes a fallback HTML email when parsing fails, making the workflow more resilient even without separate error-handling nodes.
Step 4: Configure Gmail Delivery
Send the generated summary via Gmail with dynamic subject and HTML body.
- Open Send Gmail Summary and set Message to
{{ $json.emailHtml }}. - Set Subject to
{{ $json.emailSubject }}to include the current date. - Fill in Send To with the recipient email address.
- Credential Required: Connect your gmailOAuth2 credentials in Send Gmail Summary.
- Connect Compose Email Markup to Send Gmail Summary.
Step 5: Test and Activate Your Workflow
Run a manual execution to confirm the end-to-end flow before enabling the schedule.
- Click Execute Workflow to run the full chain from Scheduled Run Trigger through Send Gmail Summary.
- Verify that Perplexity News Query returns a response with
choices[0].message.content. - Confirm the Gmail message arrives with the HTML layout and subject like
🤖 Daily AI News Summary - YYYY-MM-DD. - When satisfied, toggle the workflow to Active so the weekly schedule runs automatically.
Troubleshooting Tips
- Gmail credentials can expire or need specific permissions. If things break, check the connected Google account and re-authorize the Gmail node in n8n first.
- If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
- Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.
Quick Answers
About 30 minutes once your Perplexity key and Gmail account are ready.
No. You’ll import the workflow, connect credentials, and edit a few fields like the recipient email and schedule.
Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Perplexity API usage costs, which depend on how long your prompt and responses are.
Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.
Yes, and you should. Most people edit the prompt used in the “Perplexity News Query” step to change categories (for example, “AI marketing tools” or “model releases only”), then tweak the “Compose Email Markup” step so the email layout matches the new sections. You can also adjust the “Define Date Range” step to build a monthly summary instead of weekly. If you want it to post internally too, add a Slack or Telegram message after the email is sent.
Usually it’s expired Google authorization in n8n, so re-connect the Gmail credentials and run another test. If you’re sending from a Google Workspace account, admin restrictions can block SMTP-style sending or limit which addresses can be used in the “from” field. Also check that the Gmail node is set to the right account, because it’s easy to authenticate one inbox and send from another by mistake. Finally, if the email content is empty due to a failed Perplexity response, the Gmail node may still run but send a blank-looking message.
Plenty for a weekly digest. Even the smallest n8n setups can handle one scheduled run per week; the main “volume” consideration is how much text you ask Perplexity to generate and how often you run it.
It depends on how polished you want the output to be. Zapier and Make can schedule, call an API, and send an email, but they get awkward when you want controlled formatting, fallbacks, or more complex data shaping. n8n is nicer for this because you can shape the response, generate consistent HTML, and extend the flow later without paying extra for every branch. If you plan to add error handling, multiple recipients, or “only email me when something big happened,” you’ll appreciate the flexibility. Talk to an automation expert if you’re on the fence.
Once this is live, Monday morning updates become an email you can actually use. The workflow handles the repetitive digging so you can focus on decisions, content, and strategy.
Need Help Setting This Up?
Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.