How We Replaced Zendesk With the Stream Chat API

It started in July as a casual conversation. What are we actually paying Zendesk $100,000+ per year for, and could we build it ourselves? What began as a cost-saving idea soon turned into a real project: replace Zendesk with a support desk of our own.
When we looked closely at a support desk, most of it turned out to be real-time conversation, with a little state on top, including a status, an assignee, a priority, and a few queues. Real-time conversation tends to be the most difficult, and it's what Stream already provides to thousands of apps. Rather than keep paying for a product whose core we already build, we built our own desk on the Stream Chat API, the same API our customers use.
Here's what we built, how a small team built it with AI, and what we learned along the way.
What We Built
The desk lives in three places. Every ticket is one conversation shared between them.

Customers who talk to us in shared Slack channels can also turn a Slack thread into a ticket. A small Node.js service keeps the thread and the ticket in sync.

How a Ticket Works
Every ticket is a chat channel. The customer and the agent are simply chatting, with file uploads and real-time updates that come with Stream Chat out of the box.
Each channel belongs to the customer's organization, using Stream's multi-tenancy, so a customer can only ever see their own organization's tickets.
Ticket details like status, assignee and priority live in our own database, because support queues need fast filtering and sorting. The backend copies those details onto the chat channel, so both sides always see the same status.

When a ticket is solved, the channel is locked. If the customer replies, the ticket reopens automatically. If they don't reply within a few days, the ticket closes and the customer gets a short satisfaction survey.
How We Built It
Our Starting Point
We're a small team that mostly writes JavaScript and Python. Our internal tool is written in Go, which we only knew in general terms. That would normally slow a project like this down.
We built it with Claude Code as a pair programmer, and our own developers reviewed everything before it shipped. Claude Code helped most where we were weakest, including writing solid Go code and tests. It also helped with the work around the code, like keeping three codebases consistent when one feature touched all of them, writing pull request descriptions and fixing failing CI builds.
What Worked
- AI review first, human review second. After each change we had several AI reviewers check the code in parallel, each looking for one kind of problem. This included duplication, needless complexity, performance, and whether the code was in the right place. We fixed those issues before a developer ever looked at it, so human reviews could focus on design.
- Human reviewers made the big calls. Our backend team reviewed the work in several rounds. We went through the feedback one comment at a time, with one small, reviewable fix each. Most of the lessons below came from those reviews.
- Knowing when to say no. AI makes adding code cheap, so it sometimes suggested more than we needed. Deciding what to leave out became a bigger part of our job.
- Code over docs. When our design doc went stale, the AI gave confident answers that no longer matched reality. We learned to point it at the code, and to keep docs short and current.
What We Learned
It Takes a Village to Replace Zendesk
Initially, we approached this project thinking we were building a feature. It turned out to be a cross-team project. Our backend developers took apart our first design in review, and the desk is better for it. Our infrastructure team opened the doors to production. When the first notification emails vanished into thin air, it took three teams to find out why. The fix took a minute. Finding it took the village.
Our Newest Teammate Never Sleeps, But Sometimes Needs a "No"
Claude Code wrote code with us, reviewed every change with a small panel of AI reviewers, fixed failing builds, drafted our pull requests, and even recorded our demo video. It also once answered a question confidently from a design doc that had gone stale. The lesson here is to give it the real code, review everything, and say no when it gets ambitious. Deciding what not to build is still on you.
Writing the Code Was the Easy Half
Most of our time was spent actually getting the project live. Database changes go out before the code that needs them. Three platforms have to ship in the right order, or you get a desk with nothing behind it. And when a third-party platform had a security incident mid-project, we learned how much nicer life is when there are fewer secrets to rotate.
We Read Our Own Docs Like a Customer
We use Stream Chat every day, but building a full product on it is a different animal. Permissions, multi-tenancy, webhooks, frozen channels... we got to know every one of them. Our favorite moment was a ticket that said "not found" in production while we could see it right there in the dashboard. One missing permission. Every developer who builds on our API knows that feeling. Now we do, too.
"Pending" Means Two Things
When an agent marks a ticket pending, they're waiting on the customer. From the customer's side, that same ticket is waiting on them. Building both sides of the conversation forced us to stop thinking like the people who make the product and start thinking like the people who use it.
Hello, Go
We're a JavaScript and Python team, and our internal tool is written in Go. A few months ago we knew Go mostly by reputation. With AI as a patient tutor that would explain every line, we learned it by shipping it. Along the way we finally saw how our dashboard, our backend, and our internal tools fit together.
What Using Our Own Product Taught Us
The biggest surprise was actually not technical. We built a real product on our own API and ran into the same problems our customers do.
- Permissions are hard to get right. Multi-tenant apps limit access to a user's own team by default. Our agents need to work across every customer, and getting there meant reading through the permission settings one grant at a time and hitting a few confusing "not allowed" errors. When we first opened a ticket in production, it said "not found" even though the channel existed. The cause was a missing permission.
- Locked conversations need explicit rules. We wanted solved tickets locked, but customers still had to be able to reply and reopen them, and agents had to be able to read closed ones. Each of those took its own permission, and none of it was obvious at first.
- Limits appear at scale. The obvious design was to add every agent to every customer's conversations, but that runs into the cap on how many teams one user can join. Many customers would hit the same wall.
- SDK details are important. We found small inefficiencies, like a login token being requested twice on connect, and channels being re-watched after a reconnect. Each one is minor, but our customers see them, too.
- Webhooks can be late. Events can arrive late or not at all, so anything important needs a fallback rather than relying on a single event.
Instead of guessing what our customers might struggle with, we were able to send our product and docs teams real, reproducible examples. If your company sells an API, building something real on it is one of the best ways to find out what using it actually feels like.
Where AI Shows Up in the Desk
Because the conversations live in our own systems, we can put AI to work on them:
- Ticket summaries. When a long Slack thread becomes a ticket, AI writes a short summary at the top, so agents don't have to read every message to get started.
- Account summaries. The same conversations feed a weekly summary for our customer success team. My tip from that work would be that if your data is anonymized, tell the model which speakers are your own staff, or it may mistake your team's concerns for the customer's.
- Coming next: answering customers faster. We're planning AI that helps our support engineers answer customers more quickly. It will read the ticket, pull in the customer's context and suggest a reply for the engineer to check and send. It will run on our own sovereign AI, so customer conversations never leave the systems we control.
The Sovereign Part
This started as a cost-saving project, and it gave us more than savings. Our support conversations now live next to the rest of our customer data, in systems we run and can build on, including with our own AI agents.
Next, we're putting our own sovereign AI to work inside the desk, helping our support engineers answer customers faster.
Building Your Own
These are my tips for putting something similar together yourself:
- Start with the chat setup. Decide who can send, upload, edit, and read in a ticket before you build any UI.
- Use multi-tenancy to keep each customer's tickets separate.
- Keep ticket details in a database and copy them to the chat channel, with one system in charge of writing them.
- Use chat events to drive the workflow. A new message can reopen a ticket and send notifications.
- Plan email, auto-close, and satisfaction surveys early. They take longer than the chat itself.
- Let AI widen what you can build, and let people decide what to build.
