Slack Integration
Search your knowledge base directly from Slack.
Features
- /ask - Search and get AI-powered answers
- @LH42 - Mention the bot in any channel
- Notifications - Get alerts for document updates
- Thread context - Follow-up questions in threads
Setup
1. Install the App
- Go to Settings > Integrations > Slack
- Click "Add to Slack"
- Authorize the app for your workspace
2. Configure Permissions
Choose which channels the bot can access:
- All public channels
- Specific channels only
- Direct messages
3. Map Users (Optional)
Link Slack users to LH42 accounts for personalized results:
python
client.integrations.slack.map_user(
slack_user_id="U123ABC",
lakehouse_user_id="user_xyz"
)Using the Bot
Slash Command
/ask What is our vacation policy?Mention
@LH42 Find the latest sales reportIn Threads
Continue the conversation in threads for follow-up questions.
Customization
Configure bot behavior:
python
client.integrations.slack.update({
"default_limit": 5,
"show_sources": True,
"allow_feedback": True
})Notifications
Set up document update notifications:
python
client.integrations.slack.create_notification({
"channel": "#knowledge-updates",
"events": ["document.processed", "document.updated"]
})Troubleshooting
Bot not responding: Check the bot is invited to the channel
"Access denied": Verify user permissions in LH42
Slow responses: Consider caching frequently asked questions