this.nlu error with Google Assistant Requests
See original GitHub issueI got this error:
TypeError: this.nlu.getIntentName is not a function
at GoogleAction.getIntentName (/var/task/node_modules/jovo-framework/lib/platforms/googleaction/googleAction.js:66:25)
at Jovo.getIntentName (/var/task/node_modules/jovo-framework/lib/jovo.js:289:57)
at Promise (/var/task/node_modules/jovo-framework/lib/routing.js:54:50)
at new Promise (<anonymous>)
at Routing.route (/var/task/node_modules/jovo-framework/lib/routing.js:24:16)
at loadUserDataOnRequest.then.then.then.then (/var/task/node_modules/jovo-framework/lib/jovo.js:174:38)
at <anonymous>
…when testing my function with a Google Assistant Request. I think the format of the requests from Google Assistant must have changed because my old test worked. I am using the Dialogflow v2 API, but have for the life of this particular project, so that hasn’t changed.
On the Google Assistant Simulator side, the logs say MalformedResponse: 'final_response' must be set
because the app logic is returning null
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Natural language understanding best practices
This page contains some Natural Language Understanding (NLU) best practices and recommendations for building high quality Actions.
Read more >Fix issues with “Hey Google” - Google Assistant Help
If your Google Assistant doesn't work or respond to “Hey Google” on your Android device, make sure Google Assistant, Hey Google and Voice...
Read more >How to implement local fulfillment for Google Assistant actions ...
Problem statement I've been getting into Actions on Google ... Architecturally, the Dialogflow NLU agent sends a POST request to the server ...
Read more >Going beyond 'Hey Google': building a Rasa-powered Google ...
But what about handling more complex conversations? If you used Google Assistant you have probably noticed that every request has to start with ......
Read more >Newest 'watson-nlu' Questions - Stack Overflow
I'm just starting with cURL, I'm using Watson Natural Language Understanding (NLU) Service.. the following line gives me error code:400 "Invalid Request, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Testing locally with node-lambda and my app logic when pushed to Lambda, I’m getting further now in the logic since I’m now using the above correct request data. But it appears that that
this.setSessionAttribute('intentData')
works with Alexa requests but not Dialogflow ones. If I log outthis.getSessionAttributes()
after using the setter above it’s just an empty object.Thanks again, @aswetlow .
Closing this now. Please reopen it if you run into any problems. Thanks