What the model is told
Post a message to the team's Slack channel. Use it to hand over a summary or flag something the team should know about. Slack returns HTTP 200 even on failure, so check the ok field: ok true means posted; ok false carries an error such as channel_not_found or not_in_channel.
Request
POSThttps://slack.com/api/chat.postMessage
Headers
Content-Typeapplication/json; charset=utf-8AuthorizationBearer YOUR_SLACK_BOT_TOKEN
Body
{
"channel": "YOUR_CHANNEL_ID",
"text": "{{message}}"
}Parameters
message stringThe message to post.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "9ba172ee-a5ab-49e7-9336-30dcbe0c8050",
"type": "HTTP_REQUEST",
"label": "Post Slack Message",
"name": "post_slack_message",
"customName": false,
"description": "Post a message to the team's Slack channel. Use it to hand over a summary or flag something the team should know about. Slack returns HTTP 200 even on failure, so check the ok field: ok true means posted; ok false carries an error such as channel_not_found or not_in_channel.",
"parameters": [
{
"name": "message",
"type": "string",
"description": "The message to post."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://slack.com/api/chat.postMessage"
},
"headers": [
{
"name": "Content-Type",
"value": "application/json; charset=utf-8"
},
{
"name": "Authorization",
"value": "Bearer YOUR_SLACK_BOT_TOKEN"
}
],
"body": "{\n \"channel\": \"YOUR_CHANNEL_ID\",\n \"text\": \"{{message}}\"\n}",
"timeout": null
}
}
}IDs are regenerated on every copy.