← Back to BlogAI Tools

How to Build an AI Chatbot for Your Business — Full Deployment Guide (2026)

10 April 202610 min readSochLabs Team

By the end of this guide, you will have a working AI chatbot live on your website — one that answers FAQs, captures leads, and hands off to you when needed. We are using Botpress Cloud (free tier) because it is the most capable free chatbot platform available, used by companies like Airbus and Volkswagen. No coding needed for the basics — but we include code snippets where they help.

What You Will BuildA chatbot that answers your top FAQs using an AI knowledge base, captures visitor name and phone/email, notifies your team on every lead, and is live on your website via a 2-line embed script. Estimated setup time: 2 hours.

Before You Touch Any Tool — Define Your Bot's Job

The #1 reason chatbots fail is trying to do too much at once. Before opening Botpress, answer these 3 questions in writing:

  • Primary job: What is the ONE thing this bot must do? (Answer FAQs / Capture leads / Book appointments — pick one)
  • Top 10 questions: Open your last 50 WhatsApp messages or support emails. Pull out every question that repeats — these become your knowledge base.
  • Escalation trigger: When should the bot say "Let me connect you with a human"? Define the exact rule (e.g., pricing queries, custom orders, angry tone).
💡 Time-saver: Copy-paste all your FAQ answers into a Google Doc right now. Botpress lets you import a document directly as a knowledge base — saving hours of manual entry.

Step 1 — Create Your Botpress Account

Go to cloud.botpress.com and sign up (Google login works). The free plan includes 5 bots and 2,000 messages/month — more than enough to start and validate.

1. Visit cloud.botpress.com → Sign Up with Google
2. Click "Create Bot" → Choose "Empty Bot"
3. Name it: "Support Bot — [Your Business Name]"
4. Select region: Asia Pacific (lowest latency for India)

Step 2 — Build Your Knowledge Base (The Bot's Brain)

Navigate to Knowledge Base → Add Document. You have three ways to add content:

  • Upload a file — PDF, DOCX, or TXT with your FAQs and product details
  • Paste text — Directly type or paste your Q&A pairs
  • Import a URL — Botpress scrapes your website content automatically

For the URL import: enter your homepage URL, click Import, and Botpress crawls your site and extracts all text as knowledge. This alone handles 60-70% of common questions for most businesses.

💡 After importing: Go to the Knowledge Base tab and manually add your top 10 questions with ideal answers in Q&A format. This dramatically improves accuracy for the questions that matter most to your business.

Step 3 — Build the Conversation Flow

Click Flows → Main Flow. You will see a visual drag-and-drop canvas. Here is the minimum effective flow for a lead-capturing bot:

The 4-Node Lead FlowNode 1 — Welcome: "Hi! I am [Business] assistant. I can answer questions or connect you with our team. What can I help you with?"

Node 2 — AI Answer: Add a "Knowledge Base" card. The bot now answers naturally from everything you uploaded.

Node 3 — Lead Capture: After answering, add: "Want a personalised quote or to speak with us? Share your name and number and we will call you back within 4 hours." → Capture Name + Phone (use Botpress Variables)

Node 4 — Confirmation: "Got it! Our team will reach out shortly." → Trigger an email notification to your inbox via the built-in email action.
⚠️ Avoid this mistake: Do not build more than 4 flow nodes in your first version. Complex flows feel robotic and break often. Let the AI knowledge base handle free-form questions — use flows only for the structured actions you need (lead capture, appointment booking).

Step 4 — Test in the Emulator

Click "Emulate" in the top-right corner. This opens a live chat simulator. Test with real questions from your list and verify:

  • Does it correctly answer your top 10 FAQ questions?
  • Does the lead capture flow trigger after answering?
  • Does it handle unknown questions gracefully? (Should say "I will connect you with a human" — not "I don't understand")

For any wrong answer: go back to the Knowledge Base tab and add the correct Q&A manually. The model updates immediately after saving.

Step 5 — Embed on Your Website (2 Lines of Code)

Go to Integrations → Webchat → Configure. Set the widget color, bot name, and welcome message to match your brand. Click "Get Embed Code". You will get exactly this:

<script src="https://cdn.botpress.cloud/webchat/v2.4/inject.js"></script>
<script src="https://files.bpcontent.cloud/YOUR_BOT_ID/webchat.config.js"></script>

Paste these 2 lines just before the closing </body> tag of your website's HTML. Platform-specific instructions:

  • WordPress: Install the "Header Footer Code Manager" plugin → paste in Footer section
  • Wix: Settings → Custom Code → Add to Body (End)
  • Squarespace: Settings → Advanced → Code Injection → Footer
  • Webflow: Project Settings → Custom Code → Footer Code
💡 Placement tip: Add the embed code to all pages — not just the homepage. Most leads come from your Services and Pricing pages, not the homepage.

Step 6 (Bonus) — Connect to WhatsApp in 30 Minutes

If your customers are on WhatsApp (most Indian businesses find 70%+ of queries come through WhatsApp), connect via WATI — the easiest WhatsApp Business API provider for Indian businesses, starting at ₹2,499/month for 1,000 conversations.

1. Sign up at wati.io → complete WhatsApp Business API verification (24-48 hrs)
2. In Botpress: Integrations → WhatsApp → Enter WATI API Key + Phone Number ID
3. Click Connect — your bot is now live on your WhatsApp business number
4. Share your WhatsApp number — customers message it, bot responds instantly

Step 7 — Monitor and Improve Weekly

In Botpress, go to Analytics to track: total conversations, questions handled by AI, escalations to human, and most common topics. Review this every Monday morning.

  • Any question with low confidence score → add it manually to your knowledge base
  • High escalation rate on a specific topic → add a dedicated flow for it
  • Bot handling 60-70% without human input by week 4 → you are on track
Full Stack & Costs
ToolPurposeCost
Botpress CloudChatbot platformFree → ₹5,500/mo
WATIWhatsApp API₹2,499/mo
Your websiteDeployment channelAlready have it
Total to launch on website: ₹0. With WhatsApp: ₹2,499/month.

Ready to build your AI edge?

Book a free discovery call — we respond within 24 hours.

BOOK A DISCOVERY CALL →