Skip to main content

Generate personalized sales emails with MadKudu research & OpenAI for Outreach.io sequences

Workflow preview

Workflow preview
100%
Generate personalized sales emails with MadKudu research & OpenAI for Outreach.io sequences 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 Powered Email Generation with MadKudu sent via Outreach.io This workflow researches prospects using MadKudu MCP, generates personalized emails with OpenAI, and syncs them to Outreach with automa...

Best for

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

Tools used

n8n-nodes-base.if, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.mcpclienttool, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Margo Rey.

Original n8n.io source

1.1 Workflow description

Title
Generate personalized sales emails with MadKudu research & OpenAI for Outreach.io sequences
Workflow name
Generate personalized sales emails with MadKudu research & OpenAI for Outreach.io sequences

AI-Powered Email Generation with MadKudu sent via Outreach.io

This workflow researches prospects using MadKudu MCP, generates personalized emails with OpenAI, and syncs them to Outreach with automatic sequence enrollment. Its for SDRs and sales teams who want to scale personalized outreach by automating research and email generation while maintaining quality.

✨ Who it's for

  • Sales Development Representatives (SDRs) doing cold outreach
  • Business Development teams needing personalized emails at scale
  • RevOps teams wanting to automate prospect research workflows
  • Sales teams using Outreach for email sequences

🔧 How it works

1. Input Email & Research: Enter prospect email via chat trigger. Extract email and generate comprehensive account brief using MadKudu MCP account-brief-instructions.

2. Deep Research & Email Generation: AI Agent performs 6 research steps using MadKudu MCP tools:

  • Account details (hiring, partnerships, tech stack, sales motion, risk)
  • Top users in the account (for name-dropping opportunities)
  • Contact details (role, persona, engagement)
  • Contact web search (personal interests, activities)
  • Contact picture web search (LinkedIn profile insights)
  • Company value prop research

AI generates 5 different email angles and selects the best one based on relevance.

3. Outreach Integration: Checks if prospect exists in Outreach by email. If exists: Updates custom field (custom49) with generated email. If new: Creates new prospect with email in custom field. Enrolls prospect in specified email sequence (ID 781) using mailbox (ID 51). Waits 30 seconds and verifies successful enrollment.

📋 How to set up

Set your OpenAI credentials Required for AI research and email generation.

Create a n8n Variable to store your MadKudu API key named madkudu_api_key Used for the MadKudu MCP tool to access account research capabilities.

Create a n8n Variable to store your company domain named my_company_domain Used for context in email generation and value prop research.

Create an Oauth2 API credential to connect your Outreach account Used to create/update prospects and enroll in sequences.

Configure Outreach settings Update Outreach Mailbox ID (currently set to 51) in the "Configure Outreach Settings" node. Update Outreach Sequence ID (currently set to 781) in the same node. Adjust custom field name if using different field than custom49.

🔑 How to connect Outreach

  1. In n8n, add a new Oauth2 API credential and copy the callback URL
  2. Now go to Outreach developer portal Click "Add" to create a new app
  3. In Feature selection add Outreach API (OAuth)
  4. In API Access (Oauth) set the redirect URI to the n8n callback
  5. Select the following scopes accounts.read, accounts.write, prospects.read, prospects.write, sequences.read
  6. Save in Outreach 7.Now enter the Outreach Application ID into n8n Client Id and the Outreach Application Secret into n8n Client secret
  7. Save in n8n and connect via Oauth your Outreach Account

✅ Requirements

  • MadKudu account with access to API Key
  • Outreach Admin permissions to create an app
  • OpenAI API Key

🛠 How to customize the workflow

Change the research steps Modify the AI Agent prompt to adjust the 6 research steps or add additional MadKudu MCP tools.

Update Outreach configuration Change Mailbox ID (51) and Sequence ID (781) in the "Configure Outreach Settings" node. Update custom field mapping if using different field than custom49.

Modify email generation Adjust the prompt guidelines, tone, or angle priorities in the "AI Email Generator" node.

Change the trigger Swap the chat trigger for a Schedule, Webhook, or integrate with your CRM to automate prospect input.

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 - Contact Exists?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 2 - Update Existing Prospect

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 3 - MadKudu MCP

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

Block 4 - When chat message received

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

Block 5 - Outreach: Create New Prospect

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Generate outreach email

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

Block 9 - OpenAI Model

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

Block 10 - Structured Output Parser

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

Block 11 - MadKudu: Generate Account Brief

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Outreach: Check Existing Contact

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 15 - Set Outreach Mailbox and Sequence

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Outreach: Get confirmation

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 18 - Outreach Submit batch Add to Sequence

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 19 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 20 - No Operation, do nothing

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

Block 21 - Information Extractor

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

Block 22 - OpenAI Chat Model

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

Block 23 - Set Contact ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - Set Contact ID1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate personalized sales emails with MadKudu research & OpenAI for Outreach.io sequences
Complexity advanced
Nodes 29
Categories Lead Nurturing, Multimodal AI
Author Margo Rey
Published 07 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7149/7149.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 Generate personalized sales emails with MadKudu research & OpenAI for Outreach.io sequences do?

AI Powered Email Generation with MadKudu sent via Outreach.io This workflow researches prospects using MadKudu MCP, generates personalized emails with OpenAI, and syncs them to Outreach with automa...

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 Lead Nurturing, Multimodal AI use case.