- AI Academy
- Posts
- ๐ Build an AI-Powered Bot for Instant Team Support
๐ Build an AI-Powered Bot for Instant Team Support
How we use Slack and OpenAI assistants to automate workplace Q&A
Reading Time: 5 minutes
Hello AI Enthusiast,
Today, we're diving into how to create a ChatGPT-powered Slack bot that automatically responds to team questions using slash commands. Whether you're handling internal Q&A, employee support, or knowledge sharing, we'll show you how to build an AI assistant that provides instant access to company information 24/7.
The Problem
Your team asks the same questions over and over in Slack. Someone wants to know about vacation policy, another person needs the deployment process, and your HR or IT folks end up copy-pasting the same handbook sections all day. The information exists in your company docs, but people can't find it quickly when they need it.
How We Do It: A Step-by-Step Guide
Let's walk through our solution: creating a Slack bot that answers team questions instantly using your company docs through slash commands to trigger OpenAI assistants for instant responses.
You'll need:
Step 1: Create Your OpenAI Assistant
First, set up a specialized assistant in OpenAI's platform:
Go to platform.openai.com and navigate to "Assistants"
Click "Create" to build a new assistant
Name your assistant (e.g., "Company bot")
Configure the system instructions using our template:
Act as a [ROLE] assistant for [COMPANY NAME]. Answer questions about [SPECIFIC AREAS] based on provided company documents.
Guidelines:
- Reference specific document sections
- Provide [TONE] responses
- If information isn't available, state clearly
- Keep responses [LENGTH PREFERENCE]
- Focus on [SPECIFIC RESPONSIBILITIES]
Upload your company handbook or relevant documents to the assistant
Enable "File Search" tool for document retrieval
Save your assistant and note the Assistant ID

Step 2: Set Up Slack Slash Command
Create a custom slash command in your Slack workspace:
Go to api.slack.com/apps and click "Create New App"
Choose "From scratch" and name your app (e.g., "AI Assistant")
Select your workspace
Navigate to "Slash Commands" in the left sidebar
Click "Create New Command"
Configure your command:
Command:
/question
Request URL: Your Make.com webhook URL (we'll create this next)
Short Description: "AI Academy AI Assistant"
Usage Hint: "question about the company and its processes"

For now, we're just setting up one command, but you can create multiple slash commands later - /hr for HR questions, /tech for technical support, /policy for company policies. Start with one to get the hang of it.
Step 3: Build the Automation
Now create the automation that connects everything:

Log into Make.com and create a new scenario
Add a "Webhooks" module and select "Custom webhook"
Copy the webhook URL and paste it into your Slack command's Request URL
Add an "OpenAI" module after the webhook
Select "Message an assistant" action
Configure the OpenAI module:
Connection: Your OpenAI API connection
Assistant: Select your "Handbook bot" assistant
Role: "User"
Message: Map the "text" field from the webhook (this contains the user's question)

Step 4: Complete the Response Loop
Send the AI response back to Slack:
Add a "Slack" module after the OpenAI module
Select "Create a Message" action
Configure the response:
Connection: Your Slack app connection
Channel ID or name: Map the "channel_id" from the webhook
Text: Map the "Result" from the OpenAI module

Step 5: Test Your Bot
Activate your scenario and test it in Slack:
Go to any Slack channel where your bot is installed
Type
/question how can i take a week off?
Your bot should respond with detailed vacation policy information from your handbook


The automation will process the question through your OpenAI assistant and return a comprehensive answer based on your company documentation.
Want to master AI automation skills like this? Our AI Agent Bootcamp teaches you to build practical AI solutions for real business challenges. You'll work on projects directly related to your job, gaining hands-on experience.
Your Turn
Pick one thing your team asks about constantly - vacation policy, deployment steps, whatever. Build an assistant for just that topic first. Test it with a few people, fix what breaks, then add more documents later. Start simple. You can always create more slash commands once this one works.
Want to get even more practical? Explore hands-on AI learning with AI Academy:
AI Academy Membership: Get 12 months of access to all our cohort-based programs, live webinars, on-demand courses, and tutorials.
AI Agent Bootcamp: Accelerate processes and solve business problems by mastering prompts and building AI Agents, without coding.
Corporate Training: Equip your team with the skills they need to unlock the potential of AI in your business.
Practical Introduction to ChatGPT: A free course on using ChatGPT confidently, understanding its workings, and exploring its potential.
We'll be back with more AI tips soon!