Generate product-aware B2B leads and outreach emails with Gemini, Pinecone and Gmail
Ready for 3.0What this workflow does
This AI workflow has 59 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Pinecone Vector Store, Google Drive, Google Sheets and Embeddings Google Gemini and 5 more. It also calls google.serper.dev over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).
- Search files and folders (Google Drive): work with file folder
- Lead Criteria Agent (AI Agent): runs an AI agent, with model: Gemini; 1 tool (KB - Lead Criteria); output parser: Parser
- Get Companies (Postgres): select
- Get Leads (Postgres): select
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Extract Queries (Code): runs custom JavaScript code
- Loop Over Companies (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop Over Leads (Loop Over Items (Split in Batches)): loops over the items in batches
- nonDownloadableFile (If): checks a condition and branches into true / false
- Loop Over Queries (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 29 more steps. See the full node list below.
Services it uses
HTTP calls to: google.serper.dev
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (22)
- Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Google Drive
n8n-nodes-base.googleDrive - Crypto
n8n-nodes-base.crypto - Switch
n8n-nodes-base.switch - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Postgres
n8n-nodes-base.postgres - Hunter
n8n-nodes-base.hunter - Wait
n8n-nodes-base.wait - Http Request Tool
n8n-nodes-base.httpRequestTool - Gmail
n8n-nodes-base.gmail
From the author
How can you find your target market if you don't know what your product is. This simple philosophy changes the way we think about automated sales agents. Context changes everything. In this 4-part workflow, we start by creating a knowledge base that will act…