Webhook payload mapping for Slack SLA alerts

Trying to pipe a queue SLA breach event into a Slack channel via webhook. The default payload is too verbose, so I’m trying to map data.queuename to the text field in the Slack block kit JSON, but the webhook delivery fails with a 400 Bad Request. Here is the mapping config I’m using:

{
 "blocks": [
 {
 "type": "section",
 "text": {
 "type": "mrkdwn",
 "text": "Alert: {{data.queuename}} breached SLA"
 }
 }
 ]
}

The error response just says invalid_block without specifying which block. Is the template syntax wrong or is Slack rejecting the structure?

The issue is likely that queuename isn’t a standard field in the default webhook event payload. You’ll need to check the actual JSON structure of the event first. Try using data.name or data.queueId instead, or add a custom attribute to the event if you need the specific label.

is spot on. The default event payload doesn’t include queuename.

You need to use data.queue.name or data.queue.id depending on your webhook configuration. Check the raw event in the admin console to see the exact path.