Audit log and troubleshooting
Read the Management Agent activity log and fix the most common set-up problems.
#The audit log
Management system → Activity and audit log lists every operation the agent ran or refused for signed-in users, newest first. Filter by outcome or by user id.
| Column | Meaning |
|---|---|
| When | Time of the event |
| User | The user id your server sent (with "(test)" for dashboard tests) |
| Roles | The user's role keys at that moment |
| Operation | The operation key |
| Authorisation | allowed, or denied with a reason |
| Confirmation | awaiting, confirmed or empty for lookups |
| Result | success, failed, uncertain or simulated |
Denial reasons:
| Reason | Meaning |
|---|---|
not_permitted_for_role | The operation exists but none of the user's roles allow it |
unknown_operation | The AI asked for something that is not an operation (often a trick attempt) |
permission_revoked | The permission was removed between preparing and confirming |
missing_user_context | A bound input needed a user value or attribute your server did not send |
Passwords, tokens and request bodies are never stored in the log.
Active sessions shows who is using the assistant now; End revokes a session immediately.
#Troubleshooting
#The Go live button is disabled
Open the checklist at the top of the tab. Common gaps: an operation has not passed its test since you last changed it, the API connection is not live, no role has any operation ticked, or no server key exists yet.
#My server gets 401 invalid_server_key
The key was rotated, mistyped or has spaces. Create a new key and update your server's environment variable. Send it as Authorization: Bearer bbx_mgmt_….
#My server gets 409 app_not_live
Click Go live in the dashboard. Paused agents cannot create sessions.
#The session response shows my role under ignored_roles
The role key does not match any role in Roles and permissions. Compare the keys shown under each role name (for example head_teacher) with what your backend sends.
#The assistant says the user is not allowed to do something they should
Check the role's ticks and that the operation is allowed and tested on the connection. Then look for the event in the audit log: not_permitted_for_role means a role problem, missing_user_context means a missing attribute.
#The widget does not appear or shows "unavailable"
- Your session route must return JSON
{"session_token": "bbxs_…"}to a logged-in browser. Open it in the browser to check. - If you set Allowed websites, your page's origin must be listed exactly (scheme and host, for example
https://sms.myschool.ac.tz). - The agent must be live and active, and the plan must include Management Agents.
#Lookups fail with "could not reach the system"
Use Open connection setup → test on the operation. Check that the API is reachable from the internet over HTTPS, the credentials are current and the response is JSON. Private network addresses are blocked for security.
#A change ran but the user saw "could not confirm"
The request timed out or the network dropped after sending, so the result is uncertain. BotBaseX does not retry automatically. Check your system; use the Idempotency-Key header to make retries safe.
#Users see each other's conversations
They cannot. Conversations are tied to the user id your server sends. If two people share one user id in your system, give each person their own id.