CopilotKit/OpenTag

OpenTag: The Channels SDK starter application, a self-hosted AI on-call triage bot for Slack and Microsoft Teams, built with AG-UI and LangGraph. Fork it and ship your own.

OpenTag – A Self‑Hosted Knowledge‑Work Agent for Slack & Teams

What it is – OpenTag is a ready‑to‑run, open‑source application that lets you run a generative AI “knowledge‑work” assistant inside Slack or Microsoft Teams. The assistant lives in two parts:

  • Agent – a Python LangGraph‑based agent that talks to OpenAI (or any compatible model) and can call a set of productivity tools (web search, GitHub, Linear, Notion, Composio/Arcade, etc.).
  • Runtime / Channel – a Node.js process built with CopilotKit’s Channels SDK that connects the agent to the Slack or Teams platform via CopilotKit’s managed “Intelligence” service. The runtime also renders rich UI elements (charts, tables, issue cards, etc.) directly in the chat thread.

Why it matters – It shows how a modern AI‑augmented workflow can be deployed without exposing a public webhook or using Slack’s Socket Mode. All platform credentials are handled by CopilotKit’s hosted “Intelligence” layer, while the heavy‑weight language model runs behind your own firewall.


Quick start (from the README)

  1. Install – pnpm install (Node 22+, pnpm) and have Python 3.12 + uv.
  2. Create a managed channel – either run the CopilotKit CLI skill channels setup or run the manual project select / channels add commands. This registers a Slack app manifest with CopilotKit Intelligence and gives you the Slack Bot Token and Signing Secret.
  3. Configure – copy .env.example to .env and fill in:
    • OPENAI_API_KEY
    • INTELLIGENCE_API_KEY
    • INTELLIGENCE_CHANNEL_NAME (default open-tag)
    • optional tool keys (GitHub, Linear, Notion, etc.)
  4. Run – pnpm dev starts the Python agent (auto‑reload) and the Node runtime.
  5. Invite – in Slack, /invite @OpenTag to add the bot to a channel.

You can then interact with the bot by mentioning it, e.g. @OpenTag summarize last week’s metrics. The bot can:

  • Render a native Slack line chart from an uploaded CSV.
  • Create a Linear issue behind an approval button.
  • Perform web research and return a table with cited sources.

Core components

Component Language / Tech Role
Channel runtime Node + TypeScript, CopilotKit Channels SDK Bridges Slack/Teams to the agent, hosts the UI components, manages lifecycle, graceful shutdown
Agent Python, LangGraph Implements the reasoning flow, calls tools, produces responses
Tools Various APIs (GitHub, Linear, Notion, Composio/Arcade, web‑search) Provide data and write‑back capabilities; optional based on supplied credentials
Deployment Railway (two‑service) or AWS ECS Fargate (single task) Production‑grade deployment scripts are included; Docker images are published to GitHub Container Registry
UI rendering Slack native blocks (charts, tables, issue cards) Defined in app/components/ and app/tools/ – each UI element is a single file

Extensibility

  • Persona / prompts – edit files under agent/prompts/ (system prompt lives in system.py).
  • Agent logic – agent/agent.py is the LangGraph entry point; you can replace it with any AG‑UI‑compatible service by changing AGENT_URL.
  • Tools – add or remove entries in agent/tools.py and agent/internal_sources.py; the runtime will expose them automatically.
  • Slack UI – modify app/components/ for new block types or change app/channel.tsx for different trigger commands.
  • Deployment – customize .railway/railway.ts or the AWS CloudFormation scripts for your own infra.

When to use OpenTag

  • You need a self‑hosted AI assistant that lives where your team already chats.
  • You want rich, native Slack/Teams UI (charts, tables, approval buttons) instead of plain text.
  • You prefer managed delivery of platform credentials via CopilotKit Intelligence, avoiding public webhooks.
  • You have a Python‑based LangGraph or other AG‑UI agent you’d like to expose to chat.

If you only need a quick demo or a single‑command bot, the repository may be more heavyweight than required. For production‑grade knowledge‑work automation, however, OpenTag provides a complete, deployable stack.


License

OpenTag is released under the MIT license.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project