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)
- Install –
pnpm install(Node 22+, pnpm) and have Python 3.12 +uv. - Create a managed channel – either run the CopilotKit CLI skill
channels setupor run the manualproject select/channels addcommands. This registers a Slack app manifest with CopilotKit Intelligence and gives you the Slack Bot Token and Signing Secret. - Configure – copy
.env.exampleto.envand fill in:OPENAI_API_KEYINTELLIGENCE_API_KEYINTELLIGENCE_CHANNEL_NAME(defaultopen-tag)- optional tool keys (GitHub, Linear, Notion, etc.)
- Run –
pnpm devstarts the Python agent (auto‑reload) and the Node runtime. - Invite – in Slack,
/invite @OpenTagto 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 insystem.py). - Agent logic –
agent/agent.pyis the LangGraph entry point; you can replace it with any AG‑UI‑compatible service by changingAGENT_URL. - Tools – add or remove entries in
agent/tools.pyandagent/internal_sources.py; the runtime will expose them automatically. - Slack UI – modify
app/components/for new block types or changeapp/channel.tsxfor different trigger commands. - Deployment – customize
.railway/railway.tsor 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