I am trying to use an external select inside of my Slack app. We already configured the app to receive interactions both for interactions but also to load options from external sources.
The webhook gets triggered correctly and sends the input like expected but I need to send a super clean response back and don’t know if it is possible to do so here in Make.
Now every response contains a body, status and headers:
{
"body": "{\"options\":[{\"text\":{\"text\":\"Option 1\",\"type\":\"plain_text\"},\"value\":\"option_1\"},{\"text\":{\"text\":\"Option 2\",\"type\":\"plain_text\"},\"value\":\"option_2\"}]}",
"status": 200,
"headers": null
}
What I need is that it only contains an options array like so:
{
"options": [
{
"text": {
"type": "plain_text",
"text": "Option 1"
},
"value": "option_1"
},
{
"text": {
"type": "plain_text",
"text": "Option 2"
},
"value": "option_2"
}
]
}
Does someone know how I can send back the options dynamically to the select input in Slack?
Here is their documentation: https://api.slack.com/reference/block-kit/block-elements#external_select