Button
Button. One of the fields is populated depending on the button type.
commandButton object
Command button
displayTextstringrequired
Text on the button
Example:
Press the buttoncommandKeystringrequired
Command sent when the button is pressed
Example:
/button_pushedlinkButton object
displayTextstringrequired
Text on the button
Example:
Press the buttonlinkstringrequired
Link opened when the button is pressed
Example:
https://www.yuchat.aiButton
{
"commandButton": {
"displayText": "Press the button",
"commandKey": "/button_pushed"
},
"linkButton": {
"displayText": "Press the button",
"link": "https://www.yuchat.ai"
}
}