Creating Variables

Tahsim Ahmed
Tahsim Ahmed
  • Updated

How do I create a variable?

You can create variables in your assistant in multiple different ways:

  • In any Talk Step type, start typing in the input field with the left (curly) brace '{' and hit Create
  • In the Condition Step, in any of the If (Add a condition) fields with the same method above
  • In the API Step, in any of the input fields with the same method above
  • In the NLU Model (M) Manager (or Modal Manager or Interaction Model Manager), under the Variables tab, enter the name of the Variable and hit Enter ↩

Tip: You can use the curly braces { } to create new variables, but also scroll through and invoke and add pre-existing or previously defined/created variables in your assistant

With any of the methods to create variables above, you can create variables explicitly (or plan for future use of variables) through the Interaction Model Manager, or on-the-fly and as needed with opening curly braces.

Tip: Variables are broken down as pieces (containers) of logic dedicated towards programming and conversation design, so therefore the variables must be lower-cased and contain no-spaces

The next sections cover some of the options and steps available in Voiceflow in order to manipulate/alter, perform functions/expressions and end-to-end commands with Variables.

Note: Though behaving similarly, Variables and Entities in Voiceflow are commonly confused. Learn more about how each data/logic type operates in this doc here.

Was this article helpful?

1 out of 8 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.