0

Trying to get Dialogflow to respond with webhook response.

I've got Dialogflow receiving the payload without issue, however I cannot get Google to tell me what that data is.

JSON payload below.

{
    "payload": {
      "google": {
        "expectUserResponse": false,
        "richResponse": {
          "items": [
            {
              "simpleResponse": {
                "textToSpeech": "this is a simple response"
              }
            }
          ]
        }
      }
    }
  }

At this point, I feel like I'm missing a setup option somewhere.

Dialogflow bot also shows an empty response.

SORoss
  • 157
  • 1
  • 1
  • 10
  • I'm afraid I'm not following the crux of the story. Are you saying you have a dialog flow which has an intent. The intent has an associated fulfillment and a webhook is called. The webhook is then responding with shown JSON. What do you mean when you then say "I cannot get Google to tell me what that data is"? – Kolban May 14 '19 at 02:35
  • 1
    It seems that Dialogflow is not compatible with Azure functions, refer to https://medium.com/@yoichiro/how-to-use-actions-on-google-client-library-on-azure-functions-node-js-178d5ecd04e3 for the workaround. – Tony Ju May 14 '19 at 02:57

1 Answers1

0

Dialogflow is not compatible with Azure Function you can track the open issue for the same in github repo.

To workaround this you can build your actions for Google Assistant with Azure Function using Google Client Library.

Here is the very nice article that you can refer.

Ketan
  • 1,530
  • 7
  • 16
  • Wow, absolutely infuriating! Thank you. Although I'm not using nodejs for this, I'm using C#, is this across all languages? – SORoss May 15 '19 at 10:30
  • I haven't tried with C# but here is some thing that I found which can help you. https://github.com/LindaLawton/actions-on-google-dotnet – Ketan May 15 '19 at 15:13