creating variable
Is it possible to create variables responsively in Voiceflow, or only manually?
1 Reply
In Voiceflow the list of variables is fixed at design-time: you add them from the Variables panel (left toolbar) before you use them in a Set step, Logic step, JavaScript step, API call, etc.
• JavaScript / Set / API steps can update an existing variable’s value at runtime, but they cannot create a brand-new variable.
• Even when you pass “extra” keys through the Web Chat
https://docs.voiceflow.com
launch.event.payload
or through the Dialog Manager API, those keys are only stored as metadata; to reference them inside your diagram you still need matching variables that you created manually.
So the workflow is:
1. Create the variable once in the editor.
2. Update or overwrite its value dynamically while the conversation is running.
Docs
Passing custom variables into web chat → “The JavaScript step can’t create new variables… you’d need to have already created the variable like normal.”https://docs.voiceflow.com