Exchanging values in variables

Learn how to give the value of one variable to another in your chatbot.

In this video, we'll show you how give the value of one variable to another variable. For example, you may have a variable called @result that changes throughout the conversation, but when it stops changing, you might prefer to use a clearer variable name like @totalamount. We'll walk you through the process step-by-step.

We'll also demonstrate how to change the default variable name for the welcome message in Landbot. By default, the welcome message is linked with the variable @welcome, but you might prefer a different name, like "users_first_input".

We'll show you how to create a new variable block with your desired name and link it to @welcome, so that both variables have the same value.

00:00 Intro

00:14 How to give the value of a Variable to another Variable

Key takeaways

  • How to give the value of a Variable to another Variable
  • How to give the value of a Variable to another Variable