Slack Integration
Connect Lattice agents to Slack for seamless communication.
The Slack integration allows your agents to send messages, respond to mentions, and interact with your team directly in Slack.
Setup
- Go to Settings → Integrations → Slack
- Click 'Add to Slack'
- Authorize Lattice in your workspace
- Select channels for agent access
Using Slack in Agents
javascript
const agent = new Agent({
name: 'SlackBot',
tools: ['slack'],
instructions: 'Monitor #support and help answer questions'
});
// Send a message
await agent.tools.slack.sendMessage({
channel: '#general',
text: 'Hello from Lattice!'
});Triggers
You can trigger workflows from Slack events:
yaml
trigger:
type: slack
event: message
channel: '#support'
contains: 'help'