← Back to Blog

How to Run an AI Slack & Team Messaging Agent with OE Runtime

Read Slack channel activity and post structured digest messages automatically. OE Runtime connects to your Slack workspace, summarises recent messages, surfaces unanswered questions, and posts a formatted daily digest — all from a single YAML file.

💬
Step 1
Read Channel Activity
Fetch the last 20 messages from #general with author, timestamp, and summary. Flag unanswered questions.
Step 2
Post Daily Digest
Compose and post a structured daily digest with message count, key topics, open questions, and a reminder.
Step 3
Report
Confirm messages read, topics identified, questions flagged, and digest posted with timestamp.

The Agent YAML

Create a file called agent.yaml inside a team-messaging/ directory:

name: Slack Notifier
description: Summarize channel activity and post a daily digest
instructions: |
  You are a Slack assistant. Read channel activity and post concise digest messages.
  Never post duplicate messages. Keep posts brief and actionable.
  Complete all steps fully before writing your report.
steps:
  - name: Read Channel Activity
    content: |
      Fetch the last 20 messages from the #general channel.
      For each message note: author, timestamp, and a one-sentence summary of the content.
      Identify any messages that contain questions or action items that went unanswered.
  - name: Post Daily Digest
    content: |
      Compose and post a daily digest message to #general with the following format:

      *Daily Digest*
      - [Number] messages in the last session
      - Key topics discussed: [list up to 3]
      - Open questions needing response: [list any unanswered questions]
      - Reminder: stand-up at 9:00 AM tomorrow

      Post the message using the Slack connector.
  - name: Report
    content: |
      Summarize what was done:
      - Messages read from #general
      - Topics and themes identified
      - Unanswered questions flagged
      - Digest message posted (confirm with message timestamp)
connectors:
  - connection_name: My Slack
    connection_type: slack

The Config File

Create oe-config.json in the same directory:

{
  "llm": {
    "provider": "openai",
    "model": "gpt-4o",
    "apiKey": "YOUR_OPENAI_API_KEY"
  },
  "server": {
    "enabled": false,
    "port": 3333,
    "apiKey": "your-secret-api-key"
  },
  "connectors": [
    {
      "connection_name": "My Slack",
      "connection_type": "slack",
      "botToken": "xoxb-YOUR-BOT-TOKEN",
      "channel": "general"
    }
  ]
}

Create a Slack app at api.slack.com/apps, add the chat:write and channels:history scopes, install it to your workspace, and copy the Bot Token (starts with xoxb-). The channel field accepts the channel name without the # symbol.

Download OE Runtime

OE Runtime — Direct Downloads

Run the Agent

Windows

# Run the agent
oe-runtime-win.exe team-messaging/agent.yaml --config team-messaging/oe-config.json

macOS

# Make executable (first time only)
chmod +x oe-runtime-macos

# Run the agent
oe-runtime-macos team-messaging/agent.yaml --config team-messaging/oe-config.json

Linux

# Make executable (first time only)
chmod +x oe-runtime-linux

# Run the agent
oe-runtime-linux team-messaging/agent.yaml --config team-messaging/oe-config.json

macOS Gatekeeper: On first run, macOS may block the binary. Go to System Settings → Privacy & Security → click "Allow Anyway" next to oe-runtime-macos.

Running as an API Server

Add --serve to start OE Runtime as an HTTP server on port 3333:

oe-runtime-win.exe --serve --config team-messaging/oe-config.json

Then send a request:

curl -X POST http://localhost:3333/run \
  -H "Content-Type: application/json" \
  -d '{"yaml": "team-messaging/agent.yaml", "params": {}}'

Or import the Postman collection (download above) to test all endpoints visually.

Use Cases

Build your own agents with OE Runtime

Download OE Runtime and run any AI agent locally or as a server — no cloud required.

Get OE Runtime →