Onboarding variables
Variables are values set based on user input or environmental data. They're essential for creating personalized and engaging onboarding experiences.
What variables are for
Variables let you insert dynamic data—like quiz responses or user text inputs—directly into your onboarding screens. Each user sees personalized content without any coding required. For example, greet users by name using text inputs, or route quiz responders to custom follow-up screens.
You use variables by placing the element ID of the data source between double braces, like this: {{element_id}}
.
As variables, you can use the data collected on previous screens:
- Inputs: The variable contains data entered by the user.
- Quizzes: The variable contains the label data of selected options. If multiple answers are allowed, the variable will contain all selected options, separated by a comma and space.
Element ID is not the same as the action ID used for custom actions logic. Be sure not to mix them up.
Use variables
Here's how to use variables:
-
Create an Input element or quiz option and set its ID.
-
Use the element ID in onboarding texts in the
{{element-id}}
format. For example, you can personalize your text using the user's name. -
When users enter their data during onboarding, it will appear dynamically wherever you've placed variables.