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 an agent 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
Goodbye block
Question blocks
Buttons block
Ask for a Name block
Ask for an Email block
Ask a question block
Ask for a Phone block
Ask for a date 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
Rating block
Question: URL block
Question: Yes/No block
Opinion scale 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
Landbot MCP and Plugin
What are the Landbot MCP and the Landbot Plugin?
How to get started with the Landbot Plugin
How to get started with the Landbot MCP
How to build, test and publish an agent with the Landbot MCP or the Landbot Plugin
How to fix common problems with the Landbot MCP and the Landbot Plugin
How to style your Landbot web chat with the Landbot Plugin or the Landbot MCP
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 add an Ask for a date block
- How the Ask for a date block works in a booking
- How to choose the date format
- How to compare dates in a Conditions block
- How to count the days between two dates
- How to show or hide the date picker
- How to limit which dates visitors can pick
- What happens when a visitor enters a date that isn't allowed
- Where the date is saved
- For WhatsApp
- For Facebook Messenger
- All Categories
- Build a bot
- Messages, Questions and Logic & Technical blocks
- Question blocks
- Ask for a date block
Ask for a date block
Updated
by Desirée M
- How to add an Ask for a date block
- How the Ask for a date block works in a booking
- How to choose the date format
- How to compare dates in a Conditions block
- How to count the days between two dates
- How to show or hide the date picker
- How to limit which dates visitors can pick
- What happens when a visitor enters a date that isn't allowed
- Where the date is saved
- For WhatsApp
- For Facebook Messenger
The Ask for a date block asks visitors for a date, lets them pick it from a calendar and saves it in a Field in the format you choose. Use it to book appointments, pick delivery dates, collect birthdays or schedule events.
You also decide which dates visitors can pick: any date, only past or future ones, your own date ranges, and which days of the week are closed.
How to add an Ask for a date block
Add an Ask for a date block from the output of the block that comes before it:
1️⃣ Drag from the block's output (the green arrow) to an empty spot on the canvas, or click the output.
2️⃣ Type Ask for a date in Search by name.
3️⃣ Select Ask for a date.
A new Ask for a date block asks "Select a date, please", shows the date picker, accepts any date and saves it as YYYY/MM/DD. It saves nothing until you pick a Field: the panel reminds you that "If a field is not set, the answer won't be saved".
How the Ask for a date block works in a booking
In this example, a dog grooming agent, Happy Paws, asks when the visitor would like to bring their dog Biscuit in. The salon is open Tuesday to Saturday, so the Ask for a date block takes Future dates only, leaves Include current date off, closes Sundays and Mondays, and saves the answer in @appointment_date as DD/MM/YYYY:

● A Tuesday to Saturday from tomorrow on, 22/10/2026: the date is sent, and the next message replies "Booked! 🛁 See you and Biscuit on 22/10/2026".
● Today, an earlier day, a Sunday or a Monday: greyed out in the calendar. Typed by hand, it can't be sent.

The Happy Paws question names the opening days itself ("We're open Tuesday to Saturday"), so visitors know why some days are greyed out before they open the calendar.
How to choose the date format
Pick the format in Format to save the date. The date is saved in the Field in this format, and visitors who type the date type it in the same one. Each option shows today's date in its format, so you can check it before you pick:
● YYYY/MM/DD (the default)
● YY/MM/DD
● DD/MM/YYYY
● DD/MM/YY
● MM/DD/YY
● MM/DD/YYYY
The date box shows the format as its placeholder, for example dd/MM/yyyy, and a day picked in the calendar fills the box in that format.
How to compare dates in a Conditions block
To compare dates in a Conditions block, save them as YYYY/MM/DD and compare two Date Fields, not a Field with a date typed into the condition. Save the second date with a Set a field block right before the Conditions block.
In this example, the Happy Paws agent gives a free festive bandana with every December bath, so its appointment question saves dates as YYYY/MM/DD. A Set a field block saves 2026/11/30 in @festive_start, and the Conditions block checks whether @appointment_date is GREATER THAN @festive_start:

● Green output (true), 2026/12/15: "A December bath! Biscuit gets a free festive bandana 🎄"
● Red output (false), 2026/11/14: the conversation goes straight on to "Anything else?".

Learn more in Conditions block II (with Dates, Usage and Agents variables).
How to count the days between two dates
To count the days between two dates, save both as YYYY/MM/DD and subtract them in a Code block placed after the second date question.
In this example, the Happy Paws agent also runs a dog hotel. It saves the check-in in @check_in and the check-out in @check_out, and its Code block saves the number of nights in @nights with one line:
this.setCustomData({nights: Math.round((new Date("@{check_out}") - new Date("@{check_in}")) / 86400000)});
● Check-in and check-out, 2026/10/23 and 2026/11/02: "That's 10 nights at the Happy Paws hotel 🏨"

@nights is available only after the visitor's next answer, so ask something before you use it, such as "From @check_in to @check_out, is that right?" with a Yes button.How to show or hide the date picker
Show date picker is on by default: visitors click the date box, a calendar opens, and the day they click fills the box. Turn it off when you'd rather have visitors type the date.
The available dates still apply when the date picker is off: a date outside them can't be sent. What visitors lose is the calendar that shows them which days are open. So when the date picker is off, say the rules and the format in the question, for example "Type a Tuesday to Saturday from tomorrow on, as dd/mm/yyyy".
How to limit which dates visitors can pick
Choose which dates visitors can pick in Set available dates:
● All (the default): any past or future date.
● Past dates only: days before today. Tick Include current date to add today.
● Future dates only: days after today. Tick Include current date to add today.
● Custom range: only the date ranges you set.
Dates that aren't available are greyed out in the calendar, and they can't be sent when typed.
In this example, the Happy Paws agent also asks for Biscuit's birthday, so it can send a treat that week. That Ask for a date block takes Past dates only with Include current date ticked:
● Today or an earlier day, 19/10/2026 (today): sent and saved in @dog_birthday.
● A future day, 25/12/2026: greyed out in the calendar, and it can't be sent.
How to set custom date ranges
To set custom date ranges, choose Custom range in Set available dates, then pick a From and a To date. Click + to add another range and the bin icon to remove one. Leave To as No end date for a range that never ends.

In this example, the Happy Paws agent takes bookings for its November spa weeks and again from mid-December on:
● First range: From 03/11/2026 To 28/11/2026.
● Second range: From 15/12/2026 with No end date, so every later date stays open.
The calendar opens on the first month with an available day. The closed Sundays and Mondays stay greyed out inside the ranges.

How to close days of the week
To close days of the week, click them in Disable specific days: dark circles are days visitors can pick, and light ones are closed. Closed days work with every Set available dates option, like the Happy Paws Sundays and Mondays inside Future dates only and inside its custom ranges.
What happens when a visitor enters a date that isn't allowed
On Web, a date that isn't allowed can't be sent: the send arrow stays grey and Enter does nothing, so the visitor changes the date and tries again. That covers unavailable dates, closed days and dates in another format, such as 2026/10/22 when the format is DD/MM/YYYY. No message appears in the chat.
Where the date is saved
The date is saved in the Field you pick in Save user answer in the field: click the box, type a name and click Create new field, or pick an existing Date Field. Use the Field anywhere later in the flow, like @appointment_date in the Happy Paws "Booked!" message.
To change a date, such as adding days to it, use Formulas - Date.
For WhatsApp
On WhatsApp, visitors type the date: the Ask for a date block shows no calendar. The block checks the answer against Format to save the date and, when the answer doesn't match, sends an error message and asks again. The conversation goes on only once the visitor sends a valid date.
Set available dates doesn't apply on WhatsApp: the block checks the format only. Say the format in the question, and the dates you take if they matter, for example "Which day would you like to come in? Please type it as DD/MM/YYYY."
To see which other blocks work on WhatsApp, read the WhatsApp bots - Feature Compatibility Guide.
For Facebook Messenger
On Facebook Messenger, visitors type the date: the Ask for a date block shows no calendar. The block checks the answer against Format to save the date and, when the answer doesn't match, sends an error message and asks again until the date is valid.
In this example, a Facebook Messenger agent asks for a date "in the format DD/MM/YYYY":
● Wrong format, 2020/02/13: "Please try again! Tell me a date in the format DD/MM/YYYY."
● Right format, 13/02/2020: the date is accepted, and the conversation goes on.

Because visitors can't go on until they send a valid date, say the format in the question every time.