How to Connect Ollama and Slack: Step-by-Step Guide (2026)

As businesses rapidly evolve towards more dynamic and data-driven operations, the ability to integrate advanced AI capabilities directly into daily workflows becomes a significant competitive advantage. For many organizations, Slack serves as the central nervous system for communication and collaboration. Concurrently, local Large Language Models (LLMs) powered by platforms like Ollama offer unprecedented control over data privacy, customization, and cost-effectiveness compared to cloud-based alternatives.

Connecting Ollama and Slack allows teams to harness the power of AI-driven insights without leaving their primary communication platform. Imagine instantly summarizing long Slack threads, getting quick answers to complex questions, or even generating content drafts directly within a channel. This guide provides a step-by-step approach to integrating Ollama with Slack, future-proofing your team's productivity for 2026 and beyond by ensuring information is always at your fingertips, securely and efficiently.

Why Connect Ollama and Slack?

The synergy between Ollama and Slack addresses several modern business challenges:

What You Need Before Starting

To successfully integrate Ollama and Slack, ensure you have the following prerequisites:

Step-by-Step Guide to Connecting Ollama and Slack

This guide outlines how to build an automation where a message in Slack triggers Ollama, and Ollama's response is posted back to Slack.

Step 1: Set Up and Verify Your Ollama Instance

  1. Install Ollama and Download a Model: If you haven't already, install Ollama on your chosen server. Download a suitable LLM by running a command like ollama run llama3 in your terminal.
  2. Verify Ollama API Accessibility: By default, Ollama's API runs on http://localhost:11434. Ensure this port is accessible from your integration platform. If running on a remote server, make sure the firewall allows inbound connections to port 11434 from your integration platform's IP range or is otherwise securely exposed. You can test this by running curl -X POST http://localhost:11434/api/generate -d '{"model": "llama3", "prompt": "Why is the sky blue?"}' from the server.

Step 2: Create and Configure a Slack App

  1. Create a New Slack App: Go to api.slack.com/apps and click "Create an App". Choose "From scratch" and give your app a descriptive name (e.g., "Ollama Assistant") and select your workspace.
  2. Add Bot Token Scopes: In your app's settings, navigate to "OAuth & Permissions". Under "Bot Token Scopes", add the following permissions:
    • app_mentions:read (to detect when your bot is mentioned)
    • chat:write (to post messages in channels)
    • channels:read (to see channel names)
    • groups:read (to see private channel names)
    • mpim:read (to see multi-person direct message names)
    • im:read (to see direct message names)
  3. Install the App to Workspace: Click "Install to Workspace" at the top of the "OAuth & Permissions" page. Authorize the app. This will generate your "Bot User OAuth Token" (starts with xoxb-). Copy this token; you'll need it for your integration platform.
  4. Configure Event Subscriptions: Navigate to "Event Subscriptions" in your app settings. Toggle "Enable Events" on. Under "Request URL", you will paste a webhook URL provided by your integration platform in a later step (e.g., a "Webhook" module). Under "Subscribe to bot events", add app_mention and message.channels (if you want to process all messages in public channels where the bot is a member). Save changes.

Step 3: Set Up Your Integration Platform Scenario

  1. Create a New Scenario/Workflow: Log in to your chosen integration platform (e.g., Make.com). Create a new scenario or workflow.
  2. Add a Slack Trigger Module: Search for "Slack" and select a trigger module that listens for new messages or app mentions. Connect your Slack account using the "Bot User OAuth Token" you obtained in Step 2. Configure it to listen to the specific events you enabled in Slack's Event Subscriptions (e.g., "Watch App Mentions").
  3. Add an HTTP Module (Make a Request): After the Slack trigger, add an "HTTP" module, selecting "Make a request". This module will call your Ollama API.
  4. Add a Slack Action Module: After the HTTP module, add another "Slack" module, selecting an action like "Send a Message". This will post Ollama's response back to Slack.

Step 4: Configure the Ollama API Call

  1. HTTP Module Configuration:
    • Method: POST
    • URL: http://[Your_Ollama_IP_or_Hostname]:11434/api/generate (Replace [Your_Ollama_IP_or_Hostname] with the actual IP address or hostname where Ollama is running).
    • Headers: Add a header: Content-Type: application/json.
    • Body Type: JSON (Raw).
    • Request Content: Construct the JSON payload for Ollama. You'll dynamically insert the Slack message text into the prompt.
      {
          "model": "llama3",
          "prompt": "{{The text content from your Slack trigger module}}",
          "stream": false
      }

      Replace {{The text content from your Slack trigger module}} with the actual variable provided by your integration platform that contains the text of the Slack message that triggered the scenario (e.g., `{{2.text}}` if Slack is module 2).

Step 5: Process Ollama's Response and Send to Slack

  1. Parse Ollama's Response: The Ollama API returns JSON. Your integration platform will likely have a way to parse this. The relevant part will be in a field like response or message.content depending on the Ollama API endpoint used (/api/generate or /api/chat).
  2. Configure Slack "Send a Message" Module:
    • Connection: Use the same Slack connection you created earlier.
    • Channel ID/User ID: Dynamically select the channel or user ID from which the original Slack message originated (available from the Slack trigger module, e.g., `{{2.channel}}`).
    • Message Text: Insert the parsed response from the Ollama HTTP module. For example, if the response is in {{3.response.response}} (assuming HTTP is module 3), then use that variable. You might want to prepend "Ollama says: " or similar.

Step 6: Test, Activate, and Deploy

  1. Test Your Scenario: Run a test of your entire scenario within the integration platform. Then, go to your Slack workspace and mention your bot (e.g., @Ollama Assistant What is the capital of France?) or send a message in a monitored channel.
  2. Verify the Response: Check if Ollama's response appears correctly in Slack. Review the logs in your integration platform for any errors.
  3. Activate/Deploy: Once satisfied, activate or deploy your scenario. Your Ollama-powered Slack assistant is now live!
Ready to set this up? Build this automation free on Make.com.
Start free on Make.com →

Popular Use Cases for Ollama and Slack Integration

Time Savings Estimate

Implementing an Ollama and Slack integration can lead to substantial time savings across an organization. Consider a team of 10 employees, each spending an average of 30 minutes per day searching for information, drafting routine content, or waiting for answers from colleagues. With an AI assistant handling these tasks instantly, that's a saving of 5 hours per day, or 25 hours per week for the team. Over a year, this accumulates to over 1,300 hours, allowing employees to focus on higher-value, more strategic work that drives business growth. The reduction in context switching and improved access to information contributes directly to increased operational efficiency and employee satisfaction.

Frequently Asked Questions

What kind of LLMs can Ollama run?

Ollama supports a wide range of open-source Large Language Models, including popular choices like Llama 3, Mistral, Gemma, Phi-3, Zephyr, and many more. You can easily download and switch between models directly through the Ollama interface to find the best fit for your specific tasks.

Is it secure to connect Ollama and Slack?

Yes, when configured correctly, this integration is secure. Ollama runs your LLMs locally, ensuring that your data processed by the AI remains within your environment. The integration platform uses secure OAuth tokens and API keys for Slack, meaning your sensitive Slack data is handled through authenticated channels. Always ensure your Ollama instance is securely networked and your integration platform's credentials are well-protected.

Do I need coding skills to set this up?

While a basic understanding of API concepts is helpful, extensive coding skills are generally not required. Using a no-code or low-code integration platform significantly simplifies the process. These platforms offer visual interfaces for connecting applications, making API calls, and mapping data, allowing users to build complex automations with minimal to no code.

Written by Vangari Sai Sampath, Automation Specialist · Integration Directory · Hyderabad, India