Mandala
Tools

Slack

Send, update, delete messages, add reactions in Slack or trigger workflows from Slack events

Usage Instructions

Integrate Slack into the workflow. Can send, update, and delete messages, create canvases, read messages, and add reactions. Requires Bot Token instead of OAuth in advanced mode. Can be used in trigger mode to trigger a workflow when a message is sent to a channel.

Tools

slack_message

Send messages to Slack channels or direct messages. Supports Slack mrkdwn formatting.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringNoTarget Slack channel (e.g., #general)
userIdstringNoTarget Slack user ID for direct messages (e.g., U1234567890)
textstringYesMessage text to send (supports Slack mrkdwn formatting)
thread_tsstringNoThread timestamp to reply to (creates thread reply)
filesfile[]NoFiles to attach to the message

Output

ParameterTypeDescription
messageobjectComplete message object with all properties returned by Slack
tsstringMessage timestamp
channelstringChannel ID where message was sent
fileCountnumberNumber of files uploaded (when files are attached)

slack_canvas

Create and share Slack canvases in channels. Canvases are collaborative documents within Slack.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringYesTarget Slack channel (e.g., #general)
titlestringYesTitle of the canvas
contentstringYesCanvas content in markdown format

Output

ParameterTypeDescription
canvas_idstringID of the created canvas
channelstringChannel where canvas was created
titlestringTitle of the canvas

slack_message_reader

Read the latest messages from Slack channels. Retrieve conversation history with filtering options.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringNoSlack channel to read messages from (e.g., #general)
userIdstringNoUser ID for DM conversation (e.g., U1234567890)
limitnumberNoNumber of messages to retrieve (default: 10, max: 15)
oldeststringNoStart of time range (timestamp)
lateststringNoEnd of time range (timestamp)

Output

ParameterTypeDescription
messagesarrayArray of message objects from the channel

slack_list_channels

List all channels in a Slack workspace. Returns public and private channels the bot has access to.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
includePrivatebooleanNoInclude private channels the bot is a member of (default: true)
excludeArchivedbooleanNoExclude archived channels (default: true)
limitnumberNoMaximum number of channels to return (default: 100, max: 200)

Output

ParameterTypeDescription
channelsarrayArray of channel objects from the workspace
idsarrayArray of channel IDs for easy access
namesarrayArray of channel names for easy access
countnumberTotal number of channels returned

slack_list_members

List all members (user IDs) in a Slack channel. Use with Get User Info to resolve IDs to names.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringYesChannel ID to list members from
limitnumberNoMaximum number of members to return (default: 100, max: 200)

Output

ParameterTypeDescription
membersarrayArray of user IDs who are members of the channel (e.g., U1234567890)
countnumberTotal number of members returned

slack_list_users

List all users in a Slack workspace. Returns user profiles with names and avatars.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
includeDeletedbooleanNoInclude deactivated/deleted users (default: false)
limitnumberNoMaximum number of users to return (default: 100, max: 200)

Output

ParameterTypeDescription
usersarrayArray of user objects from the workspace
idsarrayArray of user IDs for easy access
namesarrayArray of usernames for easy access
countnumberTotal number of users returned

slack_get_user

Get detailed information about a specific Slack user by their user ID.

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
userIdstringYesUser ID to look up (e.g., U1234567890)

Output

ParameterTypeDescription
userobjectDetailed user information

slack_download

Download a file from Slack

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
fileIdstringYesThe ID of the file to download
fileNamestringNoOptional filename override

Output

ParameterTypeDescription
filefileDownloaded file stored in execution files

slack_update_message

Update a message previously sent by the bot in Slack

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringYesChannel ID where the message was posted (e.g., C1234567890)
timestampstringYesTimestamp of the message to update (e.g., 1405894322.002768)
textstringYesNew message text (supports Slack mrkdwn formatting)

Output

ParameterTypeDescription
messageobjectComplete updated message object with all properties returned by Slack
contentstringSuccess message
metadataobjectUpdated message metadata

slack_delete_message

Delete a message previously sent by the bot in Slack

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringYesChannel ID where the message was posted (e.g., C1234567890)
timestampstringYesTimestamp of the message to delete (e.g., 1405894322.002768)

Output

ParameterTypeDescription
contentstringSuccess message
metadataobjectDeleted message metadata

slack_add_reaction

Add an emoji reaction to a Slack message

Input

ParameterTypeRequiredDescription
authMethodstringNoAuthentication method: oauth or bot_token
botTokenstringNoBot token for Custom Bot
channelstringYesChannel ID where the message was posted (e.g., C1234567890)
timestampstringYesTimestamp of the message to react to (e.g., 1405894322.002768)
namestringYesName of the emoji reaction (without colons, e.g., thumbsup, heart, eyes)

Output

ParameterTypeDescription
contentstringSuccess message
metadataobjectReaction metadata

Triggers

slack_webhook

Trigger workflow from Slack events like mentions, messages, and reactions

Output

ParameterTypeDescription
event.event_typestringType of Slack event (e.g., app_mention, message)
event.channelstringSlack channel ID where the event occurred
event.channel_namestringHuman-readable channel name
event.userstringUser ID who triggered the event
event.user_namestringUsername who triggered the event
event.textstringMessage text content
event.timestampstringMessage timestamp from the triggering event
event.thread_tsstringParent thread timestamp (if message is in a thread)
event.team_idstringSlack workspace/team ID
event.event_idstringUnique event identifier

Notes

  • Category: tools
  • Type: slack
Slack