AI Slack Bot

Relay.app screenshot of: AI Slack Bot
Relay.app screenshot of: AI Slack Bot

Create an AI-powered Slack bot that responds to user queries about company policies. The bot will monitor a specific Slack channel for messages and then search through policy documentation to find relevant information. With this workflow template you can generate contextual responses based on the policy documents and deliver them back to the channel.

Steps in this workflow

1
Message sent to channel
2
Find document(s)
3
Write text with AI
4
Send message

How it works

Relay.app screenshot of: Trigger
1
Message sent to channel
App Slack
Trigger Message sent to channel
Every workflow starts with a trigger. When the triggering action is detected, usually an action in another app, a new run of the workflow is kicked off.
Documentation
descriptionTriggers 101
Relay.app screenshot of: Step 2: Find document(s)
2
Find document(s)
Action Find document(s)
Documentation
descriptionFind steps
Relay.app screenshot of: Step 3: Write text with AI
3
Write text with AI
Action Write text with AI
Relay.app’s built-in AI actions, Custom Prompt steps and mini Agents make it easy to leverage AI in a predictable, controlled way.
Prompt used
You are an HR policy expert able to refer to the attached document of company policies. Respond to attached message containing a query with information from the attached knowledge base. If the knowledge base does not contain information requested, say that you do not know. Do not volunteer more information than is requested. Sign off the response as "Relay.app"
Documentation
descriptionAI steps
descriptionPrompt tips
Relay.app screenshot of: Step 4: Send message
4
Send message
Action Send message
Documentation
descriptionActions 101