"Equal To" does no work when "User Said Something" only "Contains" works

I have a flow for a phone call. I want to know if someone said yes or no. When my split transition is set to use "Equal To" it never detects what is said. It only works if I use "Contains". While it does work I'd rather be more specific for a 1 word Y/N answer and use "Equal To". Thanks!


Answers

  • sbrijmohan
    sbrijmohan admin
    edited November 29

    Hi @TomTwilio! I’ve seen this before. It seems the speech to text function adds a Period at the end of the word, which makes it difficult to use Equals in the Split based on widget.

    In case they want to use Y/N and “Equal To”, you might need to add a liquid expression in the validation, like {{widgets.gather_1.SpeechResult | slice: 0, 1 }} to take into account the first letter only.

    https://www.twilio.com/docs/studio/widget-library/split-based-on

    Also, you can use Matches Any Of, or use a Regex as defined in the docs above.

    I hope this helps! ✨

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support