Table of Contents

How to Test Your Bot - Complete Guide 🧪

Dilyara Updated by Dilyara

Testing is a crucial part of building any chatbot 🏗️ Whether you're creating a simple lead capture flow or a complex automation with integrations, you'll want to ensure everything runs smoothly before your users interact with it!

This guide walks you through how to test your Landbot on the Web, WhatsApp, Facebook Messenger, and API Channel.

🌐 Testing a Web Bot

There are two main ways to test your Web bot during the building process:

1. Preview Mode: “Test this bot” Button

Landbot’s built-in Preview lets you instantly test your bot without leaving the Builder interface.

In the top-right corner of the bot builder, click “Test this bot" to open a draft preview of your bot in a modal window.

Any updates to the flow will reflect here once the changes are saved in the draft ✅

Ideal for quickly testing changes during development without publishing them and affecting live users 🧪

It's also recommended if you don't want to generate real conversations or impact analytics.

Note: Some features like Human Takeover cannot be tested with this option, you can test it with Share URL, as explained below.
2. Share the Bot via URL (Live Bot)

Once your bot is structurally ready, test it in a real web environment using the bot's public URL. To find the link, go to the Share > Share with a link section:

This method is best when you’re ready to test real-world behaviour, check integrations, or share the bot with teammates, clients, or stakeholders.

😉 Remember to publish the changes so they are reflected in the live version:

This is the live bot that end users would see, and it's helpful for testing how the bot behaves in its final environment - whether that's a standalone page or embedded in your website.

You can find the embed code in the Share > Embed into your website section:

Tip: Embed the bot into a staging page if you want to test the bot in a full website context (with styles, layout, etc.). Learn how to do it in this article.

✨ Testing an AI Web Agent

If you're building an AI web agent, the testing process is very similar to testing a traditional rule-based web bot.

There are two primary ways to test your AI Web Agent:

1. Test Button

While editing your AI agent, use the Test button located at the top-right corner of the Builder to interact with the assistant in a controlled environment.

How it works:

  • Click Test to launch a preview of the AI agent.
  • Ask questions, trigger fallback logic, and observe how it handles intents.
  • Validate whether the assistant understands user prompts and responds as expected.

✅ Best for: Real-time testing of AI behavior, context memory, fallback handling, and variable extraction.

Pro Tip: During testing, try intentionally vague or complex prompts to evaluate the agent’s ability to clarify and stay on task.

2. Share via URL or Embed

Once your AI agent is behaving correctly in Test mode, try it in a real-world environment using one of the two sharing methods:

🔗 Share URL

  • Navigate to the Share tab.
  • Copy the public link and open it in a browser.

🧩 Embed the Agent

  • From the same Share tab, grab the embed code to integrate the agent into your website.
  • Use this to test how the assistant feels in context—e.g., on a landing page or support section.

✅ Best for: Testing performance in real user environments, across devices and screen sizes.

Pro Tip: Use incognito mode or a different browser to simulate a new user session and verify how the AI agent handles first-time interactions.

💬 Testing a WhatsApp Bot

1. Using the “Test this bot” Button (No Integration Required)

With the WhatsApp Testing feature, you can test your bot without needing to connect your own phone number.

Note: This option is only available if you haven’t yet integrated your own phone number.

In the Builder section of your WhatsApp chatbot, you’ll see a "Test this bot" button in the top-right corner:

  1. Click on "Test this bot".
  2. You’ll be prompted to enter the phone number where you'd like to test the bot.
  3. After entering your number, you’ll receive a message from Landbot’s test number on WhatsApp - just open the app to start interacting with your bot.

✅ Ideal for quickly previewing your bot during setup.

2. Using Your Own Phone Number (Full Integration via Meta Cloud API)

Alternatively, you can test your WhatsApp bot by integrating your own phone number! This requires completing the setup process through the Meta Cloud API.

For a detailed step-by-step explanation on how to integrate your phone number, please refer to this documentation 👀

During the Trial period, you’ll have access to up to 100 conversations to test your WhatsApp integration. This gives you the chance to experience how your users will interact with your bot in a real-world scenario.

Once your number is integrated, any messages sent to it will be automatically handled by the connected bot — just like in a live production environment.

Note: After the trial ends, you’ll need to upgrade to a WhatsApp plan to keep using your integrated number and continue receiving user messages.

✅ Best option for end-to-end testing with your own audience.

✨ Testing an AI WhatsApp Agent

  1. You can easily test your AI WhatsApp Agent without needing to integrate your own phone number.

In the AI Agent configuration page, click the “Test this bot” button located in the top-right corner.

You’ll be prompted to enter the phone number where you’d like to receive the test message:

Once submitted, you’ll receive a WhatsApp message from Landbot’s testing number, allowing you to interact with the AI Agent directly and see how it responds in real time.

  1. In case you have already integrated your own WhatsApp number, you won't see the "Test this bot" button.
For a detailed step-by-step explanation on how to integrate your own phone number, please refer to this documentation 👀

To test your AI Agent, you will need to go to the Settings section of your WhatsApp Channel, and link the bot to the number:

Just choose your AI Agent, link the bot, and send a message to your WhatsApp number to start testing it:

📱 Testing a Facebook Messenger Bot

To test your chatbot on Facebook Messenger, you’ll first need to complete a setup involving a Facebook Page. Here’s how to get started:

🔧 Step 1: Create or Integrate a Facebook Page

Facebook Messenger chatbots must be connected to a Facebook Page - this is how Messenger identifies and displays your bot.

If you don't have any Facebook Page, you can check here more information on how to create it in Facebook 👀

🔗 Step 2: Integrate Your Facebook Page

Once your Page is set up, access Channels section, and integrate it with Landbot, following this process.

Here are the important details:

  • You must be an admin of the Facebook Page to integrate it.
  • Make sure the Page is published and Messenger is enabled in its settings.
  • Assign necessary permissions to your Facebook Page, as explained here.

🧪 Step 3: Link Your Chatbot to the Page

After integration, you can link your chatbot to your Facebook Page. Now, it will respond to messages sent to that Page through Messenger.

You can test the chatbot by:

  • Sending a message to your Page from another Facebook account
  • Using the “View as Visitor” option to simulate user experience
  • Inviting testers or team members to interact with the bot on your Page
You can check more details on testing Facebook Messenger bot here 👀

Once the setup is complete, any user who sends a message to your Page on Messenger will interact with your chatbot. Make sure to test all key flows, commands, and interactions.

🔧 Testing an APIchat bot

The only way to preview or test this channel is to integrate it with another platform.

To do this, you can make a web bot and then use the Jump To block to link up the APIchat bot with the web bot.

  1. In the Channels section, choose API and copy the API endpoint details.
  2. Use tools like Postman, cURL, or integrate with your own frontend/client to send a test payload.
  3. The bot will respond according to the structure of the request and your flow configuration.
For more information on how to create APIchat bot, please refer to this documentation 👀

Was this article helpful?

Builder Interface Tour

Getting started - build a bot

Contact