Slack bot creator

Automatically respond to Slack messages with AI-powered answers based on company policy documents.
Created by
Relay.app logoRelay.app Team
Relay.app screenshot of: Slack bot creator
Relay.app screenshot of: Slack bot creator

Steps in this workflow

1
Slack logo
Message sent to channel
2
Google Docs logo
Look up HR employee policies
3
Relay.app logo
Answer HR Questions with AI
4
Slack logo
Send message

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.

1
Slack logo
Message sent to channel
Relay.app screenshot of: Trigger

Monitor a configured Slack channel for new messages. The trigger activates the workflow whenever a message is posted to the specified channel.

2
Google Docs logo
Look up HR employee policies
Relay.app screenshot of: Step 2: Look up HR employee policies

Search for and retrieve policy documents that contain 'Policies' in their title. This step provides the knowledge base for the AI to reference when generating responses.

3
Relay.app logo
Answer HR Questions with AI
Relay.app screenshot of: Step 3: Answer HR Questions with AI

Generate a response using AI that references the policy documents while addressing the user's query. The AI is configured to act as an HR policy expert and signs responses as 'Relay.app'.

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"
4
Slack logo
Send message
Relay.app screenshot of: Step 4: Send message

Post the AI-generated response back to the same Slack channel. The message is formatted in Markdown and sent through a bot account.