cancel
Showing results for 
Search instead for 
Did you mean: 

Updated documentation about Button type

ericci
Active Contributor

I was looking at the Structured Messages documentation and I can see that Button (like in Cards) has a "type" property but I cannot find anywhere an explanation about what possible values it accepts and the UI/UX result.

Could you please take care to update the documentation?

View Entire Topic
Rodrigo-Giner
Active Contributor

The type is based on these options, is in the documentation

https://cai.tools.sap/docs/concepts/structured-messages

Message format

In the following payloads, buttons can either be:

  • postback: the basic type, once the button is tapped, the value is sent as a normal incoming message
  • web_url: depending on the channel, once this button is tapped, the URL in the value field is loaded
  • phone_number: depending on the channel, once this button is tapped, the phone number in the value field will be called

Best Regards

gl

0 Kudos

Yes, we see this in the documentation. Maybe some examples would be helpful.

For instance, when one adds a button and chooses postback, how should the right hand side postback field be formatted? "the text in quotes", text without the quotes, {{text with braces}}? None of these work, of course, since one has no example of how to do it properly.