To create a questionnaire, we use a simple method — User Input. All components that variables write belong to the conditional invisible group. This is important to remember, because we need to add a visible component before an invisible one to ask a question to a user.
Visible components include Text, Buttons with Hints, Viber Buttons, a Dynamic Buttons with Hints.
For example, let's create a simple questionnaire with 3 questions:
What audience do you want to create a bot for?
What functions is it supposed to have?
Leave your email.
Let's think of variable names:
Add the components to the Screen in the following order: Text, User Input, Text, User Input, Text, User Input. Fill them in with the data in order. Don't forget to save the project.
After creating the questionnaire, we go to the bot, answer the questions and view the variables in User States: