Overview

Team messaging platform connecting conversations, files and tools. Through Langdock’s integration, you can access and manage Slack directly from your conversations.
Authentication: OAuth
Category: Productivity & Collaboration
Availability: All workspace plans

Available Actions

Get current user

slack.getcurrentuser
Gets information about the authenticated user Requires Confirmation: No Parameters: None Output: Returns the current user’s information

Search messages

slack.searchmessages
Searches for messages matching a query Requires Confirmation: No Parameters:
  • query (TEXT, Required): The search query used to search for messages. Plain text search query with optional modifiers. Supports location modifiers (in:channel_name, in:@username), person modifiers (from:@username, to:@username), date/time modifiers (after:YYYY-MM-DD, before:YYYY-MM-DD), content type modifiers (has:link, has:image, has:file), status modifiers (is:saved, is:thread), and boolean operators (AND, OR, NOT)
Output: Returns a list of messages matching the search criteria

Send message

slack.sendmessage
Sends a message to a channel Requires Confirmation: Yes Parameters:
  • channelId (TEXT, Required): An encoded ID or channel name that represents a channel, private group, or IM channel to send the message to
    • text (MULTI_LINE_TEXT, Required): The text of the message to send (max 3000 characters)
Output: Returns the sent message details

Get conversation history

slack.getconversationhistory
Fetches a conversation’s history of messages and events. All timestamps are handled in UTC timezone. Requires Confirmation: No Parameters:
  • channelId (TEXT, Required): Conversation ID to fetch history for
    • latest (TEXT, Optional): End of time range of messages to include in results. Messages sent after this timestamp will not be included. Default is the current time. Format: RFC3339 in UTC (e.g., ‘2024-03-20T15:30:00Z’). The ‘Z’ suffix indicates UTC timezone.
    • oldest (TEXT, Optional): Start of time range of messages to include in results. Messages sent before this timestamp will not be included. Format: RFC3339 in UTC (e.g., ‘2024-03-19T15:30:00Z’). The ‘Z’ suffix indicates UTC timezone.
    • showThreads (BOOLEAN, Optional): Whether to include thread replies in the response. If false, thread replies will be empty arrays.
Output: Returns the conversation history with messages and events

Get channels

slack.getchannels
Gets all Slack channels (public and private team channels only) Requires Confirmation: No Parameters:
  • channelTypes (SELECT, Optional): Filter channels by type. Select one or more channel types to include in results: Public Channels (open channels visible to all workspace members) or Private Channels (invite-only channels for specific teams or topics). Leave empty to include both Public and Private channels by default.
Output: Returns a list of channels

Get people

slack.getpeople
Gets all Slack people Requires Confirmation: No Parameters: None Output: Returns a list of people in the workspace

Get channels by name

slack.getchannelsbyname
Searches for channels in your Slack workspace by name (public and private team channels only) Requires Confirmation: No Parameters:
  • channelName (TEXT, Required): Search term used to find channels by their names. For example, you can search for ‘general’, ‘marketing’, ‘support’ or ‘eng’ to find channels with those terms in their names
    • channelTypes (SELECT, Optional): Filter channels by type. Select one or more channel types to include in search results: Public Channels or Private Channels. Leave empty to search both Public and Private channels by default.
Output: Returns matching channels

List user conversations

slack.listuserconversations
Lists all conversations (channels, DMs, group DMs) that a specific user is a member of Requires Confirmation: No Parameters:
  • userId (TEXT, Required): The user ID to get conversations for. Use the User ID (starts with ‘U’) not the username. You can get user IDs from the ‘Get people’ or ‘Search user by email’ actions.
    • conversationTypes (SELECT, Optional): Filter conversations by type. Select one or more conversation types to include in results: Public Channels, Private Channels, Direct Messages, or Group Direct Messages. Leave empty to include all conversation types the user is a member of.
Output: Returns a list of conversations for the user

Search user by email

slack.searchuserbyemail
Looks up a Slack user by their email address Requires Confirmation: No Parameters:
  • email (TEXT, Required): The email address of the user to look up
Output: Returns the user details if found

Reply to message

slack.replytomessage
This action replies to a message in the thread Requires Confirmation: Yes Parameters:
  • channelId (TEXT, Required): An encoded ID or channel name that represents a channel, private group, or IM channel to send the message to
    • text (TEXT, Required): The text of the message to send
    • threadTs (TEXT, Required): The Unix timestamp of the original message to ensure the reply is in the correct thread. Use the ‘ts_unix’ or ‘thread_ts_unix’ field from ‘Get conversation history’ or ‘Search messages’ actions. Format: Unix timestamp with microseconds (e.g., ‘1710951000.123456’)
Output: Returns the reply message details

Triggers


slack.newmessagebysearch
Triggers when a new message is found by searching for a specific keyword or other criteria Requires Confirmation: No Parameters:
  • keywords (TEXT, Optional): Text to search for in messages (e.g., ‘project update’)
    • in (TEXT, Optional): Syntax for ‘in’ parameter: in:channel_name, in:group_name, or in:<@UserID>. Example values: in:general, in:<@U05K6TALQ87>. The ‘in:’ prefix will be added automatically if not included. You can get the User Id from the user profile -> Click on the ‘three dots button’ -> ‘Copy member ID’
    • from (TEXT, Optional): Syntax for ‘from’ parameter: from:<@UserID> or from:botname. Example values: from:<@U05K6TALQ87> or from:slackbot. The ‘from:’ prefix will be added automatically if not included. You can get the User Id from the user profile -> Click on the ‘three dots button’ -> ‘Copy member ID’
Output: Returns the operation result

New message in channel

slack.newmessageinchannel
Triggers when a new message was posted in a channel (public, private, DM, etc.) Requires Confirmation: No Parameters:
  • channelId (TEXT, Required): The id of the channel that should be monitored for new messages. A channel id can be found for public channels, private channels, private messages and private group messages. You can find the channel id of a conversation by clicking on the top left of a conversation (name), in the ‘About’ tab.
Output: Returns the operation result

New message in conversations

slack.newmessageinconversations
Triggers when a new message is posted in a specific conversation (DM, group DM, or channel) Requires Confirmation: No Parameters:
  • conversationId (TEXT, Required): The ID of the conversation to monitor for new messages. This can be: A direct message (DM) conversation ID (starts with ‘D’), A group direct message conversation ID (starts with ‘G’), or A channel ID (starts with ‘C’). You can find conversation IDs using the ‘List user conversations’ action or by checking the conversation details in Slack.
    • latest (TEXT, Optional): End of time range of messages to include in results. Messages sent after this timestamp will not be included. Default is the current time. Format: Unix timestamp (e.g., ‘1609459200’ for 2021-01-01).
    • oldest (TEXT, Optional): Start of time range of messages to include in results. Messages sent before this timestamp will not be included. Format: Unix timestamp (e.g., ‘1609372800’ for 2020-12-31).
Output: Returns the operation result

Common Use Cases

Data Management

Manage and organize your Slack data

Automation

Automate workflows with Slack

Reporting

Generate insights and reports

Integration

Connect Slack with other tools

Best Practices

Getting Started:
  1. Enable the Slack integration in your workspace settings
  2. Authenticate using OAuth
  3. Test the connection with a simple read operation
  4. Explore available actions for your use case
Important Considerations:
  • Ensure proper authentication credentials
  • Respect rate limits and API quotas
  • Review data privacy settings
  • Test operations in a safe environment first

Troubleshooting

IssueSolution
Authentication failedVerify your OAuth credentials
Rate limit exceededReduce request frequency
Data not foundCheck permissions and data availability
Connection timeoutVerify network connectivity

Support

For additional help with the Slack integration, contact support@langdock.com