Open BBland1999 opened 4 years ago
Can you disable and re-enable testing in the console?
Can you disable and re-enable testing in the console?
I just did (in the actions console) and am seeing the same results.
I have the same problem. When going deeper into this and doing some debugging I found out that the debug_info field in the response received from the AssistRequest is always null - although this actually should contain the suggestion chips, cards etc.
In the Logs Viewer I can see the request, and Dialogflow returns everything I expected - it just isn't part of the AssistResponse.
@Fleker any idea whats wrong here ?
Received response from agent with body: HTTP/1.1 200 OK Server: nginx/1.13.6 Date: Thu, 20 Aug 2020 12:14:52 GMT Content-Type: application/json; charset=utf-8 X-Content-Type-Options: nosniff google-actions-api-version: 2 Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma: no-cache Expires: Mon, 01 Jan 1990 00:00:00 GMT P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info." Content-Security-Policy: script-src 'report-sample' 'nonce-xfl/xTl7c2AWJqq0DeyH4w' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /_/DialogflowRuntimeAogHttp/cspreport;worker-src 'self' Content-Encoding: gzip X-XSS-Protection: 0 X-Frame-Options: SAMEORIGIN Set-Cookie: NID=204=aaaa expires=Fri, 19-Feb-2021 12:14:52 GMT; path=/; domain=.google.com; HttpOnly Via: 1.1 google Alt-Svc: clear Transfer-Encoding: chunked { "conversationToken": "[]", "expectUserResponse": true, "expectedInputs": [{ "inputPrompt": { "richInitialPrompt": { "items": [{ "simpleResponse": { "textToSpeech": "Default response of send buttons" } }, { "simpleResponse": { "textToSpeech": "suggestions:" } }], "suggestions": [{ "title": "Item1" }, { "title": "Item2" }, { "title": "Item3" }] } }, "possibleIntents": [{ "intent": "assistant.intent.action.TEXT" }] }], "responseMetadata": { "status": { "message": "Success (200)" }, "queryMatchInfo": { "queryMatched": true, "intent": "89404df9-1732-4016-8530-e1789008bbe6" } } }
Any fix on this problem? @Fleker @yoichiro
Is your action built using Dialogflow or Actions Builder? If the latter, you should use the Assistant Conversation testing lib.
I have many projects on Dialogflow and actions builder and I'm trying to use these libraries depends what I need.
I having an issue where only textToSpeech responses seem to work properly. I'm trying to test that the correct suggestions appear but only the textToSpeech array does. When I test it with the google actions console, I can see that the suggestion chips are appearing. I have tried it with a card as well and had the same results.
test.js:
test.js output:
raw response from actions console test: