
Introduction
In the rapidly evolving landscape of artificial intelligence, conversational agents have become essential tools for businesses seeking to enhance customer engagement, automate support, and streamline operations. Botpress stands out as a comprehensive AI agent platform that empowers users—from developers to non-technical business owners—to build, customize, and deploy intelligent conversational agents with remarkable ease. Unlike many AI tools that require extensive coding knowledge, Botpress offers an intuitive visual studio combined with the power of large language models (LLMs), making it accessible to beginners while remaining robust enough for enterprise-level applications.
Botpress is not merely a chatbot builder; it is a complete ecosystem for creating autonomous AI agents. These agents can understand complex queries, maintain context across conversations, learn from custom knowledge bases, and seamlessly hand off conversations to human agents when necessary. The platform supports deployment across multiple channels including WhatsApp, Instagram, Messenger, Slack, and web widgets, ensuring your AI agent meets customers wherever they are. With integrations for popular business tools like HubSpot, Notion, Jira, and Calendly, Botpress transforms conversational AI from a standalone feature into a central component of your workflow automation strategy.
This tutorial will guide you through everything you need to know about Botpress, from initial setup to advanced customization. Whether you are building your first AI agent or migrating from another platform, this guide provides practical, step-by-step instructions to help you succeed.
Getting Started
Creating Your Botpress Account
To begin using Botpress, navigate to the official website at https://botpress.com/. Click the “Get Started” or “Sign Up” button prominently displayed on the homepage. You can register using your email address or sign in with Google or GitHub accounts for faster onboarding. The free tier provides generous credits to explore the platform’s capabilities before committing to a paid plan.
After verifying your email, you will be directed to the Botpress dashboard. This is your command center, where you can create new agents, manage existing ones, monitor performance, and access settings. The interface is clean and well-organized, with a left sidebar providing quick access to all major sections.
Understanding the Dashboard Layout
The Botpress dashboard consists of several key areas:
- Agents Section: Lists all your created AI agents. From here, you can launch the studio, duplicate agents, or delete them.
- Library: Contains pre-built templates and starter agents you can use as a foundation.
- Knowledge Bases: Where you upload and manage custom training data.
- Integrations: Connect external services like HubSpot, Slack, or WhatsApp.
- Settings: Configure account preferences, billing, and team management.
Creating Your First AI Agent
Click the “Create Agent” button. Botpress offers several starting points:
- Blank Agent: Start from scratch with full control.
- From Template: Choose from pre-built agents for customer support, lead generation, FAQ handling, and more.
- Import Agent: Upload an existing Botpress agent configuration.
For beginners, selecting a template is highly recommended. Templates include pre-configured flows, responses, and knowledge base examples that you can customize. Give your agent a descriptive name and select your preferred language. Once created, you will enter the AI Agent Studio.
Key Features
AI Agent Studio
The AI Agent Studio is the heart of Botpress. It provides a visual canvas where you design your agent’s behavior, conversation flows, and responses. The studio uses a node-based interface: you drag and drop nodes representing different actions (send message, ask question, execute code, handoff to human) and connect them to create logical conversation paths. This visual approach eliminates the need for coding, though developers can still inject custom JavaScript or API calls when needed.
The studio also includes a real-time preview panel, allowing you to test your agent as you build it. You can type sample questions and see how the agent responds, making iterative development fast and intuitive.
Autonomous Engine Powered by LLMs
Botpress integrates seamlessly with leading large language model providers, including OpenAI (GPT-4, GPT-3.5), Anthropic (Claude), Groq, and Hugging Face models. The autonomous engine allows your agent to handle open-ended conversations, understand context, and generate human-like responses without requiring explicit programming for every possible user input. This is a significant advancement over traditional rule-based chatbots, which break down when users deviate from expected paths.
You can configure which LLM provider to use, adjust parameters like temperature (creativity level), and set maximum token limits. The engine also supports system prompts, where you define the agent’s personality, tone, and behavioral guidelines.
Knowledge Bases
Knowledge bases allow you to inject domain-specific information into your AI agent. Instead of relying solely on the LLM’s general training data, you can upload documents (PDF, Word, TXT, HTML), website URLs, or directly paste text. Botpress processes this content and makes it available for the agent to reference during conversations.
For example, if you are building a customer support agent for a software company, you can upload your product documentation, FAQ pages, and troubleshooting guides. When a user asks a technical question, the agent will search the knowledge base for relevant information and generate an accurate, context-aware response. Knowledge bases can be updated at any time, and changes take effect immediately.
Human Handoff
No AI agent is perfect for every situation. Botpress includes a robust human handoff feature that detects when a conversation exceeds the agent’s capabilities or when a user explicitly requests human assistance. When triggered, the conversation is transferred to a human agent through the Botpress Inbox interface.
Human agents can see the full conversation history, including the AI’s responses, ensuring a seamless transition. Once the human resolves the issue, control can be returned to the AI agent or the conversation can remain with the human. This feature is essential for maintaining customer satisfaction while still benefiting from automation.
Tables for Data Storage
Tables allow your AI agent to store and retrieve structured data during conversations. You can define custom fields (text, numbers, dates, booleans) and use them to capture user information, order details, appointment times, or any other data relevant to your use case. Tables integrate directly with the studio, enabling you to create dynamic responses that reference stored data.
For instance, a booking agent can store user names, preferred dates, and service selections in a table. When the user returns, the agent can retrieve their previous selections and offer continuity. Tables can also be exported or synced with external databases through integrations.
Multi-Channel Deployment
Botpress supports deployment across a wide range of communication channels, including:
- WhatsApp (via WhatsApp Business API)
- Instagram (via Instagram Messaging API)
- Facebook Messenger
- Slack
- Telegram
- Web Widget (embeddable in your website)
- Custom API (for bespoke integrations)
Each channel has specific configuration requirements, but Botpress provides detailed guides and templates for each. Once configured, your agent behaves consistently across all channels, though you can customize responses per channel if needed (e.g., using WhatsApp-specific formatting).
Integrations with Business Tools
Botpress offers native integrations with popular business applications:
- HubSpot: Sync contacts, create tickets, and log conversations.
- Notion: Access and update databases directly from conversations.
- Jira: Create and update issues based on user interactions.
- Calendly: Schedule appointments without leaving the chat.
- Zapier: Connect to thousands of other apps through webhooks.
These integrations transform your AI agent from a simple conversational tool into a full-fledged automation engine that can execute real business processes.
How to Use Botpress: Step-by-Step Guide
Step 1: Define Your Agent’s Purpose
Before building, clearly define what your agent should accomplish. Common use cases include:
- Customer support (answer FAQs, troubleshoot issues)
- Lead qualification (gather contact information, assess needs)
- Appointment scheduling (check availability, book slots)
- Internal IT helpdesk (password reset, software access requests)
- E-commerce assistance (product recommendations, order tracking)
Write down the primary goals and the types of questions users are likely to ask. This will guide your configuration of the knowledge base, conversation flows, and LLM system prompt.
Step 2: Configure the LLM and System Prompt
In the AI Agent Studio, navigate to the Settings tab. Under LLM Configuration, select your preferred provider. For most beginners, OpenAI’s GPT-4 offers the best balance of accuracy and speed. Set the temperature to 0.7 for creative but focused responses.
In the System Prompt field, write instructions for your agent. For example:
“You are a friendly and helpful customer support agent for TechGadget Inc. You help users with product questions, troubleshooting, and returns. Always be polite and concise. If you cannot answer a question, offer to transfer to a human agent.”
The system prompt is critical because it defines the agent’s personality and boundaries. Spend time refining it based on testing.
Step 3: Build Your Knowledge Base
Go to the Knowledge Bases section from the dashboard. Click “Create Knowledge Base” and give it a name. You can add content in several ways:
- Upload Files: Drag and drop PDFs, Word documents, or text files.
- Website URLs: Enter a URL and Botpress will crawl and index the content.
- Manual Entry: Type or paste text directly.
- Q&A Pairs: Add specific questions and their correct answers.
After adding content, click “Train” to process the data. Training typically takes a few minutes. Once complete, your agent can reference this knowledge during conversations. You can create multiple knowledge bases for different topics (e.g., “Product Manuals,” “Shipping Policies,” “Troubleshooting”).
Step 4: Design Conversation Flows
Return to the AI Agent Studio. The canvas shows a starting node labeled “Entry Point.” From here, you build your conversation flow:
- Send Message Node: Use for greetings, information, or responses.
- Ask Question Node: Capture user input (text, number, choice, date).
- Condition Node: Branch the conversation based on user responses or data.
- Code Node: Execute JavaScript for complex logic or API calls.
- Handoff Node: Transfer to a human agent.
- Knowledge Base Node: Query the knowledge base and return results.
For a simple FAQ agent, connect an “Ask Question” node to a “Knowledge Base” node, then send the answer back to the user. For more complex flows, use condition nodes to route users to different paths (e.g., “If the user wants to return a product, show return policy; otherwise, show general FAQ”).
Step 5: Test Your Agent
Use the built-in Preview panel on the right side of the studio. Type sample questions and observe how the agent responds. Pay attention to:
- Is the agent understanding the intent correctly?
- Are answers accurate based on your knowledge base?
- Does the conversation flow logically?
- Is the tone appropriate?
Iterate on your flows and system prompt based on testing. This is the most important step for creating a reliable agent.
Step 6: Configure Human Handoff
Navigate to Settings > Handoff. Enable handoff and configure the trigger conditions:
- User requests human: Detect phrases like “talk to a person” or “agent.”
- Uncertainty threshold: Set a confidence level below which the agent transfers.
- Escalation after N failed attempts: If the agent cannot answer after multiple tries.
Assign human agents from your team. When a handoff occurs, the conversation appears in the Botpress Inbox, where your team can respond directly.
Step 7: Deploy to Channels
Go to the Channels tab in the studio. Each channel has its own configuration page:
- Web Widget: Copy the embed code and paste it into your website’s HTML.
- WhatsApp: Connect your WhatsApp Business API account and verify the number.
- Slack: Authenticate your Slack workspace and choose which channels the agent monitors.
- Messenger/Instagram: Link your Facebook page and configure permissions.
Test each channel after configuration to ensure the agent behaves as expected. You can customize responses per channel if needed.
Step 8: Set Up Integrations
Navigate to Integrations from the dashboard. Select the service you want to connect (e.g., HubSpot). Follow the authentication process, which typically involves logging into the third-party service and granting permissions. Once connected, you can use integration nodes in your flows. For example, a Calendly integration node can check availability and book appointments directly within the conversation.
Step 9: Monitor and Improve
Botpress provides analytics dashboards showing conversation volume, user satisfaction, handoff rates, and common topics. Regularly review this data to identify areas for improvement. Update your knowledge base with new information, refine your flows based on user behavior, and adjust the system prompt if the agent’s tone drifts.
Tips for Success
Start Simple and Scale Gradually
Resist the urge to build a complex agent with dozens of flows on your first attempt. Start with a narrow use case—perhaps answering five common questions—and ensure that works perfectly. Once you have a solid foundation, add more capabilities incrementally. This approach reduces errors and makes troubleshooting easier.
Invest Time in Your Knowledge Base
The quality of your agent’s responses is directly proportional to the quality of your knowledge base. Use clear, well-structured content. Break long documents into smaller, focused sections. Include multiple ways to phrase the same information (e.g., “How do I reset my password?” and “I forgot my login credentials”). Regularly update the knowledge base as your products or policies change.
Write a Strong System Prompt
Your system prompt is the agent’s personality and rulebook. Be explicit about what the agent should and should not do. Include examples of good and bad responses. Specify how to handle uncertainty (e.g., “If you don’t know the answer, apologize and offer to transfer to a human”). Test different phrasings to see which produces the best results.
Use Human Handoff Strategically
Do not treat handoff as a failure. It is a safety net that ensures customer satisfaction. Set conservative thresholds for handoff, especially when your agent is new. As the agent improves and handles more queries correctly, you can reduce handoff frequency. Monitor handoff transcripts to identify patterns where the agent consistently fails, and update your knowledge base accordingly.
Leverage Templates and Community Resources
Botpress has an active community and extensive documentation. Before building from scratch, browse the template library for agents similar to your use case. You can often adapt a template in minutes rather than building from zero. The community forum is also valuable for troubleshooting and discovering best practices.
Test Across All Channels
Each communication channel has unique characteristics. WhatsApp supports rich media but has strict message formatting rules. Slack allows threaded conversations. Web widgets can be styled to match your brand. Test your agent thoroughly on every channel you deploy to, as behavior may vary. Pay special attention to how the agent handles channel-specific limitations, such as character limits or unsupported data types.
Plan for Privacy and Compliance
If your agent handles personal data, ensure you comply with relevant regulations (GDPR, CCPA, HIPAA, etc.). Botpress offers data retention controls and encryption options. Configure your knowledge base to exclude sensitive information unless absolutely necessary. For highly regulated industries, consider keeping sensitive conversations within the human handoff flow rather than having the AI agent handle them.
Iterate Based on Real Conversations
The first version of your agent will not be perfect. Review actual conversation logs regularly.
Botpress AI Agent Platform
Build powerful AI agents with Botpress using the latest LLMs.