genetic-orange
genetic-orange2y ago

Problems with loop and condition (utterance analysis)

Hi all, i am currently working on a model (see screenshot) and have the following problems: My demo chatbot is supposed to allow students to ask questions. As soon as a student's email address is registered for the newsletter, the chatbot should ask if there are any further questions. I wanted to save this answer in the variable last_utterance. When answering, the chatbot should then use the utterance analysis to decide whether the answer should be interpreted as the end of a conversation (path 1, top) or whether the conversation should be continued (path 2, bottom). However, if I now write "thank you very much" for example during testing in the voiceflow test environment, the chatbot jumps to the 2nd path, although it should actually jump to the first path, since "thank you very much" is to be interpreted as the end of a conversation. Could someone kindly help me with this problem? And the second problem is that when the second path is executed, I would like to ask the question "Do you have any further questions or concerns" after each answer from the chatbot, but then jump back into the Utterance analysis to see if the student's answer is to be interpreted as a continuation or end of the conversation. However, this jump back does not work either (I wanted to realize the jump back as a kind of while loop). Does anyone here know a solution or perhaps how this could be implemented differently? Would be very grateful for any help.
No description
2 Replies
Tico | Voiceflow Assistant
Based on your description, it seems like you're trying to use utterance analysis to determine the flow of the conversation. In Voiceflow, this can be achieved using the Choice step, which interprets freeform user responses and directs the user to different conversational logic pathways depending on the user intent. For your first issue, where "thank you very much" is not being interpreted as the end of the conversation, you might need to define this phrase as an intent that leads to the end of the conversation. You can do this in the Choice step by defining a path intent with "thank you very much" as one of the utterances that map to this intent. For your second issue, where you want to loop back to the question "Do you have any further questions or concerns" after each answer from the chatbot, you can use a go-to action or an arrow connecting to the block where this question is asked. This will create a loop that continues until the user's response matches an intent that leads to the end of the conversation. Remember to avoid building multiple conversational pathways with the same starting intent, as this can result in unexpected assistant behavior. Also, turning on "No match" can help handle cases where the assistant is unable to interpret the user's response. Sources: - Choice step - Paths, Choices & Buttons - The Basics
genetic-orange
genetic-orangeOP2y ago
Perfect, I´ll give it a try, thank you very much. Is there a reason why i can't access the 2nd link at sources? I wanted to read it in detail to understand it

Did you find this page helpful?