probable-pink
probable-pink2y ago

Shared variables between topics

Good morning! In one node of my workflow I'm capturing the user's reply to a variable {last_utterance}. In later nodes of the same topic I'm able to use that variable. However, when I try to access it on a different topic or component it seems to be empty. Thanks for the help
2 Replies
Tico | Voiceflow Assistant
Variables in Voiceflow are global, meaning they can be accessed from any part of your project, including different topics or components. If you're finding that a variable seems to be empty when accessed from a different topic, it might be due to the variable not being set correctly or not being passed properly between topics. When you capture a user's reply with a variable, like {last_utterance}, ensure that the variable is being set correctly. You can do this by testing your project and checking the Variables sidebar in Test mode under the Test Tool on Canvas. Here, you can see the value of your variables and ensure they're being set as expected. If the variable is being set correctly but still appears empty in a different topic, it could be due to the way you're navigating between topics. When using intents or go-to actions to navigate between topics, ensure that the variable is being passed correctly. Remember, variables are a key element in condition steps to choose the right conversational flow in a decision tree. They can also be used to personalize the conversation and offer more relevant recommendations or suggestions. Real variables can also be used to track user progress and history throughout the conversational interface. If you're still having trouble, it might be helpful to review the documentation on variables and topics, or to ask the community for help with your specific project setup.
probable-pink
probable-pinkOP2y ago
In a capture node that saves the user reply to a variable. Does the node move to the topic of intent before the variable is set?

Did you find this page helpful?