Slack

Reply in Slack Thread

Posts a reply under an existing Slack message.

Unverified

What the model is told

Reply inside an existing Slack thread, for example to add an update to a handover message you posted earlier. You need the thread timestamp (ts) returned when the first message was posted. Returns the reply details.

Request

POSThttps://slack.com/api/chat.postMessage

Headers

  • Content-Typeapplication/json; charset=utf-8
  • AuthorizationBearer YOUR_SLACK_BOT_TOKEN

Body

{
  "channel": "YOUR_CHANNEL_ID",
  "thread_ts": "{{threadTs}}",
  "text": "{{message}}"
}

Parameters

  • threadTs stringThe ts value of the parent message, as returned by Post Slack Message.
  • message stringThe reply text.

Engage payload

{
  "source": "VOICE_AI",
  "tool": {
    "id": "421e69f8-ed10-4d2c-8e26-fb91d2281e86",
    "type": "HTTP_REQUEST",
    "label": "Reply in Slack Thread",
    "name": "reply_in_slack_thread",
    "customName": false,
    "description": "Reply inside an existing Slack thread, for example to add an update to a handover message you posted earlier. You need the thread timestamp (ts) returned when the first message was posted. Returns the reply details.",
    "parameters": [
      {
        "name": "threadTs",
        "type": "string",
        "description": "The ts value of the parent message, as returned by Post Slack Message."
      },
      {
        "name": "message",
        "type": "string",
        "description": "The reply text."
      }
    ],
    "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  \"thread_ts\": \"{{threadTs}}\",\n  \"text\": \"{{message}}\"\n}",
      "timeout": null
    }
  }
}

IDs are regenerated on every copy.