Governance
Enterprise verification, token (credit) top-up, balance monitoring, and spend audit for enterprise workspaces.
Governance is the enterprise billing surface of Wujie: it turns "who pays for the tokens an agent burns" into something a team can manage. It covers enterprise verification, credit top-up, balance monitoring, and spend audit. You find it in Workspace settings → Enterprise.
The module is role-scoped:
| Capability | owner / admin | member |
|---|---|---|
| Enterprise verification (KYB) | ✓ | read-only balance |
| Top-up the enterprise credit pool | ✓ | ✗ |
| See the enterprise balance | ✓ | ✓ (read-only) |
| Member usage breakdown (1/7/30 days) | ✓ | ✗ |
| Full enterprise ledger + task drill-down | ✓ | own spend only |
Enterprise verification
Before a workspace can hold credits, it must be verified against a real company. Only owners and admins can go through the flow:
- Fill in the company profile — company name, legal representative, unified social credit code (USCC), corporate bank account number, and deposit bank.
- Receive a small verification deposit — the platform sends a small payment to the corporate bank account (usually arrives within minutes).
- Confirm the exact amount — check the bank statement and enter the received amount.
- Verified — the amount matches and the workspace is bound to its enterprise credit account.
The verification badge cycles through none → paying → pending confirmation → verified / failed. While a payment is in flight the page polls automatically — a gateway timeout does not mean failure; the tab moves to "confirming result" on its own.
Until verification is approved, top-up is refused with "enterprise account not verified". The status and the balance card are the source of truth for whether the workspace can hold credits.
Top-up
Once verified, owners and admins top up from the balance card in the Enterprise tab:
- Payment methods — WeChat Pay (scan the QR code) or Alipay (opens the payment page).
- Amounts — pick a preset tier or enter a custom amount. A single top-up is capped at ¥50,000; for larger amounts contact operations.
- Credit conversion — ¥1 = 200 credits. Preset tiers may carry a bonus grant; the recharge dialog always shows the exact amount you will receive.
- Arrival — credits land on the enterprise account automatically once the payment settles; the balance card refreshes on its own after the order is confirmed.
Balance and usage
The enterprise credit pool is shared by the whole workspace — every member sees the balance (read-only), only admins can move money:
- Balance display is tri-state: a normal status shows the authoritative value (a real zero is shown as zero); an uninitialized account shows 0; when the billing service is unreachable the card says "temporarily unavailable" instead of inventing a number.
- Member usage — admins see per-member consumption over the last 1, 7, or 30 days.
- My spend — regular members see their own consumption history: each row is a task with its trigger summary and the issue it worked on.
Enterprise ledger
Admins get the full deduction ledger: every ledger row is one gateway spend event, enriched with the member who triggered it and the task it belongs to. A row drills down into model-level usage details for that task.
This is enforced on both sides — the API rejects non-admins with 403, and the UI hides the section for members.
What happens when the balance runs out
Each agent carries a billing account that decides whose money its gateway spend is charged to:
| Billing account | Who pays |
|---|---|
none (default) | Nobody — the agent uses local credentials you configured |
personal | The agent owner's personal WujieAI credit balance |
enterprise | The workspace's enterprise credit pool |
The agent owner switches this in the agent settings (owner-only operation). When an agent on the enterprise channel is about to run and the pool is empty, the task refuses to enqueue with a message telling you to ask a workspace admin to top up, or to switch the agent to another billing channel. A personal agent whose owner's balance is empty behaves the same, pointing at the personal balance card in user settings.
The enqueue gate fails open: if the billing service itself is unreachable, tasks are not blocked. Concurrent enqueues are also a soft threshold — several tasks starting at the same moment can drive the balance slightly negative; the ledger is the authoritative record.
Personal vs enterprise credits
Personal and enterprise credits are two independent pools that never merge:
- Personal — bind your WujieAI account and top up from the personal settings (the linked-account card).
- Enterprise — verification and top-up live in the workspace Enterprise tab, paid into the company's pool.
An agent billing enterprise never touches its owner's personal balance, and vice versa.