Tips and Tutorials

Disable chat input

Chatbot can disable client chat input by using input hintsarrow-up-right. So, if the last activity from the chatbot has "inputHint": "ignoringInput", input will be disabled.

Suggested actions

Chatbot can completely hide client chat input by using this feature, known as suggested actionsarrow-up-right of type imBackarrow-up-right.

Just add the following code to the activity where some action from the client is expected:

"suggestedActions": {
    "actions": [
        {
            "type": "imBack",
            "title": "Eat",
            "value": "client_eat"
        },
        {
            "type": "imBack",
            "title": "Drink",
            "value": "client_drink"
        },
        {
            "type": "imBack",
            "title": "Sleep",
            "value": "client_sleep"
        },
        {
            "type": "imBack",
            "title": "Repeat",
            "value": "client_repeat",
            "image": "img link"
        }
  ]
}

How it looks like for the client:

Last updated

Was this helpful?