Forms
Last updated
Last updated
are the basis of requesting information from the user. You can create any number of forms you wish, and each form can contain any number of questions.
Creating a form is simple, just follow these few steps :
To ask the question, or series of questions via a form in a conversation you'll need to use a Function
block. When editing this block, you'll see a field called Form
which tells the block which questions to ask the user at this time. In the drop down list you'll see all the questions and forms available to use.
When testing your bot you may have noticed that sometimes it doesn't ask you questions in the form that are associated with a given block. This is deliberate because the bot remembers your details from a previous conversation you had with it. We have purposely designed logicdialog to do this, as from a user perspective - you expect the bot to remember your email address after you've input once in the conversation. For example, if your bot handles multiple use cases where a user might enter their email address then the second time they complete one of the use cases we can reuse the email address from before.
There are times however that you might want the bot to forget the details. For those times, you can use the Unset form
function which will reset the form values.
If you want to make sure that the bot forgets any answers it has captured through a form, include the Unset form
function when the bot has finished using the answers for what it needs. You can do this either from the Responses
screen, or when on the Visual Builder
.
From the Visual Builder
add a Next Response
to the block of content that finished processing the form. Choose the Unset form
block type from the preset functions. Populate as normal and choose the form you wish to unset in the form field. When you're finished remember to set a next block for the block you just added if you want the bot to send anything else to the user.
This video shows a form you could set up in your own bot in a matter of minutes.