Formulas in Action Video Tutorial

Learn how to use formulas in your bots and how to set them up

The Formula Block is an essential tool that allows you to perform complex operations on values inside Landbot, similar to Excel or Google Spreadsheets, and store the outcome in a variable. With the Formula Block, you can create powerful calculations and automate your bot's functionality.

Firstly, let's look at the different parts of the Formula Block. There are four essential sections: Output variable, Block outputs, Formula, and Formula Browser or Documentation. The Output variable is where the result of your calculation is stored, and the Block outputs allow you to specify the success or error output based on your needs. The Formula section is where you can write the calculation, and the Formula Browser provides all the necessary information about the different methods and operations you can use in formulas.

The Formula Block offers numerous possibilities, including using fixed variables, Landbot variables, writing formulas inside formulas, using the same output variable in the Formula, and chaining formulas one after the other. It also works well with condition blocks, which allows you to build more complex bots.

However, there are some things to keep in mind while using the Formula Block. Firstly, make sure the formula has a blue tick to be valid. Secondly, ensure that the output variable is in the correct format. If it is a math operation, it should be a number and not a string. Lastly, remember that "True" and "False" are strings that start with capital letters.In conclusion, the Formula Block is a powerful tool that allows you to create complex calculations and automate your bot's functionality.

By understanding the anatomy of the block and the do's and dont's of using formulas, you can harness the full potential of the Formula Block and make your bot more efficient.

00:00 Intro

00:11 Sections

00:20 Anatomy of the block

01:40 Best options to follow this block

02:14 Recap

Key takeaways

  • Anatomy of the block
  • Different options of formatting
  • Calculations
  • Anatomy of the block
Different options of formatting
Calculations