Tiledesk Chatbot Forms

In this article you will learn everything you need about Tiledesk Chatbot Forms

Tiledesk chatbot Forms are a way to collect data from the users in a structured way.

Sometimes getting on an intent is not enough for the intent itself.

Suppose for example that, before welcoming a new user, your chatbot wants to know his name. So he can greet something like: “Hi Andrea, how are you today?”.

What would you like to achieve is submitting the user a very short greet message, then asking him “Can you tell me your name?”, and then, finally, greet him by name.

Lets's start by this example

Basic concepts: Greet a user by name

Once you create your intent you must move to the From section and press the Add Form button:

Select “Custom”

Fill out the Variable name (=userName), Type (=Text) and the Label value (=The question we use to ask the user to reply with his name)

Press Add to add the field. You wil see the newly created field in the fields form list:

To complete the steps we can already use the provided variable (userName) in the Intent Answer section as in the following figure. Note that to use the variable we can simply sorround it with a $ sign followed by a couple of brackets:

Use variable template syntax:  ${variableName}

Lets' save the intent. And try it out (Test it button on top right corner)

As you can see we used the userFullname variable from the form to greet the user.

Keep in mind that the variable will be available for all the conversation lifetime.

Some special variables are instead available and shared throughout all the user interaction lifetime, also cross-conversations. They are called Reserved variables.

Reserved variables

Here follows a list of the main reserved variables:

userFullname: it is the user fullname that Tiledesk will use to recognize the end-user

userEmail: it is the email that Tiledesk will use to interact with the end-user

We'll understand how to use the above reserved variable names in the next example

Advanced example - Reserved variables

In this example we'll learn how to get the userName and userFullname while building a lead acquisition data during a conversation.