The following macros are not currently supported in the header:
  • style

Date

This type of question user receives a response containing a date and interprets the response, extracts the date and stores it in a standard format. For example:



Question

Response


Extracted datum

When were you born?

September 20, 1990

1990-09-20

When will you pay?

Today

2016-07-13

When did you pay?

04/29/2015

2015-04-29




IMPORTANT: With exception ot the relatives date TODAY / YESTERDAY / TOMORROW, for a date to be valid it must contain a year. To avoid error, we recommend to include a suggested format for the answer. For example:

 
When are you making your payment? Please answer as mm/dd/yyyy
 


The configuration options for this type of question are:


Unique ID

This is a unique identifier generated automatically; if you want you can changed it, just remember that within your chatbot two questions can't have the same ID.


If you are going to store the data you get from your chatbot in a business database, make sure that the unique identifier of the questions match those that are already defined for the fields in your database; This will give you a seamless integration through the API.

Question text

Here it is where you write the question to your contacts.

Date Range

A date range allows you to set an acceptable time range against which to validate the user's response; e.g., if your question is \"When are you going to make your payment?\", you would likely want to restrict that the date given isn't earlier than the campaign's initial date.

Retries

This property allows you to set the number of times the chatbot will repeat the question if it can't understand an user's response.

Retry message

If the chatbot can't understand the answer given by the user, this message will be sent to the contact before asking the original question again, for example, "I'm sorry, I didn't understand."

End the conversation if not successful answer

If this property is activated, when you reach the set number of retries and the user does not yet give an answer that the chatbot can understand, the conversation ends; i.e. it doesn't asks / executes the following questions / actions.