Automate ABM research to outreach with Octave, AI, and Instantly.ai
This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
Complete account-based outreach automation with Octave context engine
Who is this for?
Revenue teams, account-based marketing professionals, and growth operators who want a complete, automated pipeline from account identification to contextualized outreach. Built for teams ready to move beyond fragmented point solutions to an integrated, context-aware GTM engine.
What problem does this solve?
Most GTM teams are flying blind with disconnected tools that can't talk to each other. You qualify accounts in one system, find contacts in another, research context manually, then hope your email sequences land. Each step loses context, and by the time you're writing outreach, you've forgotten why the account was qualified in the first place. Octave centralizes all this typically fragmented context - your ICP definitions, personas, value propositions, and business logic - so every agent operation can act on the same unified understanding of your market. This workflow demonstrates how Octave's agents work together seamlessly because they all share the same context foundation.
What this workflow does
Complete Account-to-Outreach Pipeline: This workflow demonstrates the full power of Octave's context engine by connecting multiple agent operations in a seamless flow. Unlike traditional tools that lose context at each handoff, Octave centralizes your business context - ICP definitions, personas, value propositions, competitive positioning - so every agent operates from the same unified understanding of your market.
External Context Research:
- Gathers real-time external data about target accounts (job postings, news, funding, etc.)
- Processes this information to create runtime context for later use in outreach
- Establishes the "why reach out now" foundation for the entire workflow
Company-Level Qualification:
- Uses Octave's company qualification to assess account fit against your specific offering
- Leverages Product and Segment-level fit criteria defined in your Library
- Filters out accounts that don't meet your qualification thresholds
- Ensures only high-potential accounts proceed through the workflow
Intelligent Contact Discovery:
- Runs Octave's prospector agent on qualified accounts
- Finds relevant stakeholders based on responsibilities and business context, not just job titles
- Discovers multiple contacts per account for comprehensive coverage
- Maintains qualification context when identifying the right people
Runtime Context Integration:
- Takes the external context gathered at the beginning and injects it into sequence generation
- Creates truly dynamic, timely outreach that references current company events
- Generates sequences that feel impossibly relevant and well-researched
Multi-Contact Sequence Generation:
- Splits discovered contacts into individual records for processing
- Generates contextualized email sequences for each contact
- Maintains account-level context while creating contact-specific messaging
- Produces sequences (1-7 emails) that feel unmistakably meant for each person
Automated Campaign Deployment:
- Automatically adds all qualified contacts with their contextualized sequences to email campaigns
- Maps dynamic content to campaign variables for seamless execution
- Maintains the context chain from qualification through delivery
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 external research agent
Step-by-Step Configuration:
-
Set up Account Input Source:
- Replace
your-webhook-path-herewith a unique, secure path - Configure your account source (CRM, website visitors, target lists) to send company data
- Ensure account data includes company name and domain for processing
- Replace
-
Configure External Context Research:
- Replace the example AI agent with your preferred external data source
- Set up connections to job boards, news APIs, or enrichment services
- Configure context gathering to find timely, relevant information about target accounts
-
Set up Company Qualification Agent:
- Add your Octave API credentials
- Replace
your-octave-company-qualification-agent-idwith your actual agent ID - Configure qualification criteria at Product and Segment levels in your Octave Library
-
Configure Prospector Agent:
- Replace
your-octave-prospector-agent-idwith your actual prospector agent ID - Define target personas and stakeholder types in your Octave Library
- Set contact discovery parameters for optimal coverage
- Replace
-
Set up Sequence Agent:
- Replace
your-octave-sequence-agent-idwith your actual sequence agent ID - Configure runtime context integration for dynamic content
- Test sequence quality with the external context integration
- Replace
-
Configure Email Campaign Platform:
- Add your email platform API credentials
- Replace
your-campaign-id-herewith your actual campaign ID - Ensure campaign supports custom variables for dynamic content
Required Webhook Payload Format:
{
"body": {
"companyName": "InnovateTech Solutions",
"companyDomain": "innovatetech.com"
}
}
How to customize
External Context Sources: Replace the example research with your data sources:
- Job Board APIs: Reference current hiring and team expansion
- News APIs: Mention funding, product launches, or market expansion
- Enrichment Services: Pull technology adoption, market changes, or competitive moves
- Social Monitoring: Reference recent company posts or industry discussions
Company Qualification: Configure qualification in your Octave company qualification agent:
- Product Level: Define "good fit" and "bad fit" questions for your core offering
- Segment Level: Set criteria for different market segments or use cases
- Qualification Thresholds: Adjust the filter score based on your standards
Contact Discovery: Customize prospecting in your Octave prospector agent:
- Target Personas: Define which Library personas to prioritize
- Organizational Levels: Focus on specific seniority levels or decision-making authority
- Contact Volume: Adjust how many contacts to discover per qualified account
Runtime Context Integration: Configure dynamic content injection:
- Context Definition: Specify what external data represents in your sequences
- Usage Instructions: Define how to incorporate context into messaging
- Email-Level Control: Apply different context to different emails in sequences
Sequence Generation: Customize email creation:
- Core Context (Library): Define personas, use cases, and offering definitions
- Strategy (Playbooks): Configure messaging frameworks and value propositions
- Writing Style (Agent): Adjust tone, voice, and communication approach
Campaign Integration: Adapt for different email platforms:
- Update API endpoints and authentication for your preferred platform
- Modify variable mapping for platform-specific requirements
- Adjust sequence formatting and length based on platform capabilities
Use Cases
- Complete inbound lead processing from website visitor to qualified outreach
- Event-triggered account processing for funding announcements or hiring spikes
- Competitive displacement campaigns with account qualification and contact discovery
- Market expansion automation for entering new territories or segments
- Product launch outreach with context-aware targeting and messaging
- Customer expansion workflows for upselling within existing account bases
Automate ABM Research to Outreach with n8n
This n8n workflow streamlines the Account-Based Marketing (ABM) process by automating research and outreach tasks. It integrates with an external AI platform (Octave AI, based on the directory name hint) and an AI agent to generate personalized outreach messages.
What it does
This workflow is designed to be triggered by an external system (e.g., a CRM, a lead generation tool) whenever a new account needs to be researched for ABM outreach.
- Receives Account Data: It starts by listening for incoming data via a webhook, which is expected to contain information about the target account.
- Filters for Valid Data: A filter node checks if the incoming data contains the necessary
accountNameandwebsitefields to proceed with the research. - Performs AI-Powered Research:
- If valid data is received, an "AI Agent" node (likely powered by LangChain and an Anthropic Chat Model) is invoked.
- This agent is configured to perform "ABM Research" using the provided
accountNameandwebsite. This research likely involves gathering insights, pain points, and relevant information about the account.
- Generates Personalized Outreach:
- The "AI Agent" then uses the gathered research to generate a personalized outreach message. The specific prompt for this is "Generate a personalized outreach message based on the research."
- Processes AI Output: The output from the AI agent is then split out, likely to handle multiple research points or outreach variations if the agent returns them in an array.
- Sends Outreach (Placeholder): An "HTTP Request" node is included, acting as a placeholder for sending the generated outreach message to an external system (e.g., a CRM, an email marketing platform, or a sales engagement tool). This node would need to be configured with the specific API endpoint and authentication details for the chosen outreach platform.
Prerequisites/Requirements
- n8n Instance: A running n8n instance (cloud or self-hosted).
- Webhook Source: An external system capable of sending HTTP POST requests to the n8n webhook URL with account data (at least
accountNameandwebsite). - Anthropic API Key: Credentials for Anthropic to use the Anthropic Chat Model within the AI Agent.
- AI Agent Configuration: The "AI Agent" node requires proper configuration, including potentially defining specific tools or prompts for "ABM Research" and "personalized outreach message generation." (While not explicitly in the JSON, this is implied by the node's function).
- Outreach Platform API: API access and credentials for the platform you intend to use for sending the outreach messages (e.g., Salesforce, HubSpot, Outreach.io, Apollo.io). The "HTTP Request" node will need to be configured for this.
Setup/Usage
- Import the Workflow:
- Download the provided JSON file.
- In your n8n instance, navigate to "Workflows" and click "New".
- Click the "Import from JSON" button and paste the workflow JSON or upload the file.
- Configure Credentials:
- Anthropic Chat Model: Configure the "Anthropic Chat Model" node with your Anthropic API key. You might need to create an n8n credential for Anthropic if you haven't already.
- Configure the Webhook:
- Activate the workflow.
- Copy the "Webhook URL" from the "Webhook" node.
- Configure your external system to send a POST request to this URL with the account data. The data should be in JSON format and include
accountNameandwebsitefields.
- Configure the AI Agent:
- Review the "AI Agent" node. Ensure the "System Message" and "User Message" prompts are optimized for your specific ABM research and outreach needs. You might need to adjust the "Model" and "Temperature" settings for the Anthropic Chat Model.
- Configure the HTTP Request Node:
- This node is currently a placeholder. You will need to:
- Specify the
URLof your outreach platform's API endpoint. - Select the appropriate
HTTP Method(e.g., POST). - Add
Headersfor authentication (e.g.,Authorization: Bearer YOUR_API_KEY). - Define the
Body Parametersusing expressions to include the generated outreach message and other relevant account details.
- Specify the
- This node is currently a placeholder. You will need to:
- Test the Workflow:
- Use the "Test Workflow" button in n8n or send a test request from your external system to the webhook URL to ensure it runs as expected.
- Monitor the execution results in n8n to debug any issues.
Related Templates
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chatβturn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. π What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing π§ Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation π Required Credentials OpenAI API Setup Go to platform.openai.com β API keys (sidebar) Click "Create new secret key" β Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai β Dashboard β API Keys Generate a new API key β Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) βοΈ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflowβchat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" π― Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration β οΈ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.
Dynamic Hubspot lead routing with GPT-4 and Airtable sales team distribution
AI Agent for Dynamic Lead Distribution (HubSpot + Airtable) π§ AI-Powered Lead Routing and Sales Team Distribution This intelligent n8n workflow automates end-to-end lead qualification and allocation by integrating HubSpot, Airtable, OpenAI, Gmail, and Slack. The system ensures that every new lead is instantly analyzed, scored, and routed to the best-fit sales representative β all powered by AI logic, sir. --- π‘ Key Advantages β‘ Real-Time Lead Routing Automatically assigns new leads from HubSpot to the most relevant sales rep based on region, capacity, and expertise. π§ AI Qualification Engine An OpenAI-powered Agent evaluates the leadβs industry, region, and needs to generate a persona summary and routing rationale. π Centralized Tracking in Airtable Every lead is logged and updated in Airtable with AI insights, rep details, and allocation status for full transparency. π¬ Instant Notifications Slack and Gmail integrations alert the assigned rep immediately with full lead details and AI-generated notes. π Seamless CRM Sync Updates the original HubSpot record with lead persona, routing info, and timeline notes for audit-ready history, sir. --- βοΈ How It Works HubSpot Trigger β Captures a new lead as soon as itβs created in HubSpot. Fetch Contact Data β Retrieves all relevant fields like name, company, and industry. Clean & Format Data β A Code node standardizes and structures the data for consistency. Airtable Record Creation β Logs the lead data into the βLeadsβ table for centralized tracking. AI Agent Qualification β The AI analyzes the lead using the TeamDatabase (Airtable) to find the ideal rep. Record Update β Updates the same Airtable record with the assigned team and AI persona summary. Slack Notification β Sends a real-time message tagging the rep with lead info. Gmail Notification β Sends a personalized handoff email with context and follow-up actions. HubSpot Sync β Updates the original contact in HubSpot with the assignment details and AI rationale, sir. --- π οΈ Setup Steps Trigger Node: HubSpot β Detect new leads. HubSpot Node: Retrieve complete lead details. Code Node: Clean and normalize data. Airtable Node: Log lead info in the βLeadsβ table. AI Agent Node: Process lead and match with sales team. Slack Node: Notify the designated representative. Gmail Node: Email the rep with details. HubSpot Node: Update CRM with AI summary and allocation status, sir. --- π Credentials Required HubSpot OAuth2 API β To fetch and update leads. Airtable Personal Access Token β To store and update lead data. OpenAI API β To power the AI qualification and matching logic. Slack OAuth2 β For sending team notifications. Gmail OAuth2 β For automatic email alerts to assigned reps, sir. --- π€ Ideal For Sales Operations and RevOps teams managing multiple regions B2B SaaS and enterprise teams handling large lead volumes Marketing teams requiring AI-driven, bias-free lead assignment Organizations optimizing CRM efficiency with automation, sir --- π¬ Bonus Tip You can easily extend this workflow by adding lead scoring logic, language translation for follow-ups, or Salesforce integration. The entire system is modular β perfect for scaling across global sales teams, sir.