Personalized email automation using Google Docs, Pinecone, GPT-4o and Gmail
Needs changesWhat this workflow does
This AI workflow has 18 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects Pinecone Vector Store, Embeddings OpenAI, OpenAI Chat Model and Gmail and 2 more.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Get a document (Google Docs): get
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (send_mail, Vectorstore Mails)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Gmail)
- Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.7), AI Agent1 (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.7), AI Agent1 (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail Tool
n8n-nodes-base.gmailTool - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Vector Store Question Answer Tool
@n8n/n8n-nodes-langchain.toolVectorStore - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Google Docs
n8n-nodes-base.googleDocs
From the author
What Problem Does This Solve? 🛠️ This workflow automates the process of extracting information from a Google Doc, storing it in a Pinecone vector database, and using it to personalize and send emails based on user input via chat. It eliminates the manual…