Tips and Tutorials

Disable chat input

Chatbot can disable client chat input by using input hints. 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 actions of type imBack.

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