Skip to main content

Email drafting & news research assistant with OpenAI, Gmail, Tavily & Perplexity

Workflow preview

Workflow preview
100%
Email drafting & news research assistant with OpenAI, Gmail, Tavily & Perplexity preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Agent MCP for Email & News Research Build a chat first MCP powered research and outreach agent. This workflow lets you ask questions in an n8n chat, then the agent researches news (via Tavily + ...

Best for

  • AI Chatbot automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.gmailtool, @tavily/n8n-nodes-tavily.tavilytool, n8n-nodes-base.perplexitytool, @n8n/n8n-nodes-langchain.mcptrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Automate With Marc.

Original n8n.io source

1.1 Workflow description

Title
Email drafting & news research assistant with OpenAI, Gmail, Tavily & Perplexity
Workflow name
Email drafting & news research assistant with OpenAI, Gmail, Tavily & Perplexity

AI Agent MCP for Email & News Research

Build a chat-first MCP-powered research and outreach agent. This workflow lets you ask questions in an n8n chat, then the agent researches news (via Tavily + Perplexity through an MCP server) and drafts emails (via Gmail through a separate MCP server). It uses OpenAI for reasoning and short-term memory for coherent, multi‑turn conversations.

Watch build along videos for workflows like these on: www.youtube.com/@automatewithmarc

What this template does

Chat-native trigger: Start a conversation and ask for research or an email draft.

MCP client tools: The agent talks to two MCP servers — one for Email work, one for News research.

News research stack: Uses Tavily (search) and Perplexity (LLM retrieval/answers) behind a News MCP server.

Email stack: Uses Gmail Tool to generate and send messages via an Email MCP server.

Reasoning + memory: OpenAI Chat Model + Simple Memory for context-aware, multi-step outputs.

How it works (node map)

When chat message received → collects your prompt and routes it to the agent.

AI Agent (system prompt = “helpful email assistant”) → orchestrates tools via MCP Clients.

OpenAI Chat Model → reasoning/planning for research or email drafting.

Simple Memory → keeps recent chat context for follow-ups.

News MCP Server exposes:

Tavily Tool (Search) and Perplexity Tool (Ask) for up-to-date findings.

Email MCP Server exposes:

Gmail Tool (To, Subject, Message via AI fields) to send or draft emails.

The MCP Clients (News/Email) plug into the Agent, so your single chat prompt can research and then draft/send emails in one flow.

Requirements

n8n (Cloud or self‑hosted)

OpenAI API key for the Chat Model (set on the node)

Tavily, Perplexity, and Gmail credentials (connected on their respective tool nodes)

Publicly reachable MCP Server endpoints (provided in the MCP Client nodes)

Setup (quick start)

Import the template and open it in the editor.

Connect credentials on: OpenAI, Tavily, Perplexity, and Gmail tool nodes.

Confirm MCP endpoints in both MCP Client nodes (News/Email) and leave transport as httpStreamable unless you have special requirements.

Run the workflow. In chat, try:

“Find today’s top stories on Kubernetes security and draft an intro email to Acme.”

“Summarize the latest AI infra trends and email a 3‑bullet update to my team.”

Inputs & outputs

Input: Natural-language prompt via chat trigger.

Tools used: News MCP (Tavily + Perplexity), Email MCP (Gmail).

Output: A researched summary and/or a drafted/sent email, returned in the chat and executed via Gmail when requested.

Why teams will love it

One prompt → research + outreach: No tab‑hopping between tools.

Up-to-date answers: Pulls current info through Tavily/Perplexity.

Email finalization: Converts findings into send-ready drafts via Gmail.

Context-aware: Memory keeps threads coherent across follow-ups.

Pro tips

Use clear verbs in your prompt: “Research X, then email Y with Z takeaways.”

For safer runs, point Gmail to a test inbox first (or disable send and only draft).

Add guardrails in the Agent’s system message to match your voice/tone.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 2 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Send a message in Gmail

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 6 - Send a message in Gmail1

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 7 - Send a message in Gmail2

Type / Role
n8n-nodes-base.gmailTool - gmailTool
Config choices
Version 2.1

Block 8 - Search in Tavily

Type / Role
@tavily/n8n-nodes-tavily.tavilyTool - tavilyTool
Config choices
Version 1

Block 9 - Message a model in Perplexity

Type / Role
n8n-nodes-base.perplexityTool - perplexityTool
Config choices
Version 1

Block 10 - News MCP Server

Type / Role
@n8n/n8n-nodes-langchain.mcpTrigger - mcpTrigger
Config choices
Version 2

Block 11 - Email MCP Server

Type / Role
@n8n/n8n-nodes-langchain.mcpTrigger - mcpTrigger
Config choices
Version 2

Block 12 - Email MCP Client

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.1

Block 13 - News MCP Client

Type / Role
@n8n/n8n-nodes-langchain.mcpClientTool - mcpClientTool
Config choices
Version 1.1

Block 14 - Search in Tavily1

Type / Role
@tavily/n8n-nodes-tavily.tavilyTool - tavilyTool
Config choices
Version 1

Block 15 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Email drafting & news research assistant with OpenAI, Gmail, Tavily & Perplexity
Complexity advanced
Nodes 18
Categories AI Chatbot, Multimodal AI
Author Automate With Marc
Published 21 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7679/7679.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Email drafting & news research assistant with OpenAI, Gmail, Tavily & Perplexity do?

AI Agent MCP for Email & News Research Build a chat first MCP powered research and outreach agent. This workflow lets you ask questions in an n8n chat, then the agent researches news (via Tavily + ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Chatbot, Multimodal AI use case.