Skip to main content

Generate Personalized Email Sequences with Octave, LLM & External Data

Workflow preview

Workflow preview
100%
Generate Personalized Email Sequences with Octave, LLM & External Data preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Generate dynamic email sequences with runtime context and external data Who is this for? Growth ...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatanthropic, n8n-nodes-octavehq.octave, n8n-nodes-base.httprequest

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate Personalized Email Sequences with Octave, LLM & External Data
Workflow name
Generate Personalized Email Sequences with Octave, LLM & External Data

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Generate dynamic email sequences with runtime context and external data

Who is this for?

Growth teams, sales development reps, and outbound marketers who want to reference specific, real-time information about prospects in their email sequences. Built for teams that have access to external data sources and want to create truly contextualized outreach that feels impossibly relevant.

What problem does this solve?

Most outbound sequences are static - they use the same messaging for everyone regardless of what's actually happening at the prospect's company right now. You might know they're hiring, launched a product, got funding, or expanded to new markets, but your email sequences can't dynamically reference these timely events. This workflow shows how to inject real-time external context into Octave's sequence generation, creating outreach that feels like you're personally monitoring each prospect's company.

What this workflow does

Lead Data & Context Collection:

  • Receives lead information via webhook (firstName, companyName, companyDomain, profileURL, jobTitle)
  • Uses external data sources to gather timely context about the prospect's company
  • Example: AI agent researches current job postings to find roles they're actively hiring for
  • Processes this context into structured data for sequence generation

Runtime Context Integration:

  • Feeds external context into Octave's sequence generation as "runtime context"
  • Defines both WHAT the context is ("they are hiring a software engineer") and HOW to use it ("mention the role in the opening")
  • Allows Octave to weave timely, relevant details into each email naturally
  • Creates sequences that feel like personal research rather than mass outreach

Dynamic Sequence Generation:

  • Leverages Octave's context engine plus runtime data to create hyper-relevant sequences (1-7 emails)
  • Generates subject lines and email content that reference specific, current company context
  • Maintains your positioning and value prop while incorporating timely relevance
  • Creates messaging that feels unmistakably meant for that specific moment in the prospect's business

Campaign Integration:

  • Automatically adds leads with contextualized sequences to your email platform
  • Maps generated content to campaign variables for automated sending
  • Supports multiple email platforms with easy customization

Setup

Required Credentials:

  • Octave API key and workspace access
  • External data source API (job boards, news APIs, enrichment services, etc.)
  • Email platform API key (Instantly.ai configured, easily adaptable)
  • Optional: LLM credentials if using the example AI agent for testing

Step-by-Step Configuration:

  1. Set up External Data Source:

    • Replace the AI Agent with your preferred data source (job board APIs, news APIs, company databases)
    • Configure data collection to find relevant, timely information about prospects
    • Structure the output to provide clean context for sequence generation
  2. Set up Octave Sequence Agent:

    • Add your Octave API credentials in n8n
    • Replace your-octave-sequence-agent-id with your actual sequence agent ID
    • Configure runtime context parameters:
      • Runtime Context: Define WHAT the external data represents
      • Runtime Instructions: Specify HOW to use it in the messaging
  3. Configure Email Platform:

    • Add your email platform API credentials
    • Replace your-campaign-id-here with your actual campaign ID
    • Ensure campaign supports custom variables for dynamic content
  4. Set up Lead Source:

    • Replace your-webhook-path-here with a unique, secure path
    • Configure your lead source to send prospect data to the webhook
    • Test end-to-end flow with sample leads

Required Webhook Payload Format:

{
  "body": {
    "firstName": "Alex",
    "lastName": "Chen",
    "companyName": "InnovateTech",
    "companyDomain": "innovatetech.com",
    "profileURL": "https://linkedin.com/in/alexchen",
    "email": "[email protected]",
    "jobTitle": "VP of Engineering"
  }
}

How to customize

External Data Sources: Replace the AI agent with your preferred context collection method:

  • Job Board APIs: Reference current hiring needs and team expansion
  • News APIs: Mention recent company announcements, funding, or product launches
  • Social Media Monitoring: Reference recent LinkedIn posts, company updates, or industry discussions
  • Enrichment Services: Pull real-time company data, technology stack changes, or market expansion

Runtime Context Configuration: Customize how external data integrates with sequences:

  • Context Definition: Specify what the external data represents ("they just raised Series B funding")
  • Usage Instructions: Define how to incorporate it ("mention the funding in the opening and tie it to growth challenges")
  • Email-Level Control: Configure different context usage for different emails in the sequence
  • Global vs. Specific: Apply context to all emails or target specific messages

Data Processing: Replace the example AI agent with your external data processing:

  • Modify data source connections to pull relevant context
  • Ensure consistent output formatting for runtime context integration
  • Add error handling for cases where external data isn't available
  • Implement fallback context for prospects without relevant external data

Sequence Customization: Configure Octave sequence generation:

  • Core Context (Library): Define your personas, use cases, and offering definitions
  • Strategy (Playbooks): Configure messaging frameworks and value proposition delivery
  • Writing Style (Agent): Adjust tone, voice, and communication style

Email Platform Integration: Adapt for different email sequencing platforms:

  • Update API endpoints and authentication for your preferred platform
  • Modify variable mapping for platform-specific custom fields
  • Adjust sequence length and formatting requirements

Use Cases

  • Job posting-triggered outreach for hiring managers and HR teams
  • Funding announcement follow-ups for growth-stage companies
  • Product launch congratulations with relevant use case discussions
  • Market expansion outreach when companies enter new territories
  • Technology adoption sequences based on recent stack additions
  • Event attendance follow-ups with session-specific references

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 - Sticky Note - Main Overview

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

Block 2 - Sticky Note - Webhook Setup

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

Block 3 - Sticky Note - Context Research

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

Block 4 - Sticky Note - LLM Processing

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

Block 5 - Sticky Note - Octave Runtime

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

Block 6 - Sticky Note - Email Platform

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

Block 7 - Lead Data Webhook

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

Block 8 - Research Company Context

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

Block 9 - LLM Model

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

Block 10 - Generate Sequence with Runtime Context

Type / Role
n8n-nodes-octavehq.octave - octave
Config choices
Version 1

Block 11 - Add Lead to Email Campaign

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

3. Summary Table

Workflow Generate Personalized Email Sequences with Octave, LLM & External Data
Complexity intermediate
Nodes 11
Categories Lead Nurturing, Multimodal AI
Author Nalin
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7617/7617.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 Email Sequences with Octave, LLM & External Data do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Generate dynamic email sequences with runtime context and external data Who is this for? Growth ...

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.