adverse-sapphire
adverse-sapphire2y ago

Variable Issue

I am not able to set the variable value with dynamic data, If I have given only dynamic data then it is working. But it is not working with the addition of dynamic and static values
No description
No description
4 Replies
Tico | Voiceflow Assistant
To set a variable value with a combination of dynamic and static data in Voiceflow, you should use the Set Step. This step allows you to assign values to variables, either by directly setting them or through expressions that can include both static text and dynamic data. Here's a brief overview: - Use the Set Step from the Logic section to change a variable's value. - In the Value Type section of the Set Step, you can combine static text (strings) and dynamic data (variables) using expressions. - Remember, when combining static and dynamic data, ensure your expression is correctly formatted to include both types of data. - For dynamic data, use curly braces {} to reference variables. - Static data can be directly typed as part of the expression. This approach allows for more personalized and dynamic conversational experiences by leveraging both predefined text and user-specific or context-specific data. For more detailed guidance on using the Set Step and expressions, you can refer to the Voiceflow documentation on setting and changing variable values.
adverse-sapphire
adverse-sapphireOP2y ago
Yes, but this is not solving the issue
W. Williams (SFT)
trim() is not required, but it gets rid of any random whitespace

Did you find this page helpful?