Skip to content

Forms - collect user answers

In order to store the next user text input in a context variable (maybe to use it later for templating, or deliver it via API call to your own systems) use a text message element with elementType : text

    "elementCode": "welcome-1",
    "elementType": "text",
    "text": {
        "en": "What's your name?",
        "de": "Wie heisst Du?"
    "UserAttributeName": "guestName"

In the above case the next user input will be stored in context variable guestname. No NLP will be applied (in case you use it for your solution).

Hint: You can use the attribute successor to direct the user to the next conversational element after the user has provided the input.