Back to All

Custom Variable and Arithmetic Calculations

Hello guys,

I found this on your website under the tutorial for creating Custom Variables.

Example 1

Interaction 1: Hi! Let’s divide three numbers. Please pick your first number.
Interaction 2: Great! Pick a second one. [customVar A=[responseTo interaction=1]]
Interaction 3: Excellent, and now the third one. [customVar B=[responseTo interaction=2]]
Interaction 4: The result is [DIV [[showVar=A], [showVar=B], [responseTo interaction=3]]].

This is the exact kind of bot that I want to create but when I follow the same coding the bot is not actually extracting the number input. I even copy, pasted the exact example in my bot to check if I was doing it wrong. But even for the example, "The result is [DIV [[responseTo interaction=1, [responseTo interaction=2, [responseTo interaction=3]]]." this was the final output that the bot gave me when I tested it. Can you guys please check on it and guide me accordingly as to how can I make the bot recognise the customer input number and do the division accordingly.

I even tried checking your templates and looking for video tutorials, I had no luck in finding any that actually recognises the number input and does the division. It would be really helpful if you could help me on this.

Thank you!