πŸ’¬ LeadChat Booker β€” conversational lead capture that schedules

⚑ 121 views Β· πŸ’¬ Lead Nurturing & AI Sales Agents

Description

Real Working Demo

https://crmaiinsight.com/leadbot

How It Works (High-Level)

  1. Chat > Capture
    LeadBot greets, collects Full Name β†’ Email β†’ Mobile (optional) β†’ Product interest via friendly chat (no forms).

    • Validates email/phone, confirms inputs, supports corrections.
  2. De-dupe
    Checks Salesforce for an existing lead by Email.

    • If found β†’ update_lead. If not β†’ create_lead.
  3. Product Selection
    Pulls your Feature_Product__c list (Name + one-line Description) and lets the user choose by number or name.

  4. Demo Booking (Optional)
    If the user says Yes:

    • Detect/ask Time Zone (IANA).
    • Reads Salesforce Events for the next 14 days.
    • Computes free 30-min weekday slots (09:00–17:00 UTC) strictly after now.
    • User picks a slot β†’ creates a Salesforce Event (30 min) linked to the Lead.
  5. Notifications & Follow-ups

    • Slack DM to your team (concise summary).
    • Email confirmation to the prospect (local date/time included).
    • Ends with a polite confirmation message.

Setup at a Glance

> Tip: Start with the provided Feature_Product__c object. You can switch to your own product catalog with a few tweaks (see below).


Prerequisites


Step-by-Step Setup

  1. Import the flow into n8n

    • Verify nodes: Chat Trigger β†’ AI Agent β†’ check_duplicate_lead β†’ update/create lead β†’ get_products β†’ get_scheduled_events β†’ create_demo_event β†’ Slack/Email.
  2. Add/Bind Credentials

    • Salesforce OAuth: authorize org with API scope.
    • SMTP: sender, domain, and authentication (verify SPF/DKIM).
    • Slack: ensure bot can DM users/channels.
    • OpenAI: drop in your API key.
  3. Map Product Field on Lead

    • Pick one field to store the selection (e.g., Interested_Product__c).
    • Ensure AI Agent and Salesforce nodes reference the same field.
  4. (Option A) Use Feature_Product__c

    • Confirm fields exist: Name, Description__c (used in the numbered list).
    • In get_products, make sure Id is returned; pass it as customFieldsValues0_Value.
  5. (Option B) Use Your Own Catalog

    • Swap customObject: Feature_Product__c β†’ Product2 (or your object).
    • Update fields to at least: Id, Name, and a short description field.
    • Keep the variable contract the same (AI expects to store Id, name, description).
  6. Configure Demo Booking

    • get_scheduled_events uses a SOQL search window (today β†’ +14 days).
    • Ensure your Event permissions allow read/write.
    • Confirm create_demo_event URL points to your Salesforce domain & API version.
  7. Customize Widget (optional)

    • Set title, brand colors, and initial message in the Chat Trigger options.
    • Limit reply length (≀100 words) is already set.
  8. Test End-to-End

    • Run a full path: enter name/email/phone, pick a product, select a time slot.
    • Verify: Lead/Update in Salesforce, Event creation, Slack DM, Prospect Email.

Switching to Your Own Products (Quick Tweaks)


What Users Experience


Troubleshooting Quick Checks


πŸ”— Nodes Used

AI Agent, OpenAI Chat Model, Simple Memory, Chat Trigger, Think Tool

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup