Skip to main content

Call method

Action ID: tools.slack_sdk.call_method Instantiate a Slack client and call a Slack SDK or Web API method. Reference: https://docs.slack.dev/reference/methods

Secrets

Required secrets:
  • slack: required values SLACK_BOT_TOKEN.

Input fields

string
required
Slack Python SDK method name or Web API method name (e.g. chat_postMessage or chat.postMessage)
object | null
Slack Python SDK method parametersDefault: null.

Call paginated method

Action ID: tools.slack_sdk.call_paginated_method Instantiate a Slack client and call a paginated Slack SDK method. Reference: https://docs.slack.dev/apis/web-api/pagination#methods

Secrets

Required secrets:
  • slack: required values SLACK_BOT_TOKEN.

Input fields

string
required
Slack Python SDK method name that supports cursor pagination (e.g. conversations_history)
string | null
Key to extract from the response.Default: null.
integer
Maximum number of items to retrieve. Must be less than 1000Default: 200.
object | null
Slack Python SDK method parametersDefault: null.

Post response

Action ID: tools.slack_sdk.post_response Post messsage back to Slack interaction via response_url. Reference: https://docs.slack.dev/interactivity/handling-user-interaction#message_responses

Input fields

string
required
Webhook URL.
array[object] | null
Blocks to send to the webhook.Default: null.
boolean
Whether to replace the original message.Default: false.
string
Response type. Defaults to ephemeral.Default: "ephemeral".Allowed values: in_channel, ephemeral.
string | null
Text to send to the webhook.Default: null.
string | null
Thread timestamp. If None, defaults to the current timestamp.Default: null.