Convert ODK transformer response to support web bot #40
Replies: 2 comments 11 replies
-
@ChakshuGautam As we discussed, if we enhace the XMessage spec styles as below to handle the above
When there is no choice for the user selected option then
The above XMessage format is just for reference. Feel free to change. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@ChakshuGautam
Right now ODK transformer is combining title and choices and send them back as plain text, which is fine for the WhatsApp scenario.
For the web Tara bot, we have to show choices as a button, and using plain text format it is difficult to identify title and choices. so need to convert ODK transformer response as below structure so any frontend application can render it.
{ title: "Tell me which board you belong to", choices: [ {key: 1, text:"1. CBSE"}, { key:2, text:"2. State Board"} ] }
cc @vinukumar-vs @aayushkedia95
Beta Was this translation helpful? Give feedback.
All reactions