Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. "queryText": "GOOGLE_ASSISTANT_WELCOME",
  2. "action": "input.welcome",
  3. "fulfillmentMessages": [
  4. {
  5. "text": {
  6. "text": [
  7. "[{"type":"simple_response","platform":"google","textToSpeech":"Hello"}]"
  8. ]
  9. }
  10. }
  11.  
  12. List<String> texts = new ArrayList<>();
  13. texts.add( "Foo" );
  14. message.setText( new GoogleCloudDialogflowV2IntentMessageText().setText( texts ));
  15.  
  16. "fulfillmentMessages": [
  17. {
  18. "text": {
  19. "text": [ "Foo" ]
  20. }
  21. }
  22.  
  23. MalformedResponse: Failed to parse Dialogflow response into AppResponse because of empty speech response"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement