Perplexity + Gmail: research-backed emails, fast
You open Perplexity for “quick research,” then Gmail to write the email, then Slack to ask someone for context. Thirty minutes later, you’re still polishing the first paragraph and second-guessing your facts. This is exactly what Perplexity Gmail automation is meant to stop.
Marketing managers feel it when campaigns depend on timely insights. Sales leads and agency owners feel it too, especially when outreach needs to sound human but still move fast. The outcome here is simple: research-backed Gmail drafts you can approve in minutes, not “sometime later.”
This n8n workflow turns one chat message into current research plus a send-ready email draft. You’ll see how it works, what you need, and where teams usually trip up.
How This Automation Works
The full n8n workflow, from trigger to final output:
n8n Workflow Template: Perplexity + Gmail: research-backed emails, fast
flowchart LR
subgraph sg0["When chat message received Flow"]
direction LR
n0@{ icon: "mdi:robot", form: "rounded", label: "AI Agent", pos: "b", h: 48 }
n1@{ icon: "mdi:play-circle", form: "rounded", label: "When chat message received", pos: "b", h: 48 }
n2@{ icon: "mdi:brain", form: "rounded", label: "OpenAI Chat Model", pos: "b", h: 48 }
n3@{ icon: "mdi:memory", form: "rounded", label: "Simple Memory", pos: "b", h: 48 }
n11@{ icon: "mdi:wrench", form: "rounded", label: "Email MCP Client", pos: "b", h: 48 }
n12@{ icon: "mdi:wrench", form: "rounded", label: "News MCP Client", pos: "b", h: 48 }
n3 -.-> n0
n12 -.-> n0
n11 -.-> n0
n2 -.-> n0
n1 --> n0
end
subgraph sg1["Email MCP Server Flow"]
direction LR
n4@{ icon: "mdi:message-outline", form: "rounded", label: "Send a message in Gmail", pos: "b", h: 48 }
n5@{ icon: "mdi:message-outline", form: "rounded", label: "Send a message in Gmail1", pos: "b", h: 48 }
n6@{ icon: "mdi:message-outline", form: "rounded", label: "Send a message in Gmail2", pos: "b", h: 48 }
n10@{ icon: "mdi:play-circle", form: "rounded", label: "Email MCP Server", pos: "b", h: 48 }
n4 -.-> n10
n5 -.-> n10
n6 -.-> n10
end
subgraph sg2["News MCP Server Flow"]
direction LR
n7@{ icon: "mdi:cog", form: "rounded", label: "Search in Tavily", pos: "b", h: 48 }
n8@{ icon: "mdi:cog", form: "rounded", label: "Message a model in Perplexity", pos: "b", h: 48 }
n9@{ icon: "mdi:play-circle", form: "rounded", label: "News MCP Server", pos: "b", h: 48 }
n13@{ icon: "mdi:cog", form: "rounded", label: "Search in Tavily1", pos: "b", h: 48 }
n7 -.-> n9
n13 -.-> n9
n8 -.-> n9
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 n1,n10,n9 trigger
class n0 ai
class n2 aiModel
class n11,n12 ai
class n3 ai
The Problem: Research-to-email is still a manual relay
The painful part isn’t writing an email. It’s everything around it. You hunt for fresh info, copy notes into a doc, rewrite the same context for different recipients, then jump into Gmail and try to make it sound like you (not like a template). Meanwhile, the news changes, links go stale, and you end up sending something that’s either late or fuzzy. If you do this more than a couple times a week, it quietly steals hours and focus you should be using on strategy, calls, or actual creative work.
It adds up fast. Here’s where the friction usually shows up in real teams.
- Research gets repeated because nobody can find last week’s notes, so you search the same topics again.
- Drafting in Gmail happens without sources nearby, which means facts get softened or removed “just in case.”
- Tone drifts when multiple people contribute, and you spend extra time rewriting to make it feel consistent.
- By the time the email is ready, the moment has passed and the outreach feels less relevant.
The Solution: One chat prompt that researches and drafts in Gmail
This workflow gives you a chat-first “research + email” assistant inside n8n. You send a message like, “Find the latest on Kubernetes security incidents and draft an intro email to Acme with three takeaways.” From there, an AI agent decides which tools to use: it pulls up-to-date context through a News MCP server (backed by Tavily search plus Perplexity answers), then switches into email mode through an Email MCP server that connects to Gmail. OpenAI handles reasoning so the output stays coherent, and Simple Memory keeps recent context so follow-up prompts don’t feel like starting over. The final result is a Gmail draft (or a sent email if you allow it) plus the summary returned in the chat for quick review.
The workflow starts when a chat message comes in. The agent then researches with Tavily and Perplexity, shapes the findings into your requested format, and passes structured fields (To, Subject, Message) to Gmail. You end up with something you can approve quickly, with fewer “wait, is this true?” moments.
What You Get: Automation vs. Results
| What This Workflow Automates | Results You’ll Get |
|---|---|
|
|
Example: What This Looks Like
Say you send 10 research-backed emails a week (client updates, partner nudges, outreach). Manually, you might spend about 20 minutes researching and another 10 minutes drafting each one, so roughly 5 hours a week. With this workflow, the “work” is a single chat prompt that takes a minute, then you wait a few minutes for the agent to return a draft in Gmail. That’s closer to 1 hour of review time total, which means you get about 4 hours back most weeks.
What You’ll Need
- n8n instance (try n8n Cloud free)
- Self-hosting option if you prefer (Hostinger works well)
- Perplexity for current answers through the News MCP.
- Gmail to create drafts (or send emails).
- OpenAI API key (get it from your OpenAI dashboard).
Skill level: Intermediate. You’ll connect credentials, confirm MCP endpoints, and test prompts safely before enabling “send.”
Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).
How It Works
A chat message kicks it off. You type a prompt in the n8n chat trigger, like “Research X, then draft an email to Y with Z takeaways.” Simple input, no forms.
The agent decides what to do next. The AI Agent uses the OpenAI Chat Model to plan, then uses Simple Memory to keep recent context so you can ask follow-ups like “Make it shorter” or “Change the tone to more direct.”
Research happens through the News MCP tools. Tavily handles search, and Perplexity turns those findings into a clean summary you can actually use in an email.
Gmail gets structured draft fields. The Email MCP tools fill in recipient, subject line, and body copy in Gmail so you can review and send without re-copying anything.
You can easily modify the agent’s system instructions to match your tone and safety rules based on your needs. See the full implementation guide below for customization options.
Step-by-Step Implementation Guide
Step 1: Configure the Chat Trigger
This workflow starts with a chat-based trigger that forwards user input directly into the AI agent.
- Add and open Chat Intake Trigger as the workflow trigger.
- Keep the default Options (empty) unless you need custom chat settings.
- Connect Chat Intake Trigger to Assistant Orchestrator to follow the execution flow
"Chat Intake Trigger" → "Assistant Orchestrator".
Step 2: Connect MCP Gateways
The MCP gateways expose tools and connectors for email and news research capabilities.
- Open News MCP Gateway and set Path to
<<<REPLACE_WITH_PATH>>>. - Open Email MCP Gateway and set Path to
<<<REPLACE_WITH_PATH>>>. - Open News MCP Connector and set Endpoint URL to
<<<REPLACE_WITH_ENDPOINT_URL>>>, and Server Transport tohttpStreamable. - Open Email MCP Connector and set Endpoint URL to
<<<REPLACE_WITH_ENDPOINT_URL>>>, and Server Transport tohttpStreamable. - Verify that News MCP Connector and Email MCP Connector are attached as AI tools to Assistant Orchestrator.
<<<REPLACE_WITH_...>>> values with real endpoints.Step 3: Set Up Assistant Orchestrator
The AI agent coordinates chat input, tool usage, and memory.
- Open Assistant Orchestrator and set System Message to
You are a helpful email assistant. ##Tool Use attached Email MCP Tool for emails when asked Use attached Email MCP Tool for. - Open OpenAI Dialogue Model and set Model to
gpt-4.1-mini. - Ensure OpenAI Dialogue Model is connected as the language model for Assistant Orchestrator.
- Ensure Context Memory Buffer is connected as the memory source for Assistant Orchestrator.
Step 4: Configure Research Tools
The research tools gather data through Tavily and Perplexity and are exposed via the news MCP gateway.
- Open Tavily Search Tool and set Query to
={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}. - Open Tavily Search Tool 2 and set Query to
={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}. - Open Perplexity Query Tool and set Messages → Message → Content to
={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('message0_Text', ``, 'string') }}. - In Perplexity Query Tool, set Simplify to
={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Simplify_Output', ``, 'boolean') }}. - Confirm Tavily Search Tool, Tavily Search Tool 2, and Perplexity Query Tool are connected as AI tools to News MCP Gateway.
Step 5: Configure Gmail Dispatch Tools
The email tools are exposed through the email MCP gateway so the agent can send messages.
- Open Gmail Dispatch Tool and set Send To to
<<<REPLACE_WITH_EMAIL>>>, Subject to<<<REPLACE_WITH_SUBJECT>>>, and Message to<<<REPLACE_WITH_MESSAGE>>>. - Open Gmail Dispatch Tool 2 and set Send To to
<<<REPLACE_WITH_EMAIL>>>, Subject to<<<REPLACE_WITH_SUBJECT>>>, and Message to<<<REPLACE_WITH_MESSAGE>>>. - Open Gmail Dispatch Tool 3 and set Send To to
<<<REPLACE_WITH_EMAIL>>>, Subject to<<<REPLACE_WITH_SUBJECT>>>, and Message to<<<REPLACE_WITH_MESSAGE>>>. - Verify all three Gmail tools are connected as AI tools to Email MCP Gateway.
<<<REPLACE_WITH_...>>> values with real data.Step 6: Test and Activate Your Workflow
Run a manual chat session to validate tool calls and email delivery before enabling the workflow in production.
- Click Test workflow and send a sample chat message into Chat Intake Trigger.
- Confirm Assistant Orchestrator uses the tools (Tavily, Perplexity, and Gmail) and returns a response without errors.
- Verify emails are sent via Gmail Dispatch Tool, Gmail Dispatch Tool 2, or Gmail Dispatch Tool 3 as expected.
- Once successful, toggle the workflow Active to enable it for production chat requests.
Common Gotchas
- Gmail credentials can expire or need specific permissions. If things break, check your n8n Credentials panel and the connected Google account’s security settings 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.
Frequently Asked Questions
Plan on about 30–60 minutes once you have your API keys and Gmail ready.
No. You will connect accounts, paste a couple of keys, and test prompts in the chat.
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 OpenAI API usage plus any Tavily and Perplexity costs based on how much you research.
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 it’s a smart default. In the Gmail Tool nodes (the “Gmail Dispatch Tool” nodes), switch the action to draft-only, or route “send” requests through an approval condition in the AI Agent instructions. Common customizations include forcing a specific sign-off, limiting the output to three bullet points, and requiring the agent to include sources in the chat response before it drafts anything in Gmail.
Usually it’s expired or mis-scoped Google permissions, so re-check the Gmail credential in n8n and reconnect the Google account. If you’re using a workspace account, an admin policy can block access until the app is approved. It can also be an MCP endpoint issue: if the Email MCP Gateway URL isn’t publicly reachable, the agent can’t call the Gmail tool even if your credential is correct.
If you self-host, it mostly depends on your server and your API rate limits.
Often, yes, because this isn’t just “move text from A to B.” n8n is better suited when you want an agent to branch between research and email actions, maintain short-term memory across prompts, and call multiple tools in one run without paying per tiny step. You also get the option to self-host, which matters when you run this a lot. Zapier or Make can be quicker for simple, single-purpose zaps, especially if you don’t want to deal with MCP endpoints. If you’re on the fence, Talk to an automation expert and we’ll map the simplest setup for your volume and risk level.
Set this up once and your “research to Gmail draft” loop gets boring in the best way. The workflow handles the repetitive handoffs so you can focus on the message that actually matters.
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.