In this step, you must provide all the inputs that are required for executing the workflow (from the assistant). These workflow inputs will be mapped with the user inputs ( in the Automation Pop up in the Dialog Creator module). The user inputs that are collected from end-users (via the Virtual Assistant) during a conversation are then sent to the workflow inputs to execute the automation.
Consider a use case where you need to send an OTP to an end-user. The steps will be as follows:
1) Click on Automation on the left navigation bar and then click on the Drafts tab under the Automation Builder side panel. Then click on the Create one button to create a new automation.
2) Give a title and description for the automation. For example, you can give OTP and add description as “Automation to send OTP to user” and then click on the Create button. Description field is optional, and you can leave it blank if you wish to add it later.
3) After clicking on the Create button, you will then be redirected to the Automation Builder’s canvas page to start building the automation.
4) Click on the Add Input button under Provide Input Variables on right panel and give mobile number as the input to be received from the Dialog Creator.
After specifying the input value, select the type for that input value. Do this for all the input fields. This will help you set conditions in step 2 without errors.
If the value is a number, then choose 123 as the type. For alphabets choose abc. For Boolean, which checks for True or False, choose t/f.
In this example, and since the mobile number will be a number input, select 123 and then click on Save.
5) On the Call Automation pop up in the Dialog Creator, Select OTP under the Select Automation dropdown and name the automation dialog node as Sending OTP in the Name your Automation field.
Then under the mobile number field, map the dialog context variable phonenumber that contains the user’s mobile number for sending the OTP and click on Ok. This is how you need to map a dialog’s context variables as inputs to an automation’s values. To know how to create a dialog conversation to send OTP to a user, click here.