August 20, 2026 · The Minely team
How to build a ticket bot with AI (panels, claims, transcripts)
Tickets turn "DM the staff" from chaos into a queue: a member clicks a button, gets a private channel with the team, and everything is logged when it closes. It is the single biggest quality-of-life upgrade for a growing server, and the bot behind it is a clean little state machine.
What a ticket bot actually is
A ticket bot posts a panel with a button; clicking it creates a private channel visible to the member and staff. Staff can claim the ticket, the member explains their issue, and closing it archives the conversation as a transcript both sides can keep.
How it works under the hood
The panel button is a persistent component with a custom id; on click, the bot creates a channel with permission overwrites (member + staff roles, hidden from everyone else) and records a ticket record (id, creator, claimer, state). Claiming assigns the ticket to one staff member and tells the rest it is handled. Closing runs a transcript (messages rendered to HTML or text), posts it to a log channel, and deletes the ticket channel after a grace countdown.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a ticket bot with a button panel, private ticket channels, claim and close commands, per-category panels, HTML transcripts, and a log channel
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Post the panel and wire the button interaction.
- Create per-ticket channels with the right overwrites.
- Add claim, add, remove, and close commands for staff.
- Generate transcripts and post them on close.
- Add per-category panels and ticket numbering.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
One panel per category (support, report, apply) beats one mega-panel — it routes tickets to the right team from the start. Transcripts should land in a staff log channel with the case metadata: creator, claimer, duration, and message count.
Tips that save you a rebuild
- Ping the creator and the staff role when the channel opens, not everyone.
- Limit one open ticket per member; ticket spam is a real thing.
- Keep transcripts forever; the second time a user returns, the history pays for itself.
- Number tickets sequentially; "ticket 481" is how staff actually talk about them.
Questions people ask
Can members reopen a ticket?
Ask for a reopen flow that recreates the channel from the transcript record.
How do I rate tickets?
A post-close rating prompt in the member's DMs, aggregated weekly for the staff.
What about voice tickets?
A voice-channel variant of the same record; the plumbing is identical.
If you can describe it, you can ship it. Take the prompt from this guide, tweak one detail, and build your version tonight.
