Difference between question.parsed_answer and question.choice

#1

Hi,
I have a multi-choice question that has four options: A, B, C and D. Sometimes it seems like the logic works differently depending on if I use a trigger for “if question.choice is not equal to A” versus “if question.parsed_answer is not equal to A”. The latter is sometimes not triggered! What is the difference between these two options, and where can I read more about using them?

Thanks,
Hal

(Daniel Beckett) #2

Hi @hal

The easiest way to see how it works is with an example. Here’s a basic question using the choice question type:

The format is:
Choice | Value

Choice is what the user sees, value is what the bot detects as the answer.

In that question the choice values are Apple & Banana. The ‘answer’ the bot detects is A for Apple and B for Banana.

An answer and choice can be selected as separate outputs. If we use:

It’s worth noting that Twilio bots do behave differently though. When sending shortcuts or using Ask a Question with choice values, the button shown on a Twilio bot will only send the ‘value’ text and won’t display whatever is set as the choice.

Hope that helps!

Thanks,
Dan