Recepies

  1. Disable chat input
  2. Suggested actions

Disable chat input

Chatbot can disable client chat input by using input hints. So, if last activity from 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 activity where some action from 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 client:

results matching ""

    No results matching ""