...

How to Add Background Music to Your Chatbot

Illustrator: Deih
chatbot background music

Please note that 'Variables' are now called 'Fields' in Landbot's platform.

Please note that 'Variables' are now called 'Fields' in Landbot's platform.

Chatbots are a great way to engage users and capture leads. It is key to make them as lively and engaging as possible — whether through a vibrant personality, funny GIFs, or just simplicity to use. 

Recently, we found ourselves wanting to add something a little extra to one of our chatbot projects. That’s when we discovered a workaround for adding background music to our chatbots, which turned out to be the best option for that project. 

If you also want to bring your chatbot even more to life with some tunes, just read on to find out how you can easily add background music to your bots!

Adding Music Step by Step

Adding background music to a chatbot isn’t that tricky, but there are a few steps you need to take into account. To make it easier on you, we prepared this step-by-step guide that is simple to follow so that you’ll be able to add background music to your chatbots as well. 

Here are the steps, along with some tips we found to be helpful during chatbot soundtrack scoring. 

1. Create a Variable

In a set variable block, create the variable @videosnippet and paste the below code into the “Value” section.

See the Pen Video Snippet by Marketing (@mkt-landbot) on CodePen.

Connect this to a message block with the variable @videosnippet; it should look something like this:

chatbot variable

2. Copy and Paste Code Into the “Add CSS” Box

In the bot’s Design > Custom Code section, copy and paste the below code into the “Add CSS” box.

.videoiframe {width: calc(58vh); height: calc(36vw); max-height: 500px; } @media screen and (max-width: 0px){ .videoiframe {width: calc(70vw); margin-top: 0.2vh;} } allow=autoplay

Tip: Adding allow=autoplay means the music will play without the user needing to press play.

3. Choose Your Background Music

Find the music you’d like to use from YouTube, and when sharing, copy the embed link. It is important that you use the embedded link of the video, not the URL. You can find it by clicking “share”’ within YouTube and then “embed.” 

You only need the part of the link highlighted below:

youtube embed link


Tip: We recommend using a royalty-free music video!

4. Copy and Paste the Link Into Your Variable

After getting the needed Youtube link snippet, copy and paste it into the set variable code from step 1. It should look something like this:

See the Pen YouTube Link by Marketing (@mkt-landbot) on CodePen.

5. Finally, Hide the Variable Message

Now we need to hide the @videosnippet message so that the background music plays on its own. We need a block identifier for this, so copy the block reference code of your @videosnippet message and put it into this code into the CSS section: 

[data-block="Nktiqjb03_0"] .MessageBubble{ display: none!important; }


Your block reference code will replace Nktiqjb03 in your chatbot. Note that this code needs to go before any other code in the CSS section. So your CSS section should look like this: 

[data-block="Nktiqjb03_0"] .MessageBubble{ display: none!important; } .videoiframe {width: calc(58vh); height: calc(36vw); max-height: 500px; } @media screen and (max-width: 0px){ .videoiframe {width: calc(70vw); margin-top: 0.2vh;} } allow=autoplay


Music to Your Users’ Ears

As demonstrated above, adding background music to your chatbot is simple and easy. If done right, it can also be an effective way of capturing your users’ attention right from the start! 

We hope you try it out, and we look forward to seeing more musical chatbots out there. 

In case you need help on your next bot build or are interested in finding out more about Landbot special effects, you can contact us through the Landbot Certified Agency page or get in touch with us through our website.

Frequently Asked Questions about Landbot Pricing

What’s a Landbot chatbot template?

There are three ways to go about building a conversational app with Landbot:

1 - Do it all from scratch but still without coding

2 - Use only a few pre-made elements (bricks)

3 - Pick and customize a pre-designed template


There’s no need to reinvent a flow if our conversational experience designers already built a chatbot template for your use case. Before committing to a free sign up or a specific template, you can always use the preview function to try out the end-user experience. When you do load your chosen template, you’ll see the conversational flow all set up for you with guiding notes when needed.

All you have to do is customize the content inside the flow that’s already there. Edit the text, images, gifs, and links in the blocks so they fit your brand and product!

What’s the difference between a chat, a WhatsApp chat, and an AI chat?
  • A chat in Landbot represents a structured conversation between your bot and an end user, following a rule-based flow for web chatbots. It guides the user through specific tasks using buttons, keyword triggers, and decision trees with predetermined responses.

  • A WhatsApp chat in Landbot is a conversation between your bot and an end user on WhatsApp, following Meta’s messaging rules. When an end user messages your bot, a 24-hour window opens, allowing free responses, and the interaction counts as a WhatsApp chat in your Landbot plan. After 24 hours of inactivity, only pre-approved Message Templates can be sent, which you can manage directly in the Landbot platform.

  • AI chats incorporate AI functionalities, leveraging Landbot’s AI feature blocks or AI Assistants for lead generation, FAQs, or appointment booking. This enables the bot to understand intent and provide personalized, real-time responses instead of relying solely on predefined flows. AI chats are tracked and billed separately from regular chats and WhatsApp chats.

What is considered a “seat” in a Landbot plan?

A seat refers to a user license that grants an individual access to the Landbot platform under a specific account. Each seat allows one team member to log in, build, manage, and collaborate on chatbots. The number of seats included depends on your subscription plan, and additional seats can be purchased on all paid plans.

What subscription plans does Landbot offer?
  • Starter: Ideal for individuals and small businesses looking to create website chatbots effortlessly.

  • WhatsApp Starter: Perfect for small teams and businesses automating conversations across websites, Messenger, and WhatsApp.

  • Pro: Great for growing teams that need advanced features, automation, and integrations for website chatbots.

  • WhatsApp Pro: Best for businesses looking to scale customer interactions on WhatsApp with automation and rich messaging capabilities.

  • Business: Tailored for enterprises that require a fully customized chatbot solution with premium support and integrations for all channels.

How does the 14-day free trial work?

New sign-ups to the Landbot platform receive a 14-day free trial with access to all Landbot features and channels. After this period, the account is automatically downgraded to the Sandbox (Free) plan, which has certain limitations. You can upgrade to a paid plan should you wish to continue using Landbot’s premium features.

How is my subscription charged?

Your credit card is automatically charged at the start of each billing period. For monthly plans, the charge is processed on the first day of each new monthly cycle, while for annual plans, it occurs on the first day of the new yearly cycle.

Can I change my subscription plan later?

Yes, you can upgrade or downgrade your subscription plan anytime within the Landbot platform. Changes will be applied according to Landbot's billing policies.

How many chats are included in the Business Plan?

Our Business Plan is fully customizable to suit your needs, including the number of chats, seats, and WhatsApp Business Account numbers. Please reach out to our Sales team for a personalized quote tailored to your requirements.

What happens when I reach my plan's chats limit?

If you go over your paid plan’s chat limit, extra chats will be charged based on the chat type. Regular chats cost €0.05 per extra chat, while WhatsApp chats also cost €0.05 per chat plus Meta’s additional fee. AI chats are €0.10 per extra chat. Business plans have custom pricing for extra chats.

Are there any plans that only include WhatsApp?

No, all of our plans that include WhatsApp (WhatsApp Starter, WhatsApp Pro, and Business) also grant access to other channels, such as web, API, and Facebook Messenger. These additional channels are included in all WhatsApp plans.

Can I add more than one WhatsApp number to my account?

Yes, you can link multiple WhatsApp Business Account numbers to your Landbot account, but the number of WhatsApp Business Account numbers allowed depends on your plan.

What payment methods does Landbot accept?

We accept Visa, MasterCard, and American Express. Bank transfers are only available for Business plans.

What currency will I be billed in?

Subscriptions are billed in Euros (€) for most customers. However, customers in the following countries will be billed in US Dollars ($): Argentina, Bolivia, Brazil, Chile, Colombia, Costa Rica, Cuba, Ecuador, El Salvador, French Guiana, Grenada, Guatemala, Guyana, Haiti, Honduras, Jamaica, Mexico, Nicaragua, Paraguay, Panama, Peru, Puerto Rico, the Dominican Republic, Suriname, Uruguay, the USA, and Venezuela.

Does Landbot use the official WhatsApp Business API? How does the application process work?

Yes! Landbot uses WhatsApp’s official API to integrate the most popular instant messaging app. The API offered by Facebook(Meta) is under constant improvement, the reliability is fantastic and generates a frictionless experience for your users and for your team. To review which type of enterprises, businesses and brands WhatsApp accepts at the moment, please read our WhatsApp API application guide.

Landbot’s onboarding team helps you in the application process. Once you sign up for Landbot’s WhatsApp solution, our team will ask you to submit the required information and initiate the application process on your behalf. The entire process usually lasts around 1-2 weeks, regardless of which provider you work with. We take utmost care to ensure each business we collaborate with has their application approved, managing the application process at every step of the way. However, ultimately, the final approval decision rests with WhatsApp.

Can I start building my bot before my WhatsApp API access is approved?

Landbot’s special WhatsApp Test environment feature allows you to build and test your WhatsApp bot before your API application gets approved.

This is possible because the testing channel is a closed one, and only allows communication between the Landbot interface and the phone number you associated with the test account. So you can already test your WhatsApp bot with your own phone, and have it ready to be published live to your users when the access is approved by WhatsApp.

Do you offer support resources on WhatsApp bot creation?

Yes, you have access to a large collection of support resources including WhatsApp guides, documentation and academy videos to help you get the most out of the WhatsApp chatbot builder and campaign manager. Listed below are some of the resources:

- How to Create a WhatsApp Bot: Step By Step Guide
- How to Create & Test your WhatsApp Chatbot: Video Guide
- Landbot Academy: WhatsApp

What is the WhatsApp opt-in and how does it work?

WhatsApp opt-in is the active consent users have to give you before you can contact them via WhatsApp. Opt-ins need to be done via a third-party channel. You can learn more about WhatsApp opt-ins and how they work here.