Introduction
Build Median into your product. The widget, custom tools, median.config.ts, the APIs, webhooks, MCP and how it all fits together.
Median is an AI support agent for your product, with an inbox for whatever it cannot finish. These docs are for building it in: the widget, the tools the agent calls on your server, and the APIs. Using the dashboard day to day is covered in the help center.
How it works
| Step | What happens | Read more |
|---|---|---|
| Customers write in | From the support widget, the support modal, the contact form or the feedback panel on your site. Also from your public site’s support page, by email, in your Discord server, or through your own UI on the API. | Components |
| The agent answers | It searches your knowledge, calls the tools you define, and replies in the thread. | Custom tools, Build your knowledge base |
| Your team takes over | A thread the agent cannot finish moves to Needs a person in the inbox. High risk tool calls wait there for a teammate’s approval. | Work the inbox |
| Signal collects the rest | Bugs and suggestions from conversations and the feedback panel land in Signal. Send them on to Linear or GitHub. | Triage bugs and suggestions |
Architecture walks a message through every piece.
Set up
| Path | What you do | Start here |
|---|---|---|
| Dashboard | Create a key, mount the widget, and write the agent’s first document in the browser. | Quickstart |
| CLI | Run median login once. Every later step is a command, so a coding agent can run it. |
CLI |
Docs or help center
| You want to | Go to |
|---|---|
| Mount the widget, sign users in, theme it | Components |
Give the agent tools, write median.config.ts |
Custom tools |
| Call the REST API, use the CLI or MCP, receive webhooks | API overview |
| See what every surface can do, and what asks first | Capabilities |
| Answer customers, set up the agent, connect channels, pay | The help center |
| Fix something that is not working | Troubleshooting in the help center, and Tool errors here |
For AI coding agents
| Resource | Where |
|---|---|
| Markdown copy of any page | Add .md to the page URL, as in https://docs.median.sh/installation.md. The home page is /index.md. |
| Page index | https://docs.median.sh/llms.txt lists every page with its description. |
| Whole site in one file | https://docs.median.sh/llms-full.txt |
| The help center, the same way | https://median.help/llms.txt and https://median.help/llms-full.txt |
| Your workspace | The MCP server lets an agent read and work your inbox, knowledge and settings. |
Next steps
Quickstart
From a new account to an answered test message.
Install the widget
Every stack, environment variables, identity and CSP.
Custom tools
Let the agent look things up and act in your product.
Architecture
What runs where, and how a message moves through it.
API
Keys, authentication and the REST API.
Help center
Using the dashboard, and fixing what goes wrong.