Simulator error UnparseableJsonResponse (“Cannot find field.”)

前端 未结 1 458
温柔的废话
温柔的废话 2021-01-24 10:42

I have successfully tested the first few intents of my app with my webhook in the DialogFlow console, but testing in the Simulator gives the following error:

1条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 10:44

    The problem is a combination of two things:

    1. There are no text replies set in the Response section.

    2. When the Intent is triggered, it does not get sent to a webhook.

    As a result, Dialogflow replies to the Assistant with no text response, which is an error.

    You can correct this by making sure your welcome intent does one of the following (you don't have to do both):

    1. Set one or more text replies. These would be sent back when the Intent is called.

    2. Check the Use webhook box under Fulfillment. This would call your webhook when the Intent is triggered. (And then make sure that your webhook returns a valid response.)

    As you speculated in your comments, you could also change the Welcome Intent to one of your other Intents that you've already tested to respond. There is nothing special about this particular Welcome Intent - it was just the one created by default for you.

    0 讨论(0)
提交回复
热议问题