JavaScript
How to change Avatar dynamically
If you want to change the Avatar due to any conversation design reason, you can do it easily with this snippet: /*CHANGE THE URL BELOW FOR THE ONE OF YOUR DESIRED NEW AVATAR*/ var picUrl = "https://u…
Javascript in WhatsApp
There may be instances where we need to use Javascript inside of our WhatsApp flow However, as WhatsApp doesn't have access to a console we are limited in how we can do this With Make's(Integromat's)…
Landbot JavaScript Integration
JavaScript in Landbot is only available for web chatbots. It's not compatible with WhatsApp or Messenger bots. When testing JavaScript, be sure to use 'Share URL' and not 'Preview'. Web chatbots offe…
Different ways to format numbers with JS
To see this workaround for the WhatsApp channel, review this article. Transform 1000 to 1,000 First, we ask for a number and store it in the @number variable. With a Code block we add the function th…
How to display an HTML Table and a List in Landbot v3 web
Dynamic Data block is great to display an array of options that needs to be selected. But we might need to simply display a table with data coming from an array, probably from a request (Webhook). He…
Trigger a Global Keyword with JS (web v3)
Global Keywords allows you to set paths, based on a specific Keyword. Thanks to Landbot SDK we can trigger a Message via Javascript, that can trigger the sending of a message, that will trigger the g…
Create Dynamic Shopping Cart with JS and CSS
In this article we will provide step-by-step guidelines to help you create a shopping cart that meets your needs based on an Airtable database. The example provided is a Restaurant type bot where you…
Add a Chart (with Chart JS library) in your Landbot
These scripts and how to's are not native functionalitie s. Landbot won't be able to support, help or guarantee these scripts and how to's. These Workarounds and How to's are for developers, as a lea…
Different ways to format numbers with JS (WhatsApp)
With Make's (Integromat's) new Custom JS module we can now seamlessly run a Javascript function during the flow, and return the value back to our user in WhatsApp without interrupting the conversatio…
Pop up modal to embed third party elements
Displaying html and scripts in Landbot sometimes can be limited by the size of the messages, and it's more useful to display 3rd party elements on top of the messages for better visualisation. Here w…