Skip to main content

Generate sales leads & personalized outreach emails using Jina AI and OpenAI agents

Workflow preview

Workflow preview
100%
Generate sales leads & personalized outreach emails using Jina AI and OpenAI agents 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 uses AI agents to enrich company data from Airtable. It performs deep research to find the best decision maker, then drafts and evaluates a personalized outreach email, and finally up...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.merge

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate sales leads & personalized outreach emails using Jina AI and OpenAI agents
Workflow name
Generate sales leads & personalized outreach emails using Jina AI and OpenAI agents

This workflow uses AI agents to enrich company data from Airtable. It performs deep research to find the best decision-maker, then drafts and evaluates a personalized outreach email, and finally updates the original Airtable record with the new lead information and email content.

👥 Who is it for?

This workflow is ideal for sales teams, marketers, and business development professionals looking to automate their lead generation and initial outreach process, saving time and increasing personalization at scale.

⚙️ How it works

This workflow initiates by fetching unprocessed company records from a specified Airtable base. For each company, it performs a "deep research" using Jina AI to identify key decision-makers based on the company's name and website.

Next, a series of AI agents process the information:

  1. Lead Analyzer: A "Lead Generation Specialist" agent analyzes the research results to select the most suitable contact person.
  2. Email Content Creator: A "Content Creator Specialist" agent uses the lead's information and your business details to draft a personalized marketing email and subject line.
  3. Evaluator: An "Expert Email Marketing Evaluator" agent reviews the generated email for quality, tone, and effectiveness, providing a score and feedback.

Finally, the workflow updates the original record in Airtable with the identified lead's name, email, the generated email content, and the evaluation summary, marking the record as processed.

🛠️ How to set up

  1. Airtable Setup:
    • Create an Airtable base with a table containing the following fields:

      • Company_name: A text field for the name of the lead's company (Required).
      • Company_website: A URL field for the company's official website (Required).
      • Company_email: An email field for a general contact email for the company (Required).
      • Address: A text field for the physical address of the company (Optional).
      • Company_phone: A phone number field for a general phone number for the company (Optional).
      • processed: A single select field to track the status. It needs the options no and yes. The workflow only processes records set to no (Required).
      • lead_name: A text field that the workflow will populate with the name of the identified lead (Output).
      • lead_email: An email field that the workflow will populate with the identified lead's email (Output).
      • email_subject: A text field for the generated email subject line (Output).
      • email_text: A long text field for the generated, personalized email body (Output).
      • email_summary: A long text field for the AI's evaluation and summary of the created email (Output).
      • create_date: A date and time field to log when the record was processed (Output).
      • task_result: A text field for a summary of the final task result, like "Email wrote" (Output).
    • Create your Airtable Credentials Airtable Documentation

    • Connect your Airtable credentials to the 'Get input records' and 'Update record' nodes and select your Base and Table in both nodes.

    • Fill the Airtable Table with the Companies details you want to generate Leads. The requited columns are (Company_Name, Company_website and Company_email). Also, make sure the column processed is set to "no".

  2. Business Information:
    • In the Business_Info node, fill in the values with your company's details, key benefits, target audience, and landing page URL.
  3. API Keys:
    • Jina AI: Get your API key from Jina AI and insert it into the Jina_API_Key node.
    • OpenAI: Add your OpenAI credentials to the 'OpenAI o3-mini', 'OpenAI - 4o-mini', and 'OpenAI - 4o-mini - low' nodes.

âś… Requirements

🎨 How to customize the workflow

  • Change the data source: Replace the Airtable 'Get input records' node with another database or CRM node like Google Sheets, HubSpot, or Salesforce to pull your company list from a different source.
  • Adjust AI models: Experiment with different OpenAI models in the LangChain nodes ('OpenAI o3-mini', 'OpenAI - 4o-mini') to balance cost, speed, and performance.
  • Refine the AI prompts: Modify the system messages and prompts within the 'Lead Analyzer', 'Email Content Creator', and 'Evaluator' agent nodes to better align their outputs with your specific tone of voice, goals, and evaluation criteria.
  • Automate sending: Extend the workflow by adding an email node (e.g., Gmail, Outlook) after the 'Update record' node to automatically send the generated emails.

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 - When clicking "Test workflow"

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

Block 2 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 3 - Lead Person Research

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

Block 4 - Lead Analyzer

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

Block 5 - Structured Output Parser

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

Block 6 - Structured Output Parser3

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

Block 7 - Email Content Creator

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

Block 8 - Evaluator

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

Block 9 - Structured Output Parser1

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

Block 10 - Sticky Note

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

Block 11 - OpenAI - 4o-mini

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

Block 12 - OpenAI o3-mini

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

Block 13 - OpenAI - 4o-mini - low

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

Block 14 - Merge-Search

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 15 - Wait-5-sec

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

Block 16 - Update record

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

Block 17 - Sticky Note2

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

Block 18 - Wait-8-sec

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

Block 19 - Get input records

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

Block 20 - Merge-loop

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 21 - Sticky Note5

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

Block 22 - Business_Info

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

Block 23 - Jina_API_Key

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

Block 24 - Sticky Note6

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

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

3. Summary Table

Workflow Generate sales leads & personalized outreach emails using Jina AI and OpenAI agents
Complexity advanced
Nodes 28
Categories Lead Generation, Multimodal AI
Author FabioInTech
Published 29 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6649/6649.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 sales leads & personalized outreach emails using Jina AI and OpenAI agents do?

This workflow uses AI agents to enrich company data from Airtable. It performs deep research to find the best decision maker, then drafts and evaluates a personalized outreach email, and finally up...

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