LeBot: Build With Me Livestreams Summary
# 📖tutorials
p
Here’s a quick breakdown of the key components that make LeBot a fully functional customer support and lead generation assistant for Le Agency. The attached bot file includes comments about each concept. 🧩 1. Autonomous Node (Router) Purpose: Kick off conversations with a friendly welcome and guide users toward helpful workflows based on their goals 🤝 2. HITL (Human-in-the-Loop) Workflow Purpose: Seamless escalation when user needs go beyond the bot's scope Key Features: * Requests reason for escalation before handoff * Triggers HITL routing logic * Gracefully exits after escalation 📚 3. ServiceFAQ Workflow Purpose: Provide a quick, interactive overview of Le Agency's 6 services Key Features: * Pulls content from the Services Knowledge Base * Routes follow-up questions to either LeadGen or PDF Upload 🟡 4. WebChat Customization Purpose: Style and embed the bot into Le Agency’s website Changes Included: * Widget styling * Hidden/overwritten system description 📧 5. LeadGen Workflow Purpose: Collect lead info interactively Captured Fields: * Name, Email, Company * Project Type: 1. Content Strategy 2. Social Media 3. Paid Media 4. Marketing Automation 5. Branding & Creative Direction 6. Analytics & Reporting * Budget 🔒 6. Authentication Layer Purpose: Secure or personalize the bot experience Optional Add-On: * User verification via email or token * Gate certain workflows (e.g. file upload or analytics access) 📄 7. PDF Upload Purpose: Allow users to upload a PDF (brand guide, etc.) Key Features: * File parsing and upload to a Knowledge Base 🪄 8. Custom Website Events Purpose: Trigger flows from site interactions (e.g., CTA buttons) You can find the code snippet in the thread. 📎 Next Step: Download the .bp bot file and explore the comments inside each node to follow along. You can reuse parts of this bot for your own purposes!

 Happy Bot Building! https://cdn.discordapp.com/attachments/1385005557991342130/1385005559836704960/Screenshot_2025-06-18_at_5.15.48_PM.png?ex=68547e71&is=68532cf1&hm=36e90fa6b04dacf80b0458187c0dda807d083762e79275cb5be91b2b9ed1cfca& https://cdn.discordapp.com/attachments/1385005557991342130/1385005560314859580/Le-Agency-Bot_-_2025_Jun_18.bpz?ex=68547e71&is=68532cf1&hm=8ff1817f3e51cabeb34692c8ceae6f82f8b0453efabfae14edd320286171eb0e&
Copy code
js
 <script>
  window.botpress.on('webchat:ready', async (conversationId) => {
    console.log('Webchat ready, conversation ID:', conversationId);
  });

  const serviceTriggers = {
    serviceContent: 'trigger_content_strategy',
    serviceSocial: 'trigger_social_media',
    servicePaid: 'trigger_paid_media',
    serviceAutomation: 'trigger_automation'
  };

  Object.entries(serviceTriggers).forEach(([buttonId, trigger]) => {
    const button = document.getElementById(buttonId);
    if (button) {
      button.addEventListener('click', async () => {
        const payload = { trigger };
        await window.botpress.sendEvent(payload);
      });
    }
  });
</script>
15 Views