A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://api.slack.com/reference/functions/reply_in_thread below:

reply_in_thread Function | Slack

Required parameters

The textual message to send in thread

An individual instance of a message

Optional parameters

Also send the message to the top-level conversation.

Additional

metadata

about the message, which can then be used an

workflow event trigger

.

Buttons to send with the message. Must be wrapped in a block. Only accepts the

workflow_button

element.

Required parameters

An individual instance of the message you sent

Permalink URL of the message that was sent

Optional parameters

Based on certain conditions, you can reply to a message in-thread.

Example workflow step
const replyInThreadStep = ExampleWorkflow.addStep(
  Schema.slack.functions.ReplyInThread,
  {
    message_context: sendMessageStep.outputs.message_context,
    reply_broadcast: false,
    message: "Thank you for submitting a message to #sos, Gilligan.",
  },
);

To reply in-thread with buttons, they must be wrapped in a block (example: section block). Then, use the workflow_button element.

Example workflow step with interactive blocks
const replyInThreadButton = ExampleWorkflow.addStep(
  Schema.slack.functions.ReplyInThread,
  {
    message_context: sendMessageStep.outputs.message_context,
    reply_broadcast: false,
    message: "Please confirm your request for help in #sos.",
    interactive_blocks: [
      {
        "type": "section",
        "text": {
          "type": "plain_text",
          "text": "Click to confirm",
        },
        "accessory": {
          "type": "workflow_button",
          "text": {
            "type": "plain_text",
            "text": "Confirm",
          },
          "action_id": "button-action-id-custom",
          "workflow": {
            "trigger": {
              "url":
                "https://slack.com/shortcuts/Ft0123ABC456/xyz...zyx",
            },
          },
        },
      },
    ]
  },
);

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4