Quick-reply for a Webhook
Channel provides Quick-reply option for a Webhook. You can easily reply a message with your response for our Webhook event request.
Response Header
If you want to reply a message with your response, you should add a custom HTTP response header
"x-quick-reply" : "true"
Else, we will recognize your response as not a Quick-reply message.
You can set bot-name for your Quick-reply message with a custom HTTP response header
"x-bot-name" : "YOUR_BOT_NAME"
Else, bot name will be your Channel-name.
Response Body
Your response body should look like below, same with Send a message to a Group
{
"blocks": [
{
"type": "text",
"value": "This is <b>bold</b>, <i>italic</i>, and <b><i>bold+italic</i></b>. Emoji should be in shortcode :+1: :100: "
},
{
"type": "text",
"value": "<link type=\"manager\" value=\"managerId_goes_here\">@username</link>"
},
{
"type": "text",
"value": "This is a url <link type=\"url\" value=\"https://channel.io\">https://channel.io</link>"
},
{
"type": "text",
"value": "This is a link <link type=\"url\" value=\"https://channel.io\">Channel</link>"
},
{
"type": "code",
"value": "<script>ChannelIO('boot')</script>"
},
{
"type": "bullets",
"blocks": [
{
"type": "text",
"value": "Bulleted text goes here"
},
{
"type": "text",
"value": "Next bulleted text goes here"
}
]
}
]
}
Updated 12 months ago