Create your bot
Basics - Essentials to build a bot
Variables in Landbot - Getting Started
Landbot system Variables
Builder's keyboard shortcuts and mechanics! π
Builder Interface
Supported Browsers
Guidelines π 5 best practices for chatbot design in Landbot π€
How to "debug" (troubleshoot) your bot's flow to spot possible errors (for non coders)
Build a bot
Blocks and flow operations
AB Test block (randomize flow)
Buttons block
Buttons block
Default Output Explained
Welcome Message
How to open new a URL in another tab (window)
How to set up Multiple Choice questions
Chat with humans
Code Block (Javascript)
Conditions block
Conditions block
Conditions block II (with Dates, Usage and Agents variables)
How to ask a question based on a variable not being set (empty url params) (v3)
Flow operations
Global Keywords π
Keyword Jump
Keyword Options π Assign keywords to buttons (WhatsApp and Facebook)
Jump To block
Persistent Menu
Formulas block
Get started with the Formulas block
Formulas - Comparison
Formulas Blocks Dashboard
Formulas - Array
Formulas - Date
Formulas - Object
Formulas - Logical
Formulas - Math
Formulas - Regex
Formulas - String
Goals block
Goodbye block
Media Block
Multi-Question block (Create a Form)
Note block
Question blocks
Question: Address block
Question: Autocomplete block
Question: Date block
Question: Email block
Question: File block
Question: Name block
Question: Number block
Question: Phone block
Question: Picture Choice block
Question: Rating block
Question: Scale block
Question: Text block
Question: URL block
Question: Yes/No block
Send a Message block
Send an Email block
Set Variable block
Bricks
Create Bricks
Brick Workarounds
Bricks Workarounds (ready to use)
How to link your Calendly account and prepare your agenda
Age Calculator Brick Workaround
Get a timestamp according to a defined TimeZone
Simple cart v0.2
How to extract data with Google Maps API and Calculate Distances
How to set the flow according to Open/Closed Business Hours
How to avoid visitors selecting specific days of the week
Bot Settings
Chats - Livechat and Human Takeover
Design (bots for Web)
Share & Embed
Integrations with Landbot
ActiveCampaign
Airtable
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
Automate.io
Calendly
Dialogflow
Integrations > Dialogflow Block
How to extract parameters from Dialogflow response with Formulas
Dialogflow Integration Dashboard
Dialogflow - How to get JSON Key
External API REST
Dynamic Data (Arrays)
How to TEST your Http Request (Webhook block)
Webhook
Webhook Blocks Dashboard
How to POST, GET (and more) with Landbot
Facebook Pixel
Google Analytics
Google Adwords
Google Cloud Functions
Google Maps
Google Sheets
Google Sheets (Insert, Update and Get data)
How to use Google Sheets to create a simple verification system for returning visitors
How to Upload Document & store link
Add a timestamp to a Google Spreadsheet
How to give unique Coupon Codes (with Google Spreadsheets)
Google Sheets Integration Dashboard
How to insert a new row with data and formulas in Google Sheets
How to use Google Spreadsheet as a Content Management System for your bot
Google Tag Manager
GTM - How Track Google Analytics Events in Landbot with Google Tag Manager
Landbot in your web with Google Tag Manager
Hubspot
IFTTT
Integromat
How to upload a file to Google Drive using Integromat
Integromat Automation Integration
How to extract data from an external source with Integromat and use it in Landbot
Integrately
Nexmo
Mailchimp
Pabbly
Paragon
PDF Monkey
Pipedream
Salesforce
Sendgrid
Slack
Stripe
Squarespace
Sharetribe
Shopify
Webflow
Wordpress
Zendesk
Zapier
Account Settings and Billing
Billing
Teammates - Add extra agents (seats) to your Account
Subscription Section (v3)
Payment FAQ π³
Fair Use Policy
Account Settings
Privacy and Security
Landbot Channels - Whatsapp, Messenger and APIChat
WhatsApp integration
The Ultimate WhatsApp Guide π¬π§
Facebook Business Verification - Best Practices π¬π§
Parent Bot/Linked Bot (WhatsApp) π€
WhatsApp Testing Section π§ͺ
Opt-in, Templates and Campaigns
What is the Opt-in process? βοΈ
How to get Opt-ins (Subscribers) for your WhatsApp π
WhatsApp Opt In Template β
WhatsApp Campaigns π
HSM Templates for Whatsapp π¬
WhatsApp Bot Creation
Creating bots for WhatsApp π
How to preview WhatsApp and Messenger bots
Types of content you can use in WhatsApp πΌ
How to capture and use the first user's interaction (input) in Whatsapp/Messenger
How to direct a user through a different bot flow on their second visit (for WhatsApp/Messenger)
Unblock user of error message loop and redirect to restart bot
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)
How to create an API chat bot and set up the Hook Url
Building a Slack APP Bot with Landbot APIChat and Node JS
Build a Telegram Bot with Landbot APIChat and Node JS
Duplicating bots
Metrics and Data Management
Metrics Section
How to export the data from your bots
...βΆ, π, π― ways to analyze your data π
Bot's Analyze Section
For Developers & Designers
CSS and Design Customizations
Dynamic Customizations
Embed Customizations
Open LiveChat bot as soon as page loads (3 ways)
How to launch a Landbot by clicking a button
Modifying Embed Size
How to embed a pop bot with automatic load and button
How to trigger events and/or pass values from Landbot to the container site
How to "send" a user to a specific point in the flow with Javascript and with the API
Change Landbot custom CSS dynamically from parent page onload
Design Customizations
Customizing the bubble/widget (Livechat & Popup)
How to use Google Fonts in Landbot
Hide time stamp (under avatar)
Detect if a visitor is on Mobile/Tablet or Desktop
Landbot v3 - Web CSS - RTL
How to remove Landbot branding
How to hide elements in the Bot design
Customized display in the bot
Add a Chart (with Chart JS library) in your Landbot
How to display an HTML Table and a List in Landbot v3 web
Pop up modal to embed third party elements
Progress Bar Workaround
Different ways to embed Videos in Landbot
How to embed a .gif file inside a message
Display video and hide button to continue until video has ended
Components CSS Library
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
Get started guide for CSS Design in Landbot
CSS Customization Examples: "Back to School" Theme
CSS Customization Example: "Lead Gen"
CSS Customization Examples: "Minimalist" Theme
Landbot APIs
Javascript and SDK
Workarounds and How To's
Building Tips & How to's
How to add a Click-to-Call/Email/WhatsApp button
Send variables from your page (the container site) to your embedded Landbot
How to build an event registration Landbot (to be used in one screen by many attendees)
How to redirect user to another url in your site with Livechat open to continue conversation
How to let user select a time of booking (with a minimum 45 minutes notice)
Get Index Array selection Whatsapp
Get the array's index of the user selection and extract information from array
How to encode a variable
How to calculate the number of days between two selected dates
How to access keys and values, in object variables
How to redirect visitors to a URL (web only)
Workarounds & Codes
Proactive message on mobile
Different ways to format numbers with JS
How to not display Proactive Message to repeating Visitors
Random 4 digits Number
Set the flow depending on the url path (for embedded landbots)
Trigger a Global Keyword with JS (web v3)
Generate a URL that has variables from user answers
How to set up questions with a countdown
More Topics
Introducing a new Landbot Community π
How to migrate your bot from Landbot v2 (legacy) to Landbot v3
Introducing Landbot 3! π¬
Migrate your web bot from the Old Builder to the New Builder (Landbot 2 and 3)
Landbot Affiliate Program
Security Update - HTTPS URLs only
Startup Discounts
NGOs and Educational Organizations Discounts
Table of Contents
- All Categories
- Landbot Channels - Whatsapp, Messenger and APIChat
- Opt-in, Templates and Campaigns
- How to get Opt-ins (Subscribers) for your WhatsApp π
How to get Opt-ins (Subscribers) for your WhatsApp π
Updated
by Alessandro Pinelli
Intro
In order to reach out to your users, they need to become subscribers first! π€ This is the place where we provide you with the tools you need to get them onboard. π
Once you have an active WhatsApp channel, you'll be able to enter the Get Opt-ins section.
Read this article to know more about how to request a WhatsApp business number.
There are several ways in which businesses can get Opt-in, bothΒ on and off WhatsApp. Users must in any case confirm that they wish to receive future messages on WhatsApp: this can be done either through a simple Snippet added to your website, a specific Web Bot or simply getting their permission on WhatsApp itself.
When the user gives consent we call it the Opt-in process. Click on this link to learn more about it!
Snippet Option
By clicking on "Configure a new snippet" you can create and customize a Snippet to integrate into your website.

What is a Snippet?
Question: how to get new Subscribers with Opt-ins? Well, we provide you with a snippet you can easily embed into your website for your visitors to tick and become subscribers.
β οΈ The snippet has to be contextual and explicit about its purpose as WhatsApp Terms of Use indicates β οΈ
βIn order to send a WhatsApp message to a person, you must receive opt-in permission in-line and contextually during the relevant user flows. For example, to receive a receipt via WhatsApp, a person must opt in during a purchase flow. Opt-in obtained without context and in any manner not related to an action the user is already taking, does not comply with this policy.βΒ
You can customize its code from the Customize the snippet message section within Get Subscribers:
Once you're done with customization, add it to your website so visitors can tick it when performing other actions like buying something or subscribing to your newsletter.

If you click on the eye icon in the right corner, you will see the preview of the snippet. By default it looks like this:

Create a new snippet
First, click on Configure a new Snippet:
You will land to the Snippet creation page. Here you need to choose:
- The snippet name
- The snippet message
The next steps are not mandatory, but we recommend you to choose also:
- The message Template, a proactive message that the user is going to receive on WhatsApp
- The bot linked to this template

Wondering what a message template is? It's a message that you can proactively send to your subscribed users.
Click here to learn more about HSM templates and how to use them!
If you click on Choose message template you'll see the template messages available for you to choose one:

When you choose a message, all you need to do is assign a value to the variables that appear on it.
The variables are going to be displayed as numbers surrounded by double brackets:

When you click on Choose the bot, this is what you'll see:

You can choose a bot from your list or decide to not link a bot to this Template and just have Human Chat.
If you choose a bot, after receiving the template message the users will chat with the Bot. π€
If you don't link a bot, nothing will happen, unless there is a human that can take part in the conversation from Landbot's Chat section. π©βπ»
Quick guide to get subscribers with a Snippet
To sum it all up, here's a quick guide on how to get subscribers: πͺ
- Customize the snippet with the message you want, and preview it using the Preview button.
- Once happy with it, copy it and paste it into your website.
- Now, choose if you want to send an auto-message to your users once they subscribe.
- If you do, choose between your templates and customize the variable's names.
- Choose if you want to link a bot to this template.
- Click Save to save all the changes and start getting subscribers!
Read this article dedicated to WhatsApp Testing channel to know how it works!
Bot option (for WhatsApp and Web)
How do I build an Opt-in Bot for WhatsApp?
If you prefer, you can choose to get your subscribers directly through WhatsApp by creating a dedicated flow for Opt-in.
- First things first: the WhatsApp Bot builder.

After the first Welcome or simple Message Blocks, we ask for the user's consent to receive WhatsApp notifications (bear in mind that, differently from an Opt-in for Web, we can avoid asking for the Phone Number, as it will be automatically saved under the Variable @phone) using a Keyword Options Block.
Check out how to assign keywords to buttons on WhatsApp and Facebook
How to add new Subscribers through the Opt-in
Now we have our new user's consent, and before starting our Chatbot flow, it is important to save the information collected into your Subscribers. How to do that? With a Webhook Block πͺ

Here we have to set a few things:
- URL: You can find the extended explanation of the URL below
- Method: POST
- Send param: yes
- Variables: include all the variables you want to send to the WhatsApp channel
How do I build an Opt-in Bot for Web?
Let's have a look at our example of an Opt-in bot from the inside:

In the bot builder, after the welcome message, we ask for the user's name and company name, then we have a Phone Code Validation brick, which we use to validate the phone code and the phone numbers.

Want to learn more about Bricks? Read this article!
Then we have the most important block for the Opt-in: the Webhook block.

We need to set up the Webhook with:
- URL: You can find the extended explanation of the URL below
- Method: POST
- Send param: yes
- Variables: include @phonevalidated and all other variables you want to send to the WhatsApp channel

β οΈ Important: to assure that your Bot complies with WhatsApp guidelines, please check out the requirements here β οΈ
How to write the correct URL
We need a URL like this one:
https://messages.landbot.io/wa/W-2-BT7U5A00PX42W8HT/opt_in?phone=@{phone}&name_user=@{name_user}&demo=@{demo}&country=@{country}
W-2-BT7U5A00PX42W8HT is an Id that belongs to the WhatsApp channel.
You can find it in Channels > WhatsApp Business > Click on your WhatsApp business Channel > Get Subscribers > Click on a Snippet or Create a new Snippet

Once you pasted the Id into the URL, you have to know which variables you want to send to the WA channel.
Phone and name the basics variables that you need to have in the URL to realize the Opt-in.
opt_in?phone=@{phone}&name=@{name}
Use the pre-made Opt-in bot for web!
The Opt-in bot is a pre-made web bot, already set up to allow you to get subscribers for your channel.

Please keep in mind that you need to do some modifications and follow the instructions inside the bot, in order to make it function for your number.
You can find it inΒ WhatsApp Business > Get Optins
Or you can find it in our templates page:

You can find more info in this article!
Channel's Opt-ins list
You can see the list of users that subscribed to your channel by clicking on the Channel's Opt-ins buttons on the right side of the page.

The list will display the total number and a list of users. You can show/hide columns to this table apply filters.

β οΈ The opt-out button is to permanently delete a user from your subscriber. Please use it ONLY if one of your users asked you to remove his contact from your list. β οΈ
