Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    AI credits, budgets and how your data is used

    How AI usage is metered in credits, what each plan includes, top-up packs, budgets per client and per agent with alerts, retention, and the data-use statement.

    Every assistant question, agent step and AI feature (bank categorisation, document reading, accrual proposals, flux commentary, corporate tax extraction) is metered in credits, and every tool call an assistant makes over MCP costs one credit from the same pool. Usage has been metered since the first day, even while nothing is charged, so the Usage tab always shows what the month would cost.

    Where to look

    1. Go to Settings → Company → AI and open the Usage view.
    2. The AI usage and credits card shows what is left (Remaining, from the plan and from packs), what the plan includes, Used this month and the number of MCP tool calls.
    3. Below it, usage is broken down by feature, by client (a firm sees each managed organisation with its own remaining credits) and by agent (with the number of runs).
    4. Budgets caps a client or an agent per month; Retention decides how long AI data is kept.

    Credits and the charge-start date

    PlanCredits included every month
    Starter0
    Professional500
    Enterprise2,000
    • One MCP tool call is one credit. A model call costs by tokens and tier: the Fast tier costs 1 credit per 1,000 tokens, Powerful 5. The deterministic engine (rules, checks, the stubbed assistant) costs nothing.
    • The plan's credits reset on the first of the month. Credits from a pack carry over.
    • No charge-start date has been announced. Until one is, usage is recorded and shown but nothing is debited. Any charge-start date is announced at least 90 days ahead and shown on the Usage tab and on the pricing page.
    • Once charging starts, an empty pool refuses the next assistant question, agent step or MCP call with ai_credits_exhausted and a sentence on what to do. Switch Allow overage on to keep going past the allowance (the pool goes negative until the next top-up or reset).

    Top-up packs

    PackCreditsPrice (AED, excl. VAT)
    Small50099
    Medium2,000349
    Large6,000899

    Buying a pack by card

    An owner or admin clicks Top up on the Usage tab (or Buy a pack on the assistant's notice when the pool runs out) and picks a pack. The card on file under Settings → Subscription is charged the pack's price plus VAT:

    • Paid: the credits are added at once and the pack's tax invoice, issued by Alya Books, appears under Settings → Subscription → Invoices and in your mailbox.
    • No card on file: the processor's secure card page opens first; the purchase finishes when you come back.
    • The bank asks for a confirmation step: the credits are added when the processor reports the payment.
    • Declined: nothing is added; replace the card and buy again.

    A payment is credited once, whatever the processor sends again (the charge is the top-up reference). Over the API, POST /billing/packs with { "pack": "<key>" } buys with the card on file and is refused no_card_on_file without one. Other members see the packs and ask an owner or admin.

    Budgets per client and per agent

    1. Under Budgets, click Add a budget.
    2. Choose what it applies to: this organisation, a client (one of the organisations your firm manages) or an agent.
    3. Enter the credits per month and the alert thresholds (50, 80 and 100 % by default).
    4. Leave Refuse further calls at 100 % on to block the client or agent at the limit; switch it off to only be told.

    Owners and admins get a bell notification once per threshold and month ("AI budget at 80 %: Dune Logistics"). An agent whose pool or budget runs out stops with the status Credits used up and the owners are told; its run, batches and audit rows stay.

    Retention

    Under Retention, choose how long conversations, vendor lookups, the tool results inside agent runs and the text snippets of extracted corporate tax figures are kept (90 days by default; Keep everything switches the purge off). A nightly job removes what is older; Purge now runs it at once. The run itself, its change batches and the audit log are never removed: they are the audit trail.

    How your data is used

    The data-use statement is one text, published on the trust page (/trust/ai-data-use, Arabic at /trust/ai-data-use/ar), in the developer documentation and over GET /ai/data-use. In short:

    • Which providers receive data. Model calls go to the providers behind the tiers you choose; the product lists them from its own configuration (today Anthropic, under a zero-retention contract). The vendor model behind a tier is never shown as a label: you choose by outcome, Fast or Powerful.
    • No training. Nothing you enter, upload or let an agent read trains any model, neither ours nor a provider's.
    • Zero retention. A provider processes a request to answer it and does not store its content afterwards.
    • What stays inside Alya Books. The rules, the books health checks, the diagnostics, the VAT and corporate tax computations and the stubbed assistant run in the product's own database and never call a model. Tool calls run as the member under the same permissions, locks and approvals; a model never has a database connection.

    The statement is also linked from the consent screen when you connect an assistant and from the Usage tab.

    Walkthrough

    1. Settings → AI → Usage: read the pool card and the charge-start note; open By client and By agent.
    2. Click Top up, pick the 500 pack, confirm the card charge: the remaining credits rise by 500, the audit log holds billing.charge_succeeded and ai.credits_topped_up, and the pack's invoice is under Settings → Subscription → Invoices.
    3. Add a budget for an agent with 50 credits a month and the default thresholds; run the agent a few times and watch the bell at 50 %, 80 % and 100 %, then the run that stops with Credits used up.
    4. Over MCP, call any tool and read _meta.einvoicing/creditsRemaining; when the pool is empty the call answers ai_credits_exhausted with its next step.
    5. Set Retention to 30 days and click Purge now: older conversations disappear from the assistant's history; the agent runs stay with their steps marked as purged.
    6. Open How your data is used (in Arabic with the switcher) and compare with GET /ai/data-use?lang=ar.

    Still stuck? Contact support