Slack Node Documentation
The Slack node in Lamatic.ai enables seamless integration with Slack workspaces. It supports event triggering based on Slack commands and message sending capabilities, making it ideal for automating communication workflows and implementing AI-powered responses within Slack channels.
Features
β Key Functionalities
- Command Triggers: Responds to specific Slack commands (e.g.,
/ask
) - Message Actions: Sends messages to Slack channels
- RAG Integration: Supports question-answering using RAG approach
β Benefits
- Automates Slack communications
- Enables AI-powered responses
- Streamlines internal processes
Available Functionality
Event Trigger
β
When a /ask
command is used
β When a user messages to the bot
β When user replies to a thread created by bot
Actions
β Send message in a channel β Send message to a person β Send message in a thread
Prerequisites
Before setting up the Slack node, ensure you have:
- Access to Slack workspace administration
- Necessary permissions to install apps
- Lamatic application added to your Slack workspace
Installation
- Drag node to the workflow
- Click on Add new Credentials
- Follow the Install Steps
- Once added choose the new credentials
Configuration Reference
Event Trigger: /ask
Command
Parameter | Description | Required | Config Key |
---|---|---|---|
Name | Display name for the node | β | nodeName |
Slash Command | Slack command that triggers this flow | β | command |
Credentials | Slack authentication details | β | credentials |
Channel | Target Slack channel (List/ID/Name) | β | channelName |
Immediate Response | Response shown while flow runs | β | immediateResponseData |
Action: Send Message
Parameter | Description | Required | Config Key |
---|---|---|---|
Name | Display name for the node | β | nodeName |
Credentials | Slack authentication details | β | credentials |
Action | Slack action to execute | β | action |
Channel | Target Slack channel | β | channelName |
Text | Message content | β | text |
Low-Code Examples
// Event Trigger Configuration
{
"triggerNode": {
"nodeId": "slackNode_2",
"nodeType": "slackNode",
"nodeName": "Slack",
"values": {
"command": "ask",
"channelName": "{your-slack-channel}",
"credentials": "{your-slack-credentials}",
"immediateResponseData": "Fetching your answer about {{slackNode_2.output.text}}"
}
}
}
// Action Configuration
{
"nodeId": "slackNode_p4j9hxlq88",
"nodeType": "slackNode",
"nodeName": "Slack Confirmation",
"values": {
"text": "{your-slack-message}",
"action": "postMessage",
"channelName": "{ your-slack-channel }",
"credentials": "{ your-slack-credentials }"
},
"needs": [
"IndexNode_b30vktaxjz"
]
}
Troubleshooting
Common Issues
Problem | Solution |
---|---|
Connection Failed | Verify Slack credentials and workspace access |
Command Not Working | Check slash command configuration and permissions |
Message Not Sending | Confirm channel access and bot permissions |
App Installation | Ensure Lamatic app is properly installed in workspace |
Debugging Tips
- Check Lamatic Flow logs for error details
- Verify Slack workspace permissions
- Test channel accessibility
- Confirm command configurations