0

I have been trying to make my own chatbot with dialogflow CX,
I cant see to find enough DOC 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 start this.
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?, can any kind hearth give me an example or extra documentation about how to code this bot?

Pd: I am new and learning how to do this chatbot, google cloud and object programming need advice in general, thanks!

Right now i am using https://cloud.google.com/dialogflow/cx/docs official doc

aggarcia
  • 5
  • 6
  • Your question is a duplicate, there is already an answer for how to make the bot initiate the conversation on [Dialogflow CX | How to let the bot initiate the conversation?](https://stackoverflow.com/questions/66905876/dialogflow-cx-how-to-let-the-bot-initiate-the-conversation) – fcagnola Apr 07 '21 at 16:08
  • Oh thanks, and the suggestions chips that where on the ES? – aggarcia Apr 08 '21 at 20:06
  • answered that part just now, sorry i hadn't seen the second part! – fcagnola Apr 09 '21 at 06:31
  • 1
    Thanks mate for taking your time! You helped a lot :) – aggarcia Apr 09 '21 at 08:29

1 Answers1

1

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.

Hope this made things clearer for you!

fcagnola
  • 640
  • 7
  • 17