chatbotdialogflow-cx

How to make a flow start the conversation and suggestion chips in Dialogflow CX


I have been trying to make my own chatbot with Dialogflow CX, I cant see to find enough documentation about this tool.

I am trying to make the bot start the conversation when I join the session but I cant find a way to do it.

Right now my chatbot needs a "hello" or some training word to start the dialog, but I want the chatbot to initiate the conversation.
I think you can do it with "Custom payload" but I cant find an example of how to do it.

Also I know in Dialogflow ES you had a "Suggestion Chip" option where you could put in a button the answer options, but I cant find it on CX. Do I have to code it now?

Right now I am using the official documentation. Is there an example or other documentation about how to code this bot?


Solution

  • custom buttons with hints/suggestions as you outline in your question are only available in Dialogflow CX for integrated services. You can find information about which service is supported on this page. Otherwise, if you are able, you can develop your own integration through their API, i'm using the Python one.

    If you decide, for example, to activate the Messenger integration to make your bot available via FB Messenger, you can visit the specific page and find, for example, that buttons can be set up this way.

    There are many other response types, you can browse them in the same page (list, button, description, image, card): for each of them google provides a sample code to put in the "Custom Payload" box for the fulfillment. For example a box to www.yoursite.org would work like this:

    {
      "richContent": [
        [
          {
            "type": "button",
            "icon": {
              "type": "chevron_right",
              "color": "#FF9800"
            },
            "text": "Button text",
            "link": "https://yoursite.org",
            "event": {
              "name": "",
              "languageCode": "en",
              "parameters": {}
            }
          }
        ]
      ]
    }
    

    by specifying "parameters" or "event" you can trigger Dialogflow events to manage the conversation flow.