Type a prospect name → get a 10-section sales-grade psychological profile in ~60 seconds.
🌐 Live demo: https://darshakbhatt-aiproductlabs.github.io/prospect-research-agent/
A two-agent chain built in n8n + LangChain. Agent 1 does background research (Perplexity Sonar Pro + LinkedIn scrape + Google search). Agent 2 turns research into a structured psychological sales profile and emails it.
| File | What it does |
|---|---|
workflows/prospect-research.json |
The full n8n workflow. Chat trigger, two LangChain agents, three tools, Gmail delivery. |
docs/ |
The GitHub Pages landing site. |
💬 Chat / 📅 Calendly trigger
│
▼
Greeter Agent (gpt-4o-mini) ──── asks for prospect name
│
▼
Extract Name LLM (chatgpt-4o-latest)
│
▼
Valid name? ── no ──▶ reprompt
│ yes
▼
┌─────────── Research Agent (GPT-4o) ───────────┐
│ tools: Perplexity Sonar Pro │
│ Google Search │
│ LinkedIn scrape │
└────────────────┬───────────────────────────────┘
▼
Psychological Profiler Agent (chatgpt-4o-latest)
│
▼
📧 Gmail — 10-section profile report
The Profiler Agent produces a structured report with these sections:
- Executive Summary & Core Psychological Profile — archetype, automation readiness, internal narrative
- Buying Triggers — ranked 1-3 with activation language
- Operational Pain Points — likely automatable processes
- Fear Factors — what makes them say no
- Decision-Making Psychology — proof requirements, success metrics, budget authority
- Influence Pathways — who they listen to
- Communication Blueprint — power words, opening lines, value-prop framings
- Objection Handling — predicted objections + scripted counters
- Sales Strategy & Execution — audit-to-implementation sequence
- Action Plan — immediate next steps and 30-day timeline
- Import
workflows/prospect-research.jsoninto your n8n. - Wire credentials:
- OpenAI API (used by gpt-4o-mini, gpt-4o, and chatgpt-4o-latest)
- Perplexity API (Sonar Pro model)
- Gmail OAuth2
- Calendly OAuth (optional, alternate trigger)
- Replace
your-email@example.comin the Gmail node with your recipient. - Activate and point your chat surface (web embed, Slack, Telegram, etc.) at the chat trigger webhook.
- Send "Hi" — the agent will ask for a name.
Approximately $0.08–0.15 per profile at gpt-4o pricing (one research pass + one profiler pass + a few small-model calls). Add Perplexity API cost (~$0.005 per query).
This tool researches publicly available information about professional contacts. Use it well.
- ✅ For: preparing for sales conversations and partnership discussions with people who've already publicly signaled openness (booked a meeting, opened a thread).
- ❌ Not for: mass cold outreach, scraping non-consenting individuals, building shadow profiles, or any use that violates LinkedIn's terms of service or GDPR.
- The LinkedIn integration is rate-limited and intended for one-prospect-at-a-time use.
- You are responsible for your jurisdiction's rules.
If you use it, anchor on three rules: 1) only profile people who've opted in to commercial contact, 2) destroy profiles after the engagement, 3) never quote the AI-generated profile in conversation — use it as preparation, not script.
MIT — fork, modify, ship.
Built by Darshak Bhatt.