Skip to main content

AI Companion โ€” Setup

This page explains how to turn the AI Companion on, how AI credit works, and where you see what it costs. For what the Companion is and how it behaves, read the AI Companion concept first.

There is nothing to configure: no provider, no API key, no model choice. dzbot runs the Companion for you and charges its usage against your organization's AI credit.

Turning it onโ€‹

The Companion only shows up for users who have the AI Companion access right (it lives in the Tickets group of admin rights, as tickets.ai_companion). Grant it to the groups whose members should be able to use the Companion:

  • Server Admin -> Groups -> select a group -> enable AI Companion.

Anyone in a group with this right sees the AI Companion button in the admin header (the sparkles icon, top right). Users without the right never see it.

In Discord, /ai is listed for every member of the server, with no Discord role or integration setting to configure. The bot checks the same right when the command is used and turns everyone else away.

For how access rights and groups work in general, see Access control.

Optional: instructionsโ€‹

You can give the Companion rules on tone, wording or policy that apply to every conversation of your organization โ€” as instructions on the Memory tab of the AI Companion page (see Memory: instructions and notes below). Instructions refine how the Companion behaves but never override its core rules: it still acts only with the rights of the person using it, and every change it makes shows up as a card in the chat. Without instructions, the defaults apply.

How AI credit worksโ€‹

AI credit belongs to your organization and is shared by all of its servers.

  • Included every month: every organization with at least one server on an active subscription or in its trial period gets 1 โ‚ฌ of AI usage per billing month. The billing month follows the organization's oldest active server subscription, or the trial while it runs. Unused included credit does not carry over.
  • Purchased credit: if you need more, you can top up prepaid credit. Purchased credit never expires and stays with the organization even while it has no server. It cannot be transferred, is not refunded and is not paid out.
  • Order of use: the included monthly amount is used first, then purchased credit.

AI apps you connect over MCP (such as Claude or ChatGPT) do not use AI credit โ€” they bring their own model. See Connect AI apps (MCP).

What a request costsโ€‹

Each request is charged in euros after it has finished, based on its size. A typical request costs a fraction of a cent. You only ever see euro amounts.

Every message carries the whole session so far, so messages get more expensive as a session grows. Once a session is very long, each further message costs about twice as much again. For a new topic, start a new session.

If a request costs more than what is left, the balance ends at 0 โ€” it never goes negative โ€” and dzbot covers the difference. After that the Companion declines new requests until credit is added:

  • In the admin panel, users who may top up get a link to do so; everyone else is asked to contact an organization admin.
  • In Discord (/ai and mentions), the message includes a link to the AI Companion page.

Seeing usage and topping upโ€‹

Navigation path:

  • Server Admin -> Organization -> AI Companion

The page needs the access right Access AI Companion page โ€” on the organization (org.ai_companion.access) or on the server (admin.ai_companion.access). Every group that already had the AI Companion right received the server right automatically.

The page shows:

  • Available now โ€” everything the Companion can still spend
  • Included this month โ€” what is left of the 1 โ‚ฌ and the date it renews
  • Purchased credit โ€” your prepaid balance
  • Top up AI credit โ€” the top-up form (see below)
  • spending per day for 7, 30 or 90 days
  • spending per team member
  • the most expensive conversations
  • amounts dzbot covered because the balance ran out mid-conversation
  • Credit added โ€” the history of top-ups and credit granted by dzbot

All of this is on the Credit & usage tab. Users who hold the access right on the organization also see the Memory tab, described below.

The Companion panel itself also shows the current AI credit in its header, and each session shows how much it has cost so far.

Topping upโ€‹

Topping up needs the billing right Access Billing โ€” on the organization (org.billing.access) or on the server (admin.billing.access), the same right used to manage the dzbot subscription. Without it, the top-up form is not shown.

  1. Pick 5 โ‚ฌ, 10 โ‚ฌ or 25 โ‚ฌ, or enter another amount between 5 โ‚ฌ and 500 โ‚ฌ.
  2. Tick the box agreeing that dzbot provides the credit immediately and that you thereby lose your right of withdrawal.
  3. Pay through the Stripe checkout. Stripe adds VAT where it applies.

The credit appears on the page as soon as the payment is confirmed. Each top-up is also booked in your organization's Accounting as a dzbot AI credit expense โ€” in a non-euro organization, as the amount your card was actually charged in its accounting currency. Individual AI requests never appear there โ€” only top-ups.

Memory: instructions and notesโ€‹

The Companion keeps a memory per organization, shared by all its servers, sessions and surfaces (admin panel and Discord). Without it, nothing carries over from one session to the next. It holds two kinds of entries:

  • Instructions are binding. The Companion reads all of them at the start of every session and follows them. Only a person writes an instruction โ€” here, or by accepting one the Companion proposed. The Companion can never write or change one on its own.
  • Notes are what the Companion saved for later sessions: how your team handles something, where a trader is, who decides refunds. It writes, changes and deletes them on its own, also in Ask mode โ€” the chat shows a short line such as Knowledge saved: โ€ฆ with an Undo button. Notes are hints: it checks them against live data before acting on them.

Navigation path:

  • Server Admin -> Organization -> AI Companion -> Memory

The tab needs Access AI Companion page on the organization (org.ai_companion.access); the server right alone does not show it.

Instructions

  • + Instruction adds one; click an instruction to edit or delete it. All instructions together may be at most 8,000 characters โ€” the bar shows how much is used.
  • When the Companion is asked to remember a lasting rule ("from now on always โ€ฆ"), it proposes an instruction. The proposal waits here with Accept, Decline and Edit first, and as a card in the chat. Accepting needs the organization right above; without it, the proposal simply waits here for someone who has it.
  • When a note has helped in five sessions, the Companion asks once whether it should become an instruction. Accepting replaces the note with the instruction.
  • The text of the former AI Companion instructions field moved here as an instruction. Organizations that had only per-server texts got one instruction per server, headed with the server's name.

Notes

  • Each note shows who it was saved by, in how many sessions it was used and when it was last used. Click a note to correct or delete it; deleted notes can be shown with the status filter and restored.
  • The memory holds at most 50 notes. When it is full, the Companion has to merge or delete notes before it can save a new one.
  • The Companion also learns from finished sessions. Two days after a session's last message it reads the session once more and saves what it should have kept but did not: feedback on how it should work and lasting facts about your organization and servers. Such a note shows Learned from a finished session and the person whose session it came from.
  • Once a week the Companion tidies up its memory: it merges notes that say the same, corrects or deletes notes that contradict an instruction (the instruction wins) or no longer hold, and may propose a much-used note as an instruction โ€” that proposal waits here like any other. It never writes or changes an instruction. A note no session used and nobody changed for 90 days is deleted. Changes made this way show Weekly tidy-up.
  • Deleted notes can be restored for 30 days; after that they are gone for good.
  • Learning from sessions and the weekly tidy-up are not charged to your AI credit.
  • A session sees the memory as it was when the session started. Changes you make here apply from the next session on.

Every change made on this tab is recorded in the audit trail.

Verifying it worksโ€‹

Once you have the access right:

  1. Reload the admin panel.
  2. Look for the AI Companion button (sparkles icon) in the top-right header.
  3. Open it, start a New session, and ask something simple like "search for player <name>".

If you get a sensible answer back, you're set. Head to AI Companion usage to learn what it can do.

Troubleshootingโ€‹

If a request fails, the chat shows a short message describing why:

MessageWhat it meansWhat to do
The AI credit is used upYour organization has no included or purchased credit leftTop up under Organization -> AI Companion, or ask an organization admin to
The AI service is currently unavailableA temporary outage of the AI serviceWait a moment and try again
Maximum steps reachedThe task ran long without finishingReply "continue" to pick up where it stopped, or break the task into smaller asks
System errorSomething went wrong on dzbot's sideTry again later