{
  "name": "Prospect Research",
  "nodes": [
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "name-check-condition",
              "leftValue": "={{ $json.message.content }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "exists",
                "singleValue": true
              }
            },
            {
              "id": "name-length-condition",
              "leftValue": "={{ $json.message.content.trim().length }}",
              "rightValue": 2,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        -288,
        448
      ],
      "id": "d347b170-87ab-4bdc-8956-eb0aef4a5394",
      "name": "Check If Name Provided"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Objective: Enrich and find as much possible information about this person: {{ $json.message.content }}. Always find and scrape the linkedin if you can.\n\nTools:\n- Perplexity: Find company and personal information\n- Search the internet: Search using google and find their LinkedIn link\n-Linkedin by URL: scrape their linkedin page when given URL\n\nGuidelines: \n- Be careful on the info you find and verify it is the correct person\n- you are relentless at finding linkedin urls\n- always wait for linkedin results too finish receiving information\n\nYour task is complete when you have generated a background for this individual. be relentless in finding more info.\n\nImportant: You are fully autonomous and do not stop for any reason until the task is complete. you never ever stop.",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.1,
      "position": [
        -48,
        288
      ],
      "id": "e02a28ba-cc74-4e94-807e-63050d3445e6",
      "name": "Research Agent"
    },
    {
      "parameters": {
        "model": "sonar-pro",
        "messages": {
          "message": [
            {
              "content": "=Find detailed information about {{ $('Get Prospect Name').item.json.message.content }} including their LinkedIn profile, current job, company, and professional background."
            }
          ]
        },
        "options": {},
        "requestOptions": {}
      },
      "type": "n8n-nodes-base.perplexityTool",
      "typeVersion": 1,
      "position": [
        160,
        464
      ],
      "id": "3b34386d-e32e-4c83-a40a-d52938098113",
      "name": "Perplexity Research"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list",
          "cachedResultName": "gpt-4o"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        -48,
        464
      ],
      "id": "f9c6d522-e97f-4647-8026-2bafcc3d340e",
      "name": "OpenAI Chat Model - Research",
      "credentials": {
        "openAiApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Your openAiApi credential"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=# \ud83e\udde0 ELITE PSYCHOLOGICAL SALES PROFILER\n## Advanced Buyer Psychology & Tactical Sales Intelligence Generator\n\nYou are a world-class sales psychologist specializing in selling automation audit and implementation services. Your mission is to create an exhaustive, tactical psychological sales profile that reveals every hidden buying trigger and decision pathway for selling automation consulting services to this prospect.\n\n**CONTEXT: You are analyzing this prospect to sell them:**\n- **Automation Opportunity Audits**: Comprehensive analysis of their business processes to identify automation opportunities\n- **Automation Implementation Services**: Building and deploying the automation solutions identified in the audit\n\n---\n\n## \ud83d\udcca INPUT DATA ANALYSIS\n**Research Data to Analyze:**\n{{ $('Research Agent').item.json.output }}\n\n---\n\n## \ud83c\udfaf COMPREHENSIVE PSYCHOLOGICAL ANALYSIS FRAMEWORK\n\n### 1. \ud83e\uddec EXECUTIVE SUMMARY & CORE PSYCHOLOGICAL PROFILE\n**Buyer Personality Snapshot:** (2-3 sentences summarizing their core buying psychology)\n\n**Automation Readiness Assessment:**\n- **Innovation Adoption Style**: Early adopter/Fast follower/Late majority/Laggard\n- **Change Management Comfort**: How they handle operational changes\n- **ROI Sensitivity**: Numbers-driven vs. efficiency-driven vs. competitive-driven\n- **Technology Sophistication**: Current automation maturity level\n\n**Primary Psychological Archetype:**\n- **Dominant Type**: Driver/Analytical/Expressive/Amiable (with % breakdown if mixed)\n- **Core Identity**: How they see themselves professionally and personally\n- **Internal Narrative**: The story they tell themselves about their role and impact\n- **Automation Mindset**: How they view technology's role in business success\n\n### 2. \ud83d\udcb0 AUTOMATION-SPECIFIC BUYING TRIGGER ANALYSIS\n\n**PRIMARY AUTOMATION DRIVERS (Ranked by Intensity):**\n1. **[Strongest Trigger]**: Specific pain point automation could solve + evidence from research\n   - **Activation Language**: Exact words/phrases that trigger this emotion\n   - **Audit Positioning**: How to frame the audit around this trigger\n   - **Implementation Hook**: How to connect this to automation solutions\n2. **[Second Trigger]**: Continue pattern...\n3. **[Third Trigger]**: Continue pattern...\n\n**OPERATIONAL PAIN POINTS:**\n- **Time-Consuming Processes**: What tasks eat up their time/team's time\n- **Error-Prone Activities**: Where manual processes create mistakes\n- **Scalability Bottlenecks**: What prevents them from growing efficiently\n- **Competitive Disadvantages**: Where automation could give them an edge\n\n**AUTOMATION FEAR FACTORS:**\n- **Implementation Concerns**: What worries them about automation projects\n- **Technology Fears**: Complexity, reliability, or integration anxieties\n- **Change Management Fears**: Team resistance, training requirements\n- **Investment Fears**: ROI uncertainty, budget allocation concerns\n\n### 3. \ud83e\udde0 AUTOMATION DECISION-MAKING PSYCHOLOGY\n\n**AUTOMATION EVALUATION CRITERIA:**\n- **Proof Requirements**: What evidence they need to believe automation will work\n- **Success Metrics**: How they measure automation project success\n- **Timeline Expectations**: Fast wins vs. long-term transformation mindset\n- **Budget Authority**: Who influences automation investment decisions\n\n**DECISION-MAKING BLIND SPOTS:**\n- **Automation Opportunity Blindness**: Processes they don't realize could be automated\n- **ROI Calculation Gaps**: How they might underestimate automation benefits\n- **Implementation Complexity**: What they might not consider about automation projects\n\n### 4. \ud83c\udfaa INFLUENCE PATHWAYS & AUTOMATION SOCIAL PROOF\n\n**AUTOMATION AUTHORITY FIGURES:**\n- **Industry Leaders**: Which companies they look to for automation inspiration\n- **Technology Influencers**: Whose automation advice they trust\n- **Peer Networks**: Who in their industry influences their automation decisions\n\n**COMPELLING AUTOMATION PROOF:**\n- **Case Study Types**: What automation success stories resonate with them\n- **ROI Evidence**: Which automation metrics they find most convincing\n- **Implementation Examples**: What automation demonstrations would hook them\n\n### 5. \ud83d\udde3\ufe0f AUTOMATION-FOCUSED COMMUNICATION BLUEPRINT\n\n**AUTOMATION POWER WORDS & PHRASES:**\n- **Efficiency Language**: [10-15 words that resonate with their efficiency goals]\n- **Growth Language**: [Words that connect automation to business growth]\n- **Competitive Language**: [Phrases about gaining competitive advantage]\n- **ROI Language**: [Financial terms that trigger their investment mindset]\n\n**AUTOMATION CONVERSATION SCRIPTS:**\n\n**Audit Opening Lines:**\n1. \"I noticed [specific inefficiency from research] - we typically find 3-5 automation opportunities that could save [their industry] companies like yours 15-25 hours per week. Mind if I ask how you're currently handling [specific process]?\"\n\n2. \"Given your background in [their industry], you probably see the same operational bottlenecks we're seeing across [industry] companies. We just completed an automation audit for [similar company] and found $180K in annual savings. Are you curious about what automation opportunities might exist in your operations?\"\n\n3. \"Your company's growth trajectory is impressive, but I imagine you're hitting some scaling challenges around [specific process based on research]. We specialize in identifying automation solutions that eliminate these bottlenecks. Would a 30-minute automation opportunity assessment be valuable?\"\n\n**Value Proposition Framing:**\n- **For Efficiency-Focused**: \"Our automation audits typically identify 15-40 hours of weekly time savings that can be redirected to revenue-generating activities.\"\n- **For Growth-Focused**: \"We help companies like yours automate the operational processes that become scaling bottlenecks, so you can grow without proportionally increasing headcount.\"\n- **For ROI-Focused**: \"Our automation implementations typically pay for themselves within 4-8 months through cost savings and efficiency gains.\"\n\n**Implementation Closing Language:**\n- \"Based on the audit findings, we'd recommend implementing the [specific automation] first since it has the highest ROI and shortest implementation timeline.\"\n- \"This automation would eliminate [specific pain point] and free up your team to focus on [strategic activity based on their goals].\"\n\n### 6. \ud83d\udea7 AUTOMATION OBJECTION HANDLING PLAYBOOK\n\n**PREDICTABLE AUTOMATION OBJECTIONS:**\n\n**\"We're too busy for an automation project\"**\n\u2192 **Response**: \"That's exactly why this makes sense now. The audit takes just 2-3 hours of your time, and we typically find opportunities to save 15+ hours per week within 30 days. You're essentially trading 3 hours for 60+ hours monthly.\"\n\n**\"Our processes are too complex/unique to automate\"**\n\u2192 **Response**: \"That's what [similar company] said before we automated their [similar process]. The complexity is exactly why an audit is valuable - we specialize in finding automation opportunities others miss in complex workflows.\"\n\n**\"We can't afford automation right now\"**\n\u2192 **Response**: \"The audit shows you exactly which automations pay for themselves fastest. Most clients implement the highest-ROI automation first, then use those savings to fund the next automation. It's self-funding growth.\"\n\n**\"We've tried automation before and it didn't work\"**\n\u2192 **Response**: \"That's common when companies automate without first auditing their processes. Our audit identifies which processes are automation-ready and which need optimization first. We eliminate the guesswork.\"\n\n### 7. \ud83c\udfaf AUTOMATION SALES STRATEGY & EXECUTION\n\n**AUDIT-TO-IMPLEMENTATION SALES SEQUENCE:**\n\n**Phase 1 - Audit Sale:**\n- Position audit as low-risk assessment (not consulting engagement)\n- Focus on discovery and opportunity identification\n- Emphasize external perspective and expertise\n\n**Phase 2 - Implementation Sale:**\n- Use audit findings to demonstrate specific ROI\n- Show clear implementation roadmap with timelines\n- Position as natural next step based on evidence\n\n**AUTOMATION URGENCY CREATORS:**\n- **Competitive Pressure**: \"Your competitors are already automating [specific process]\"\n- **Growth Constraints**: \"These manual processes will become impossible to manage at [their growth rate]\"\n- **Cost Escalation**: \"Manual processing costs increase exponentially with volume\"\n- **Talent Market**: \"Finding people willing to do repetitive tasks is getting harder and more expensive\"\n\n### 8. \u26a1 AUTOMATION-SPECIFIC ATTENTION GETTERS\n\n**AUTOMATION OPPORTUNITY HOOKS:**\n- \"Most [their industry] companies are leaving 20-40% operational efficiency on the table\"\n- \"We found a [specific process] automation at [similar company] that eliminated 8 hours of work per day\"\n- \"There's probably a 15-minute task your team does daily that we could automate completely\"\n- \"[Industry trend] is forcing companies to automate [specific area] or fall behind\"\n\n**EFFICIENCY CURIOSITY GAPS:**\n- \"What's the most repetitive task your team complains about?\"\n- \"If you could eliminate one operational bottleneck, what would it be?\"\n- \"How much time does your team spend on [common industry process]?\"\n\n### 9. \ud83d\udea8 AUTOMATION-SPECIFIC SUCCESS FACTORS\n\n**AUTOMATION RELATIONSHIP ACCELERATORS:**\n- **Process Expertise**: Demonstrate deep understanding of their industry workflows\n- **ROI Credibility**: Share specific savings examples from similar companies\n- **Implementation Competence**: Show track record of successful automation projects\n- **Change Management**: Address team adoption and training concerns proactively\n\n**AUTOMATION RELATIONSHIP KILLERS:**\n- **Over-promising**: Claiming 100% automation when partial automation is realistic\n- **Technology Focus**: Leading with technology instead of business outcomes\n- **Ignoring Change Management**: Not addressing team resistance and adoption\n- **Generic Approaches**: Using one-size-fits-all automation recommendations\n\n### 10. \ud83c\udfaa ADVANCED AUTOMATION INFLUENCE TECHNIQUES\n\n**AUTOMATION PSYCHOLOGY LEVERAGE:**\n- **Sunk Cost Avoidance**: \"Every day without automation is money left on the table\"\n- **Loss Aversion**: \"Your competitors are gaining efficiency advantages while you're not\"\n- **Status Quo Bias**: \"We'll start with one small automation to minimize disruption\"\n- **Authority Positioning**: \"Based on 100+ automation audits, this is what we typically see...\"\n\n**AUTOMATION RECIPROCITY OPPORTUNITIES:**\n- Provide valuable process improvement insights during initial conversations\n- Share industry automation benchmarks and best practices\n- Offer minor automation recommendations even before formal engagement\n\n---\n\n## \ud83d\udccb REQUIRED OUTPUT FORMAT\n\n**STRUCTURE YOUR RESPONSE EXACTLY AS FOLLOWS:**\n\n```\n# \ud83e\udd16 AUTOMATION SALES PSYCHOLOGICAL PROFILE\n## Prospect: [Extract name from research data]\n\n---\n\n## \ud83d\udcca EXECUTIVE SUMMARY\n[2-3 sentences capturing their automation readiness and primary triggers]\n\n---\n\n## \ud83c\udfaf AUTOMATION BUYER ANALYSIS\n\n### Core Psychological Profile\n[Detailed personality analysis with automation context]\n\n### Primary Automation Buying Triggers (Ranked by Power)\n1. **[Trigger Name]**: [Description + Audit Positioning + Implementation Hook]\n2. **[Trigger Name]**: [Description + Audit Positioning + Implementation Hook] \n3. **[Trigger Name]**: [Description + Audit Positioning + Implementation Hook]\n\n### Operational Pain Points & Automation Opportunities\n[Specific processes that likely need automation based on their role/industry]\n\n### Automation Fears & Resistance Points\n[What concerns them about automation projects]\n\n---\n\n## \ud83d\udde3\ufe0f AUTOMATION SALES SCRIPTS\n\n### Audit Opening Lines\n1. \"[Customized opener based on their specific situation]\"\n2. \"[Alternative opener focusing on their industry pain]\"\n3. \"[ROI-focused opener with specific numbers]\"\n\n### Value Proposition for Their Profile\n[How to frame automation audit and implementation for their psychology]\n\n### Implementation Closing Language\n[Specific phrases to transition from audit to implementation sale]\n\n---\n\n## \ud83d\udea7 AUTOMATION OBJECTION HANDLING\n\n### Their Likely Automation Objections\n**[Predicted objection based on profile]**: \u2192 **Response**: \"[Specific counter]\"\n**[Budget concern]**: \u2192 **Response**: \"[ROI-focused response]\"\n**[Complexity concern]**: \u2192 **Response**: \"[Simplification approach]\"\n\n### Automation Trust Building\n[Specific steps to establish credibility as automation expert]\n\n---\n\n## \ud83c\udfaa AUTOMATION INFLUENCE STRATEGY\n\n### Automation Social Proof That Works\n[Specific types of automation case studies that resonate]\n\n### Competitive Automation Pressure\n[How to create urgency around automation adoption]\n\n### Process Improvement Curiosity\n[Questions that reveal automation opportunities]\n\n---\n\n## \u26a1 AUTOMATION SALES TACTICS\n\n### Audit Sale Approach\n[How to sell the automation audit to this specific prospect]\n\n### Implementation Sale Strategy  \n[How to convert audit into implementation project]\n\n### Automation ROI Presentation\n[How to frame financial benefits for their psychology]\n\n---\n\n## \ud83d\udea8 AUTOMATION SUCCESS FACTORS\n\n### What Will Accelerate This Sale\n[Specific approaches that build trust and urgency for automation]\n\n### What Will Kill This Automation Sale\n[Mistakes that will trigger resistance or skepticism]\n\n### Success Metrics for This Prospect\n[How to measure progress toward automation sale]\n\n---\n\n## \u2705 AUTOMATION SALES ACTION PLAN\n\n### Immediate Next Steps\n1. [First action to take for automation sale]\n2. [Second action to take]\n3. [Third action to take]\n\n### 30-Day Automation Sales Timeline\n[Optimal sequence from initial contact to implementation contract]\n\n### Automation Opportunity Assessment\n[How to position and conduct the audit sale with this prospect]\n\n---\n\n**\ud83e\udd16 Bottom Line**: [One sentence summary of optimal automation sales approach]\n**\ud83d\udcc5 Generated**: {{ $now }}\n```\n\n**FOCUS REQUIREMENTS:**\n- Tailor every recommendation to selling automation audit and implementation services\n- Include specific conversation scripts for automation sales\n- Provide tactical advice for converting audit prospects to implementation clients\n- Address automation-specific objections and concerns\n- Connect psychological insights to automation buying behavior\n\nGenerate the most comprehensive automation sales profile possible using this exact format.",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.1,
      "position": [
        320,
        464
      ],
      "id": "14670b99-11f2-40dc-bd64-a70d573ea994",
      "name": "Psychological Profiler Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "chatgpt-4o-latest",
          "mode": "list",
          "cachedResultName": "chatgpt-4o-latest"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        320,
        656
      ],
      "id": "bc3a0b8c-f4ec-4ddc-a469-a76ed1186199",
      "name": "OpenAI Chat Model - Profiler"
    },
    {
      "parameters": {
        "content": "## \ud83c\udfaf Prospect Research Workflow\n\n**Purpose**: Research prospects and generate psychological sales profiles\n\n**Process**:\n1. Input prospect name\n2. Validate name exists\n3. Research background & LinkedIn\n4. Generate psychological profile\n5. Output comprehensive report\n\n**Key Features**:\n- LinkedIn profile scraping\n- Company research via Perplexity\n- Psychological buying trigger analysis\n- Sales strategy recommendations",
        "height": 416,
        "width": 448,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -1504,
        112
      ],
      "id": "d5c1afe8-d0fa-435c-acd8-c150c2e0bee1",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## \ud83d\udeab No Name Provided\n\nThis path handles cases where:\n- No name is entered\n- Empty input\n- Invalid format\n\nPrompts user to provide a valid prospect name for research.",
        "height": 216,
        "width": 456,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -496,
        688
      ],
      "id": "06935077-ac13-4f70-a666-9a9c7cad135d",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## \ud83d\udd0d Research Phase\n\n**Tools Used**:\n- Perplexity for recent information\n- Google search for LinkedIn URLs\n- LinkedIn scraping for detailed profiles\n\n**Data Collected**:\n- Professional background\n- Current role & company\n- Recent activities\n- Network connections",
        "height": 300,
        "width": 440,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "6143e638-c97c-4a92-9c11-a51951768a1a",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "content": "## \ud83e\udde0 Psychological Analysis\n\n**Analyzes**:\n- Buying triggers & motivations\n- Decision-making patterns\n- Resistance points\n- Communication preferences\n- Status symbols that matter\n\n**Output**: Actionable sales strategy with specific trigger words and approach recommendations.",
        "height": 284,
        "width": 376,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        560,
        688
      ],
      "id": "a10e3335-b18e-421c-9af5-83312dc64b23",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.3,
      "position": [
        -1264,
        528
      ],
      "id": "5a51922c-d84a-49f6-a7af-83400aa11fb7",
      "name": "When chat message received",
      "webhookId": "31b20887-e28e-41e7-9c13-bc9f6b9dd407"
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "events": [
          "invitee.created"
        ]
      },
      "type": "n8n-nodes-base.calendlyTrigger",
      "typeVersion": 1,
      "position": [
        -976,
        320
      ],
      "id": "9496dd9b-a146-4e62-951f-7d94ecf66fc6",
      "name": "Calendly Trigger",
      "webhookId": "a8c97d66-6e2f-43dc-b53b-0e0240e62bcb",
      "credentials": {
        "calendlyOAuth2Api": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Your calendlyOAuth2Api credential"
        }
      }
    },
    {
      "parameters": {},
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        48,
        448
      ],
      "id": "040cf78f-e301-415a-aaeb-4fae08575d72",
      "name": "Simple Memory"
    },
    {
      "parameters": {},
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        480,
        672
      ],
      "id": "e54c7d46-6873-4497-8c13-7d0f2c6e7540",
      "name": "Simple Memory1"
    },
    {
      "parameters": {
        "sendTo": "your-email@example.com",
        "subject": "=Psychological Profile Report",
        "emailType": "text",
        "message": "={{ $json.output }}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        736,
        464
      ],
      "id": "00054d71-bc4b-407c-a366-730b511a3a76",
      "name": "Send a message",
      "webhookId": "62130623-9072-4237-a504-0098c34c9dd5"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "chatgpt-4o-latest",
          "mode": "list",
          "cachedResultName": "CHATGPT-4O-LATEST"
        },
        "messages": {
          "values": [
            {
              "content": "=Extract the prospect name from this user message: \"{{ $json.chatInput }}\"\n\nReturn only the clean, properly formatted full name.\n\nExamples:\n- If user says \"research John Smith\" \u2192 return \"John Smith\"\n- If user says \"I want info on Sarah Johnson\" \u2192 return \"Sarah Johnson\"  \n- If user says \"tell me about Michael Chen\" \u2192 return \"Michael Chen\"\n\nFocus only on extracting the person's name, ignore any other text.\n\nIf User message: \"{{ $json.chatInput }}\" contains greetings like 'Hi, Hey, WWassup, etc' reply with the following:\nHello! What is the prospect's name?"
            }
          ]
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1.8,
      "position": [
        -592,
        448
      ],
      "id": "4ea65761-d297-4bb1-9c6f-34b16f115661",
      "name": "Get Prospect Name",
      "credentials": {
        "openAiApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Your openAiApi credential"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=User Input: {{ $json.chatInput }}",
        "options": {
          "systemMessage": "You are an AI assistant that helps collect prospect information for research purposes. Your role is to guide users through providing a prospect's name in a structured format.\n\nConversation Flow:\n1. When a user greets you with \"Hi\", \"Hello\", or similar greeting, respond with: \"I am doing good. Kindly share the name in 'Firstname Lastname' format of your prospect.\"\n\n2. Wait for the user to provide the prospect's name. Accept names in the format requested (Firstname Lastname).\n\n3. Once you receive a valid name in the correct format, acknowledge it briefly and pass the name to the next node for processing.\n\n4. If the name format is incorrect (missing first or last name, or unclear format), politely ask them to resubmit in the correct 'Firstname Lastname' format.\n\nResponse Rules:\n- Keep responses short and direct\n- Only ask for the prospect name - no additional information\n- Don't engage in extended conversation beyond the core task\n- Maintain a professional, helpful tone\n- Once you have the name in correct format, immediately proceed to pass it to the next workflow step\n\nPurpose: This information will be used to research the prospect you've provided.\n\nExample interaction:\nUser: \"Hi\"\nYou: \"I am doing good. Kindly share the name in 'Firstname Lastname' format of your prospect.\"\nUser: \"John Smith\"\nYou: \"Thank you. Processing John Smith for research.\"\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        -960,
        528
      ],
      "id": "b645cbfe-784d-4bc4-b440-113fba73004d",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "contextWindowLength": 10
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        -864,
        752
      ],
      "id": "12c6437d-5e8f-4d69-852d-fb29080cad44",
      "name": "Simple Memory2"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4o-mini",
          "mode": "list",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        -1040,
        736
      ],
      "id": "66080c66-01e4-40e8-96af-5eb9c9d47418",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID",
          "name": "Your openAiApi credential"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Check If Name Provided": {
      "main": [
        [
          {
            "node": "Research Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Agent": {
      "main": [
        [
          {
            "node": "Psychological Profiler Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Psychological Profiler Agent": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model - Research": {
      "ai_languageModel": [
        [
          {
            "node": "Research Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Perplexity Research": {
      "ai_tool": [
        [
          {
            "node": "Research Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model - Profiler": {
      "ai_languageModel": [
        [
          {
            "node": "Psychological Profiler Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calendly Trigger": {
      "main": [
        [
          {
            "node": "Get Prospect Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Research Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory1": {
      "ai_memory": [
        [
          {
            "node": "Psychological Profiler Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Get Prospect Name": {
      "main": [
        [
          {
            "node": "Check If Name Provided",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Get Prospect Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory2": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "tags": []
}