One of the critical features of the chatbot is the ability to act based on the user input via the NeetoChat widget. In NeetoChat, every user input collected during the chatbot-user interaction is associated with a Mapped Field. For example, if you want to program your chatbot to collect the user's email, you must first create a Mapped Field for email and then set this Mapped Field in your User input node in your Workflow. Please don't worry. This will be covered step by step in the later sections.
In short, every user input will have an associated Mapped Field.
Adding Mapped Field
Navigate to Settings -> Chatbot settings -> Mapped field page.
Click on the Add new mapped field button on the top right corner of the page. This will open a side pane on the right-hand side.
Fill in the Label, Name, and Field type fields; please note that the Name and Field type cannot be edited once you save the changes.
-
Click the Save changes button to make the changes permanent.
Using Mapped Field in Workflow
Once you've created a Mapped Field, follow the steps below.
Navigate to Settings -> Chatbot settings -> Workflows page.
Open your desired Workflow in the Workflow Builder by clicking the Workflow name colored in blue.
Click the Edit workflow button on the top right, between the Set as Active Workflow button and the Save changes button.
Click the Add new node button on the top left side, right below the name of the Workflow. This will open a dropdown.
Select the User input node from the dropdown. This will add a User input type to the Workflow Builder.
Fill in a message to be sent before collecting the user input. Then, select the Mapped Field to which the user input value should be mapped from the dropdown on the node.
-
Make the required Connections and click the Save changes button on the top right corner of the Workflow Builder to make the changes permanent.