Getting Started with Landbot
Introduction to Landbot π
Creating & Setting Up Your Account π₯
How to create your Landbot account, set it up and invite teammates
Common reasons for not receiving account activation email
Trial period
Account Settings
Build Your First Bot π οΈ
Builder Interface Tour
How to build a bot in Landbot
Managing Data in Your Agent: A Guide to Using Fields
Languages and Translations in Landbot
Organize your flow with Bricks
Using Flow Logic in Landbot
How to Test Your Bot - Complete Guide π§ͺ
How to "debug" (troubleshoot) your bot's flow to spot possible errors (for non coders)
Starting Point
Build it for me!
Launch and Share Your Bot π
Build a bot
Bot's Settings
Bot General Settings
Web bots: Second Visit Settings
Custom System Messages
Hidden Fields (Get params / UTMs from url and use it as variables)
Landbot native SEO & Tracking tools
Typing Emulation (Message Delay)
Messages, Questions and Logic & Technical blocks
Messages
Media Block
Media block
How to display images with a variable URL source
How to embed a .gif file inside a message
Different ways to embed Videos in Landbot
Display video and hide button to continue until video has ended
Send a Message block - Simple Message
Goodbye block
Question blocks
Date Block
Scale Block
Buttons block
Ask for a Name block
Ask for an Email block
Ask a Question block
Ask for a Phone block
Forms block
Multiple-Choice Questions with the Buttons Block
Question: Address block
Question: Autocomplete block
Question: File block
Ask for a Number Block
Question: Picture Choice block
Question: Rating block
Question: URL block
Question: Yes/No block
Logic & Technical blocks
Code Blocks
Dynamic Data
How to Use the Dynamic Data Block in Landbot
Get the array's index of the user selection and extract information from array
Formulas
How to Perform Basic Calculations
Get started with the Formulas block
Formulas - Regex
Formulas - Date
Formulas - String
Formulas - Logical
Formulas - Math
Formulas - Object
Formulas - Comparison
Formulas - Array
Persistent Menu
Trigger Automation
Webhook
Landbot System Fields: Pre-created fields
Set a Field block
Any of the above Output
Global Keywords π
Keyword Jump
Lead Scoring block
Jump To block
How to split bot traffic with the A/B Test block
Conditions block
Conditions block II (with Dates, Usage and Agents variables)
Close Chat block
How to ask a question based on a variable not being set (empty URL params)
Business Hours block
Custom Goals
Inactivity Trigger block
Share & Embed
Redirect Users
How to redirect visitors to a URL (web only)
How to add a Click-to-Call/Email/WhatsApp button
Redirect User Based on Language Input (DeepL)
Generate a URL that has variables from user answers
Popup on Exit Intent
Share
Customized Embed Actions
How to redirect user to another url in your site with Livechat open to continue conversation
How to Detect Visitors Browser
Customize and embed your WhatsApp Widget
Modifying Embed Size
Detect if bot was opened
Customized Behavior in Mobile Browsers
Load script and display bot on click button
Launch Bot On Exit Intent
Display Bot During Business Hours Only (Livechat & Popup)
Open / Close a Web bot (embedded)
Launching a bot depending on browser language
How to pass WordPress logged in user data to Landbot
Set the flow depending on the url path (for embedded landbots)
How to launch a Landbot by clicking a button
Open LiveChat bot as soon as page loads
Detect if a visitor is on Mobile/Tablet or Desktop
Embed
How to embed your agent into your website
Embed Landbot in an iframe
Landbot in Wix
Landbot in your web with Google Tag Manager
Landbot in Webflow
Embed in Sharetribe
Landbot in Shopify
Embedding Landbot in Carrd
Landbot in Wordpress
Landbot in Squarespace
Customizing the Proactive Message
Design section (web bots)
Verification & Security
Validate phone number with SMS verification (with Vonage Verify)
Cookie consent banner (full page / full page embed)
Add Captcha Verification (Non-Embedded Bots)
Bricks
How to disable a bot
Account Settings and Billing
Billing
Privacy and Security
Teammates
Startup Discounts
NGOs and Educational Organizations Discount
AI in Landbot
Landbot AI Agent
AI Agent - Interactive components
AI Agent block
AI Agent Setup - Best Practices
Tips to migrate from old AI Assistants to AI Agents
How to Create Custom Instructions for a Landbot AI Agent
AI Agent In Action - Live Implementation Example
Capture, generate and use data with AI Agents
Structuring your AI Agent Knowledge Base
Custom AI Integrations
Create a JSON format response from OpenAI in WhatsApp
Responses API
Connect OpenAI Assistant with Landbot
AI in WhatsApp
How to build a FAQ chatbot with GPT-3
GPT-4 in Landbot
OpenAI
Prompt Engineering for GPT-3
Build a Customer Service Bot with ChatGPT and Extract Information
Google Gemini in Landbot
Build a Chatbot with DeepSeek
AI Task block Overview
Integrations with Landbot
Native Integrations
Airtable
Airtable integration block
Get data filtered from Airtable with a Brick- Shop example
20 different ways to GET and filter data from Airtable
How to add/update different field types in Airtable (POST, PATCH & PUT)
How to Create, Update, Retrieve and Delete records in Airtable (POST, PATCH, GET & DELETE)
Get more than 100 items from Airtable
Insert Multiple Records to Airtable with a Loop
How to Get an Airtable Token
Advanced filters formulas Airtable block
Airtable usecase: Create an event registration bot with limited availability
Update Multiple Records in Airtable Using a Loop
Reservation bot with Airtable
Calendly
Dialogflow
Dialogflow & Landbot course
Dialogflow & Landbot intro: What is NLP, Dialogflow and what can you do with it?
Dialogflow & Landbot lesson 1: Create your first agent and intent in Dialogflow
Dialogflow & Landbot lesson 2: Get the JSON Key
Dialogflow & Landbot lesson 3: Setting up of Dialogflow in Landbot
Dialogflow & Landbot lesson 4: Training phrases and responses for a FAQ
Dialogflow & Landbot lesson 5: Entities and Landbot variables
Dialogflow & Landbot lesson 6: Redirect user depending on Dialogflow response parameters (intent, entities and more)
Integrations > Dialogflow Block
How to extract parameters from Dialogflow response with Formulas
Dialogflow Integration Dashboard
Dialogflow in Unsupported Languages (& Multilingual)
Dialogflow - How to get JSON Key
Google Sheets
Google Sheets Integration: Insert, Update and Retrieve data
How to use Google Sheets to create a simple verification system for returning visitors
Google Sheets integration (new version)
How to give unique Coupon Codes (with Google Spreadsheets)
How to use Google Spreadsheet as a Content Management System for your bot
HubSpot
MailChimp
Salesforce
Segment
SendGrid
Send an Email
Sendgrid Integration Dashboard
How to create a custom SendGrid email - (Custom "from" email)
Slack
Stripe
Zapier
How to Configure the Landbot and Zapier Integration Using the Zapier Block
Zapier Integration Dashboard
How to insert a row to Google Spreadsheet by Zapier
How to generate a document with PDFMonkey by Zapier
Send WhatsApp Templates from Zapier
How to Send Emails from Your Landbot Using Gmail via Zapier
Get Opt-ins (Contacts) from Facebook Leads using Zapier
How to extract data from an external source with Zapier and use it in Landbot
Zapier trigger
How to complete a digital signature flow by Zapier
Make a survey with Landbot and display the results in a Notion table using Zapier
Custom Integrations
ActiveCampaign
Google Calendar
Google Fonts
Google Maps
Embed Google Maps
Google Maps API Key for Address block
Extract Data With Google Maps Geocoding API
Calculate Distances With Google Maps API
Google Meet
IFTTT
Integrately
Intercom
Make
Connecting MySQL with Make.com (formerly Integromat)
Send WhatsApp Message Template from Make
Make Integration With Trigger Automation Block
How to send an email through Sendinblue by Make.com (formerly Integromat)
Get Opt-ins (Contacts) from Facebook Leads using Make
How to extract data from an external source with Make.com and use it in Landbot
OCR
Pabbly
Paragon
Pipedream
PDF Monkey
Store Locator Widgets
Xano
Zendesk
Send an Email with Brevo
Shopify in Landbot: Get Order Information
Send Leads to Zoho CRM
Landbot + n8n Integration: How to Connect Using the n8n Block
How to Integrate Landbot with n8n using Webhooks
WhatsApp Channel
Getting started!
WhatsApp Testing
Build a WhatsApp Bot - Best Practices and User guide
Build a WhatsApp Bot - Best Practices for Developers
Types of Content and Media you can use in WhatsApp πΌ
1. WhatsApp Article Directory
WhatsApp Integration & Pricing FAQ
Adding & Managing your WhatsApp Channel
Meta Business Verification - Best Practices π¬π§
WhatsApp Number Deletion (WA Channel management)
Adding a WhatsApp number to your account
WhatsAppβs Messaging Policy: New Accepted Industry verticals
Meta processes guide: Meta Business Verification, Official Business Account (OBA) requests, Appeals
Existing WhatsApp Number Migration
Key Insights for Migrating to WhatsApp Business API Cloud
How to's, Compatibility & Workarounds
WhatsApp bots - Feature Compatibility Guide
WhatsApp: Show a Different Flow on Return Visits
WhatsApp - Get user out of error message loop
How to do Meta ads conversion tracking in WhatsApp bot using the Conversion API
Getting Subscribers: Opt-in, Contacts
How to get Opt-ins (Contacts) for your WhatsApp π
WhatsApp Quality Rating and Message Delivery
Opt-In/out block for WhatsApp π
Opt-in Check Block
Contact Subscribe Block: Manage Opt-ins and Audiences
New Contacts: Import, Segment, and Organize Easily
WhatsApp Channel Settings
Parent Bot/Linked Bot - Add a main bot to your WhatsApp number
WhatsApp Channel Panel (Settings)
Growth Tools for WhatsApp
Messaging and contacting your users
WhatsApp Campaigns π
WhatsApp's Message Templates
Audience block
WhatsApp Marketing Playbook: Best Practices for Leadgen
WhatsApp Error Logs: Troubleshooting guide
Audiences
WhatsApp for Devs
How to calculate the number of days between two selected dates (WhatsApp)
Creating a Loop in WhatsApp
Recognise the users input when sending a Message Template with buttons
Trigger Event if User Abandons Chat
Calculate Distances in WhatsApp
Send Automated Message Templates based on Dates
How to Let Users Opt-Out of Your WhatsApp Messages via API
reply from Slack: How to create an integration to allow agents reply WhatsApp users from Slack (with Node JS)
Set Up a Delay Timer in Bot
Notify Teammates of Chat via WhatsApp
Native blocks for WhatsApp
Other Channels - Messenger and APIChat
Facebook Messenger
The Facebook Messenger Ultimate Guide
Types of content you can use in Messenger bots πΌ
How to Preview a Messenger bot
API Chat (for Developers)
Human Takeover & Inbox
Metrics and Data Management
For Developers & Designers
JavaScript and CSS
CSS and Design Customizations
Design Customizations
Advanced (Custom CSS & Custom JS)
Components CSS Library Index
Background Class CSS
Identify Blocks CSS
Buttons Class CSS
Header Class CSS
Media Class CSS
Message Bubble Class CSS
Miscellaneous Classes CSS
CSS Customization Examples: "Back to School" Theme
Get started guide for CSS Design in Landbot
CSS Customization Examples: Call To Action: WhatsApp
CSS Examples: Lead Gen
CSS Customization Examples: "Translucid"
CSS Customization Examples: "Minimalist" Theme
Dynamic Data CSS
Form Block CSS
CSS for Typewriter Effect
CSS Customization Examples: Carrd Embed Beginner
Dynamically Change a Bot's Background
Proactive Message Customizations with Javascript and CSS
Landbot v3 - Web CSS - RTL
CSS Customization Examples: Video Bubble
Dynamically Change Any Style
CSS Customization Examples: CV Template
Change Landbot custom CSS dynamically from parent page onload
Widget/Bubble Customizations with Javascript and CSS
JavaScript
How to change Avatar dynamically
Javascript in WhatsApp
Landbot JavaScript Integration
Different ways to format numbers with JS
How to display an HTML Table and a List in Landbot v3 web
Trigger a Global Keyword with JS (web v3)
Create Dynamic Shopping Cart with JS and CSS
Add a Chart (with Chart JS library) in your Landbot
Different ways to format numbers with JS (WhatsApp)
Pop up modal to embed third party elements
Landbot API
Send WhatsApp Messages with Landbot API
How to "send" a user to a specific point in the flow with Javascript and with the API
APIs
Get Opt-ins (Contacts) using Landbot API
MessageHooks - Landbot Webhooks
Resume flow based on external process with Landbot API (Request, Set, Go)
Tracking
Google Analytics - Track Events (Not embedded)
Google Analytics - Track Events (Embedded)
Meta Pixel - Track Events (only Embedded)
How Track Google Analytics Events in Landbot with Google Tag Manager (GTM)
Google Adwords - How to track Google Adwords in Landbot
Set a timer to get the time spent during the flow
Workarounds and How To's
Workflows
How to build an event registration Landbot (to be used in one screen by many attendees) (web only)
How to let user select a time of booking (with a minimum 45 minutes notice)
Send Files Hosted in Landbot to Your Google Drive with Make
Two-Step Email Verification
Fixing Web Bot Loading Issues for iOS Devices in Meta Campaigns with Disclaimers
Progress Bar Workaround
Skip Welcome Message
How to Add User Verification to Your Chatbot
How to set up questions with a countdown
HTML Template for Emails
Creating a Simple Cart in WhatsApp
Creating Masks for User Input (2 examples)
More Topics
Table of Contents
- How to open the AI Agent block setup
- How to build an agent with Build it with AI
- How to change your instructions with Edit it with AI
- What you can set in the Configuration section
- What to put in your AI Agent's Knowledge Base
- How to write your Agent Instructions
- How to collect and store data with your AI Agent
- How to add Interactive components to your agent
- How Outputs end the AI conversation
- What users see while the agent is writing a reply
- How to test your AI Agent
- How to troubleshoot an AI Agent
- All Categories
- AI in Landbot
- Landbot AI Agent
- AI Agent block
AI Agent block
Updated
by Jonathan Goodfellow
- How to open the AI Agent block setup
- How to build an agent with Build it with AI
- How to change your instructions with Edit it with AI
- What you can set in the Configuration section
- What to put in your AI Agent's Knowledge Base
- How to write your Agent Instructions
- How to collect and store data with your AI Agent
- How to add Interactive components to your agent
- How Outputs end the AI conversation
- What users see while the agent is writing a reply
- How to test your AI Agent
- How to troubleshoot an AI Agent
The AI Agent block adds an AI-driven conversation to your flow. The agent follows the instructions you write, answers questions using a Knowledge Base you provide, collects information into Fields, and hands the conversation back to your rule-based flow when one of your Outputs is triggered.
π¬ Compatible with Web, WhatsApp, and Facebook Messenger.
π The AI Agent block is available on all paid plans. The AI Agent block is not available on the Sandbox plan.
How to open the AI Agent block setup
Add the AI Agent block to your flow and click it to open the setup pop-up. Every section described below lives inside that pop-up.

How to build an agent with Build it with AI
Build it with AI generates a complete Agent Setup from a plain-language description of what you want the agent to do. Describe the agent in the Description section, or choose one of the pre-set templates, then click Generate.
The Description section accepts up to 1,000 characters.
β οΈ Build it with AI overwrites the entire Agent Setup. Any changes you already made to the agent are replaced.

How to change your instructions with Edit it with AI
Edit it with AI updates your existing Agent Instructions from a description of the change you want, so you do not have to rewrite the full prompt. Describe the change and the AI adjusts the instructions you already have, adding new behaviors, improving existing ones, or making them clearer.
What you can set in the Configuration section
The Configuration section controls how the agent runs. You can set the following:
β AI Model β select the model the agent uses
β Text Input visibility β show or hide the text input when the agent uses Interactive components
β Custom Error Message β the message the user sees when the agent hits a technical problem, such as a failure connecting to the AI tools in the back end
β Time Context β give the agent the current date and time, and select the timezone it uses
β Pre-conversation context β pass the last 5 messages exchanged between the agent and the user, so the agent takes them into account when answering

What to put in your AI Agent's Knowledge Base
The Knowledge Base holds the information your agent consults when a user asks a question. Click Add Knowledge and choose Text, File, or URL. Choosing URL lets the agent scrape a website to gather its information.
Include in your Knowledge Base:
β Company or service-specific knowledge
β Common FAQs and their answers
β Detailed information the agent should know about your business
β οΈ Do not put behavior instructions in the Knowledge Base. The Knowledge Base holds information the agent consults; how the agent should behave belongs in Agent Instructions.
The Knowledge Base has the following limits:
β Up to 200,000 characters of text added directly, or uploaded as a document
β Up to 200,000 characters of a website's HTML when scraping a URL
β Accepted file formats: PDF, DOCX, TXT, MD, RTF
β οΈ The Knowledge Base reads text only. The agent does not read information contained in images or graphics, so anything shown only in a picture, chart, or screenshot is invisible to it.
After uploading a source, click it to see exactly how the content looks to the agent, and edit it if necessary.

For guidance on structuring the documents you upload, see how to write documents for the AI Agent Knowledge Base.
How to keep a scraped URL up to date
A URL source can refresh itself on a schedule, so the agent answers from the current version of the page. Open the URL source and toggle Refresh automatically, then choose Daily, Weekly, Biweekly, or Monthly.
How to write your Agent Instructions
Agent Instructions define how your agent behaves and are the core of the AI Agent setup. Effective instructions cover four areas. The examples below are for a lead generation agent at an English language academy:
β Behavior guidelines β how the agent interacts with users. Example: "Act as a lead generation agent for Brighton English Academy."
β Response style β how the agent answers. Example: "Maintain a formal, polite, professional tone throughout the chat."
β Edge case handling β how the agent manages unusual situations. Example: "If the user asks about a course that is not available, give them a list of the available alternatives taken from the Knowledge Base."
β Information capture β what data to gather and how. Example: "Gather the course the user is interested in (Business English, English for Beginners, Cambridge English)."
Information capture works together with the Store Data section: Store Data defines the Fields and their descriptions, while your instructions tell the agent which data to collect and how to collect it. An agent with Fields configured but no instruction to collect them will not collect them.
For a full guide to writing instructions, see rules to create instructions for a Landbot AI Agent.
How to use existing Fields in your instructions
The Add Fields button inserts a Field your flow already collected into your instructions, so the agent can use that value. For example, if you collected the user's name earlier in the flow, add that Field to your instructions and the agent can address the user by name. Select the Field from the drop-down list to add it.

How to collect and store data with your AI Agent
The Store Data section defines what information the agent collects from users and the Fields where that information is saved. Click Add Data, then give the Field a name and a Field Description explaining exactly what the data is.
The Field Description tells the agent what it is looking for, so write it as a description of the data rather than a label. To make capture reliable, also instruct the agent to collect that data in the Agent Instructions section, with examples of what the data looks like.
π An AI Agent can collect up to 20 Fields.

How to create Fields from a template
The Use Templates button generates Fields and descriptions from pre-set options, with templates for contact information, lead qualification, and real estate information.
For a detailed guide, see capture and use data with AI Agents.
How to add Interactive components to your agent
Interactive components are elements such as buttons and cards that the agent displays in the conversation instead of plain text. Ask the AI to create them in the Interactive components section.
Turning on Text Input visibility in the Configuration section lets the user type a message or use an Interactive component, rather than only choosing a component.
For setup details, see AI Agent interactive components.
How Outputs end the AI conversation
An AI Agent runs in a conversational loop, and the user stays in that loop until one of your Outputs is triggered. Each Output defines a condition that ends the AI conversation and passes the user to the next block in your rule-based flow.
For example, to end the AI conversation when the user asks to speak to a person, create an Output for that condition. The Output then appears on the AI Agent block in your flow, where you connect it to the block that should run next β a Human Takeover block, in this case.
Once an Output condition is met, the conversation transfers to the block you connected it to, which is how an AI Agent hands off to APIs, CRM systems, or the rest of your automated flow.
β οΈ The AI Agent has no knowledge of what the next block does. Write your Output as an instruction to end the chat, not a description of what happens afterward β if the next block sends an email, do not mention the email in the Output.
What users see while the agent is writing a reply
Users see the message "Thinkingβ¦" while the agent composes a reply, instead of the three dots used elsewhere in the conversation. The message tells the user the agent is working on a response and the conversation has not stalled.
You can change this message to match your brand voice from the Custom System Messages section in your account.
How to test your AI Agent
Test an AI Agent the same way you test any other agent: publish it and use Share with a Link from the Share section for a Web agent, or one of the WhatsApp testing options for a WhatsApp agent. Testing shows both whether the agent answers correctly and whether the Fields you configured are actually being saved, which you can check in the Analyze section.
When testing, check all four of the following:
β Data collection β the agent captures information exactly as your instructions specify
β Agent responses β replies follow your instructions and the information in your Knowledge Base
β Outputs β the agent exits at the right moment and transfers to the correct block
β Integration β collected information is available to the rest of your rule-based flow and any connected systems

How to troubleshoot an AI Agent
Start by reading the conversation itself. The AI Analysis part of the Analyze section holds transcripts of your AI chats, which show what the agent was actually asked and how it responded.
Your AI Agent is not collecting information
An agent collects data only when the Agent Instructions tell it to, even if the Fields exist in Store Data. Check that your instructions include examples of how the information should be collected and categorized, and that each Field in Store Data has a description that matches what the instructions ask for.
Your Outputs are not working
Check that each Output on the AI Agent block is connected to the right block in your flow, and that its condition is clearly defined and reachable given the rest of your instructions. An Output with a condition the conversation never satisfies never triggers.
Your AI Agent is not using the Knowledge Base
Check that the uploaded content is text, correctly formatted, and detailed enough to answer the question being asked β content that exists only inside an image is not read. Then check that your instructions tell the agent when and how to use the Knowledge Base.
For more on AI Agents, see the AI Agent guides.