rickchen | 2023-04-19 18:08:13 UTC | #1
Hi, i have configured a Genesys BotConnector and my postUtterance responds with your example:
"replymessages": [ { "type":"Text", "text":"your cookie is ordered" }, { "type":"Structured", "text": "What would you like to do?", "content" : [ { "contentType": "QuickReply", "quickReply": { "text":"I want a cookie", "payload": "cookie" } }, { "contentType": "QuickReply", "quickReply": { "text":"I like movies", "payload": "I like movies" } } ] } ]
This renders fine in the messanger, and when i click one of the options, e.g. 'I want a cookie', i see the options disappear and 'I want a cookie' in the messanger box. However, the text sent back to my bot is and empty string "".
Here is what is getting sent to my bot: "input": { "message_type": "text", "text": "", "source": { "type": "user", "id": "8ca8328f-a2d4-421c-b287-0bd6f5ace411" }
Basically, clicking on a quickReply sends an empty string back to my bot. can someone tell me why?
rickchen | 2023-04-20 11:54:00 UTC | #2
i figured it out, i thought i was supposed to get "inputMessage": { "type": "Text", "text": "hello" }
but actually it gets "inputMessage": { "type": "Structured", "content": [ { "contentType": "ButtonResponse", "buttonResponse": { "type": "QuickReply", "text": "I want a cookie", "payload": "cookie" } } ] }
system | 2023-05-21 11:54:16 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 19551