Slack
Slack is a messaging platform for teams to collaborate. Users can communicate with each other via channels, which can be organized by project, topic, team, or whatever else is relevant to the organization. Slack also allows for private conversations between two or more users, as well as the sharing of files and documents.
The Slack Node allows you to connect with your Slack account and retrieve data from specific channels, so you can feed an AI assistant with that data.
Connections to an Slack node
You will need to link the node with an account. You will need to add your Slack Bot Token and the Channel ID of the channel you want to connect to.
Slack Bot Token: your personal ID to identify yourself to Slack. Here more information on how to get it: https://api.slack.com/tutorials/tracks/getting-a-token
Channel ID: the ID of the channel you want to connect to. Here more information on how to get it: https://help.socialintents.com/article/148-how-to-find-your-slack-team-id-and-slack-channel-id
Available Actions
1. Query Slack Messages (slack_query
)
slack_query
)Description: Retrieve messages from a Slack channel.
Inputs:
No required input parameters (the channel is typically configured in the connection or node settings).
Outputs:
channel_id
: The Slack channel ID that was queried.results
: The messages retrieved from the Slack channel.
2. Send a Slack Message (slack_message
)
slack_message
)Description: Send a message to a Slack channel.
Inputs:
message
(string, required): The content/body of the message you want to send.
Outputs:
channel_id
: The Slack channel ID where the message was sent.results
: The status of the message sent (e.g., confirmation or error).
How to Use
To query messages: Set the action to
slack_query
. This will allow you to retrieve recent messages from a specified Slack channel.To send a message: Set the action to
slack_message
and provide the message content in themessage
input parameter. You can use dynamic references (e.g.,{llm-0}
) to send AI-generated content.
Last updated
Was this helpful?