Skip to main content

Call method

Action ID: tools.slack_sdk.call_method Instantiate a Slack client and call a Slack SDK method. Reference: https://api.slack.com/methods

Secrets

Required secrets:
  • slack: required values SLACK_BOT_TOKEN.

Input fields

sdk_method
string
required
Slack Python SDK method name (e.g. chat_postMessage)
params
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://api.slack.com/apis/pagination#methods

Secrets

Required secrets:
  • slack: required values SLACK_BOT_TOKEN.

Input fields

sdk_method
string
required
Slack Python SDK method name that supports cursor pagination (e.g. conversations_history)
key
string | null
Key to extract from the response.Default: null.
limit
integer
Maximum number of items to retrieve. Must be less than 1000Default: 200.
params
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://api.slack.com/interactivity/handling#message_responses

Input fields

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