generous-apricot
generous-apricot2y ago

Conversation loop problem

Hi, I am having an issue with reusing variables in a loop. My chatbot sends an Airtable GET request to create carousel cards, which all works fine. But my chatbot is on a loop so that the user can do another search if they choose. My issue is that on the second or third loop, there becomes an overlap of information in the variable from the loop before. I have tried resetting all the variables manually using a "Set Card" with all values adjusted to "0", but it does not work and still holds the value of the previous requests. I am struggling to find anything online to solve this problem. Can someone help?
1 Reply
Tico | Voiceflow Assistant
In Voiceflow, to manually change or set a value of variables in your conversation, you need to use the Set Step. This allows you to set and change the value of variables based on certain conditions or actions performed by the user. However, if you're experiencing issues with variable values overlapping in a loop, it might be due to the way you're resetting the variables. When resetting, ensure that you're not just setting the values to "0", but rather resetting them to their initial state or a null value. You can also use the Debug Mode to track how your variables are interacting in your conversation and changing based on Set Steps. This might help you identify where the overlap is occurring and how to resolve it. For more detailed information, you can refer to the following documents: - Set Step - Using Real Variables to Develop Assistant Logic - Airtable Integration

Did you find this page helpful?