The custom buttons can be created by defining the "button" card in the Execution function. Button Click functions are used to configure the business logic for those custom buttons when they are clicked.
Invocation Point
Once the custom button configured in the Execution Handler response is clicked, the corresponding button click function configured for that button would be invoked.
Argument
|
Deluge data type
|
Description
|
data
|
Map
|
|
Return Value
Button click functions must return a map that should be in the following format.
{
“message” : “The reply message.”,
“card” : { },
"broadcast" : { },
"followup" : { }
}
Read this article to know more about the above keys that can be present in the map that would be returned from the Button Click functions.
Note: A maximum of three "Button Click Functions" can be configured for an action.