Deploy a personal AI assistant that answers recruiter questions about your skills and projects, then automatically emails your CV as a PDF attachment when requested. Upload your portfolio documents (resume, project writeups, case studies) to a Google Drive folder — the workflow chunks them into 600-character segments, embeds them with OpenAI, and stores them in Pinecone. A webhook-powered AI Agent (Claude Sonnet 4.5) retrieves the most relevant evidence using Pinecone + Cohere reranking, detects CV requests via structured output parsing, and sends your resume file via Gmail — all without any manual intervention.
Ingestion pipeline:
text-embedding-3-small produces 1536-dimension vectorsportfolio-docs Pinecone indexChat agent pipeline:
POST /webhook/portfolio-query receives { "chatInput": "...", "sessionId": "...", "email": "..." }portfolio_knowledge tool (a Vector Store Tool backed by Pinecone) before answering — every response is grounded in retrieved evidencererank-v3.5 reranks the top-5 Pinecone results to top-3 before they reach the LLM{ "answer": "...", "cvRequested": false } — the cvRequested boolean is set by the LLM when it detects recruiter intentcvRequested: true → download CV PDF from Drive → Gmail attachment → respond { answer, cvSent: true }; false → respond { answer, cvSent: false } immediatelysessionId for multi-turn conversationsError handling: An Error Trigger catches any node failure and extracts error_message, failed_node, workflow_name, and execution_url into a clean object — ready to forward to Slack, email, or any alerting webhook.
portfolio-docs (dimension: 1536, metric: cosine, pod or serverless)In n8n → Settings → Credentials, create one credential for each service:
| Credential name | Service |
|---|---|
Google Drive OAuth2 |
Google Drive OAuth2 |
OpenAI API |
OpenAI |
Pinecone API |
Pinecone |
Anthropic API |
Anthropic |
Cohere API |
Cohere |
Gmail OAuth2 |
Gmail OAuth2 |
Open File Created Trigger and File Updated Trigger (do both). In the Folder to Watch field, switch to ID mode and paste your folder ID.
Find your folder ID in the Drive URL:
https://drive.google.com/drive/folders/YOUR_FOLDER_ID
Open Download CV PDF. In the File field, switch to ID mode and paste your CV file ID.
Find the file ID in:
https://drive.google.com/file/d/YOUR_FILE_ID/view
Open Portfolio AI Agent and edit the system message:
Move or upload your portfolio files into the monitored Drive folder. The ingestion pipeline will trigger automatically within one minute and populate Pinecone.
To verify ingestion: check your Pinecone index vector count — it should increase after each file is processed.
Send a POST request to your webhook URL:
curl -X POST https://your-n8n-instance/webhook/portfolio-query \
-H "Content-Type: application/json" \
-d '{"chatInput": "What are your main technical skills?", "sessionId": "test-1"}'
Expected response:
{ "answer": "...", "cvSent": false }
To test CV delivery, include "email": "[email protected]" and ask: "Can you send me the CV?".
text-embedding-3-small (×2 — ingest + retrieval), Cohere rerank-v3.5, Pinecone Vector Store (×2 — insert + retrieve), Structured Output Parser, Buffer Window Memory