3

I am implementing a chatbot with Dialogflow and have used Kommunicate to integrate it to a website. I want to hide/ disable quick responses after they are once used. How can I do it?

An example of how quick responses are displayed in my bot is given here: example

Jessica Rodriguez
  • 2,899
  • 1
  • 12
  • 27

1 Answers1

3

Kommunicate provides a parameter named hidePostCTA, you need to pass that as true in your installation script, with this, rich message buttons will get hidden on click. Please refer documentation for more info [ documentation link ].

So your final installation script should look something like

(function(d, m){
    var kommunicateSettings = {
        "appId": "APP_ID",
        "popupWidget": true,
        "automaticChatOpenOnNavigation": true,
        "hidePostCTA": true,
    };
    var s = document.createElement("script"); s.type = "text/javascript"; s.async = true;
    s.src = "https://widget.kommunicate.io/v2/kommunicate.app";
    var h = document.getElementsByTagName("head")[0]; h.appendChild(s);
    window.kommunicate = m; m._globals = kommunicateSettings;
})(document, window.kommunicate || {});