I collect data from user input and to finish I want to calculate a value based on that input.
For example, I collect the person's weight and then the height to calculate the person's BMI, General Flow. How can I calculate BMI in the last step and show the result to the user?











In order to calculate the values of the input you collected from the bot, you will need to set-up a code using a webhook to calculate the BMI and connect the Webhook URL in the Dialogflow CX Console. Here’s a simple flow you can try:
index.js
package.json
Here's the result: