# Goldnat for XenForo Admin

Goldnat for XenForo Admin — let AI manage users, forums and site config

- Platform: XenForo
- Edition: paid add-on
- Web page: https://plugins.goldnat.ai/xenforo/xenforo-addon-admin
- Installation guide: https://plugins.goldnat.ai/xenforo/guide
- Requires: Goldnat for XenForo (https://plugins.goldnat.ai/xenforo/xenforo-addon.md)

## What you can ask the agent

- "Create a new forum called "Beta testers" under Community." — The agent creates the node in the place you describe.
- "Ban the user who posted spam this morning." — It bans the account after you confirm.
- "Who changed the board options last week?" — It reads the admin audit activity.
- "Make the Staff forum visible only to the Staff group." — It sets the node permissions; you can simulate the change first.
- "Add a "Top posters" widget to the sidebar." — It creates the widget in the position you choose.
- "Check that outgoing email works." — It runs the email transport test.

## Install and connect

1. Install the free core plugin first: Goldnat for XenForo (https://plugins.goldnat.ai/xenforo/xenforo-addon). This plugin runs on top of it.
2. Buy Goldnat for XenForo Admin at goldnat.ai, download it, and upload it in your XenForo admin panel. Enter the license key you receive.
3. Connect your AI agent: in goldnat.ai (or another compatible agent) add your site address. You are sent to your own XenForo site to log in and approve what the agent may do (read only, or read and write).
4. Ask the agent in plain language. It calls the plugin on your site as you, and shows you the result.
5. Full installation guide with screenshots: https://plugins.goldnat.ai/xenforo/guide

## What the agent can and cannot do

- The agent acts as the XenForo user who connected it. It can never see or change more than that user can.
- You approve the access level when you connect (read only, or read and write), and you can revoke the connection at any time from the plugin page in your admin panel.
- Actions that delete content or cannot be undone ask for an explicit confirmation first.
- Your content stays on your site. The plugin answers the agent's requests directly; it does not copy your site anywhere else.

## Tools

Each tool is called by the agent by name. "write" tools need write access approved at connection.

- `xenforo_admin.addSecondaryGroup` (admin) — Add a secondary user group to a member. Idempotent.
- `xenforo_admin.banUser` (admin) — Ban a user (permanent by default). Requires admin scope + is_admin. Super-admin guarded.
- `xenforo_admin.changeUserEmail` (admin) — Change another users email address. Marks the new address as unconfirmed by default; pass mark_confirmed:true to bypass. Refuses self-edit.
- `xenforo_admin.changeUserPassword` (admin) — Set a new password for another user. Provide either new_password OR generate_password:true (returns temp). Refuses self-edit (use standard reset flow).
- `xenforo_admin.createNode` (admin) — Create a forum/category/page/link node. Requires admin OAuth scope + is_admin.
- `xenforo_admin.createUser` (admin) — Create a new user. Requires admin scope + admin visitor.
- `xenforo_admin.createUsergroup` (admin) — Create a new user group with title, priority, banner and CSS styling.
- `xenforo_admin.deleteNode` (admin) — Delete a node. delete_children controls child handling (default: reparent).
- `xenforo_admin.deleteUser` (admin) — Delete a user. Super-admins protected (rejected). Requires admin.
- `xenforo_admin.deleteUserAvatar` (admin) — Remove another member's avatar. Requires admin + user admin permission.
- `xenforo_admin.deleteUsergroup` (admin) — Delete a user group. Refuses built-in groups (id 1-4) and groups containing super admins.
- `xenforo_admin.disableAddon` (admin) — Disable an enabled add-on. Refuses to disable AIConnect chain (would lock API).
- `xenforo_admin.editNode` (admin) — Edit a node title/description/parent. Requires admin.
- `xenforo_admin.enableAddon` (admin) — Enable a disabled add-on. Rebuilds caches.
- `xenforo_admin.getOption` (read) — Read a board option by option_id. Returns current value + type.
- `xenforo_admin.getStyleProperty` (read) — Read single style property with inheritance context (local/master/effective/is_overridden)
- `xenforo_admin.listAddons` (read) — List all installed add-ons (id, title, version, active). No arguments.
- `xenforo_admin.listCronTasks` (read) — List all cron entries (id, description, next_run, active). No arguments.
- `xenforo_admin.listStyles` (read) — List all styles (id, title, parent, user_selectable, is_default).
- `xenforo_admin.removeSecondaryGroup` (admin) — Remove a secondary user group from a member. Idempotent.
- `xenforo_admin.reorderNodes` (admin) — Bulk update display_order for sibling nodes under the same parent. Positions assigned 0,10,20,... to leave room for later inserts.
- `xenforo_admin.setDefaultStyle` (admin) — Set the site default style (persists to defaultStyleId option via XF OptionRepository).
- `xenforo_admin.setNodePermission` (admin) — Grant/deny a permission for a usergroup on a specific node. XF content-permission model. permission_value=unset removes the entry.
- `xenforo_admin.setOption` (admin) — Set a board option. Blocklist prevents site-locking keys (boardActive, boardUrl, homePageUrl).
- `xenforo_admin.triggerCronTask` (admin) — Manually run a cron entry synchronously (ACP "Run now" equivalent).
- `xenforo_admin.unbanUser` (admin) — Remove an active ban on a user. Idempotent.
- `xenforo_admin.unsetStyleProperty` (admin) — DELETE style property override on child style; property inherits from Master
- `xenforo_admin.updateUser` (admin) — Update a user about text and/or primary user group.
- `xenforo_admin.updateUsergroup` (admin) — Edit an existing user group (partial update — pass only fields to change).
- `xenforo_admin.uploadUserAvatar` (admin) — Set another member's avatar from a URL. Requires admin + user admin permission. Rejects super-admin targets unless caller is also super-admin.
- `xenforo_admin.analyzeAuditActivity` (read) — Overview of AI Connect action-log activity for a period: totals, failure rate, read/write split, top tools, top users, daily volume.
- `xenforo_admin.createWidget` (admin) — Create a new widget. Common types: html (freeform), new_threads, new_posts, members_online, forum_statistics, share_page, quick_search.
- `xenforo_admin.deleteSiteLogo` (admin) — Remove the logo from a style (reverts to default/no logo).
- `xenforo_admin.deleteStyleAsset` (admin) — Delete a style asset by filename.
- `xenforo_admin.deleteWidget` (admin) — Delete a widget by widget_key.
- `xenforo_admin.detectAuditAnomalies` (read) — Flags unusual AI Connect activity in a period: users with a high failure rate, tools failing far more than average, and day-over-day volume spikes.
- `xenforo_admin.editPhrase` (admin) — Edit a phrase (change its text). XF automatically records history — reverting is available via ACP.
- `xenforo_admin.editWidget` (admin) — Edit an existing widget by widget_key.
- `xenforo_admin.getAddonOptions` (read) — List all options belonging to a specific add-on (by addon_id).
- `xenforo_admin.getAuditFailures` (read) — Recent FAILED tool calls from the action log (tool, user, error_code, when). Use to answer "what is breaking / which tools fail most".
- `xenforo_admin.getEmailTransportConfig` (read) — Read the site email transport configuration. Password field is always MASKED (e.g. "****1234") — never returned in plain text.
- `xenforo_admin.getNodePermissions` (read) — Read all explicit + inherited permissions for a node. Use this AFTER setNodePermission to verify your changes actually blocked/granted the way you expected. Returns three sections: entries_on_node (rows on THIS node), entries_inherited (rows inherited from parent chain, each with inherited_from_node_id), effective_view_by_group (final per-group can_view boolean + derivation string showing WHY — e.g. "content=deny/base=allow"). 

RECIPE — verify a node is truly private after setNodePermission:
- `xenforo_admin.getOptionBlocklist` (read) — Return the list of option_ids blocked from setOption (site-locking keys like boardActive, boardUrl, homePageUrl).
- `xenforo_admin.getPhrase` (read) — Get a phrase by title (and optionally language_id).
- `xenforo_admin.getUserAuditActivity` (read) — A single user's AI Connect activity: counts, failure rate, their top tools, first/last action. Use to answer "what has user X been doing via the AI".
- `xenforo_admin.getWidget` (read) — Get full details of a widget by widget_key.
- `xenforo_admin.listOptionGroups` (read) — List all option groups defined in this XF installation.
- `xenforo_admin.listOptionsByGroup` (read) — List all options in a specific option group (e.g. email, payment, ). Helps discover valid option_id values without guessing.
- `xenforo_admin.listStyleAssets` (read) — List style asset files (logos, favicons, custom images, backgrounds) for a style. Read-only.
- `xenforo_admin.listStyleProperties` (read) — List CSS-level style properties for a style. Returns EVERY property defined on Master (style 0), and for each: local_value (this style s override, or null), master_value, effective_value (what LESS compiler uses = local ?? master), and is_overridden. Agent can immediately see inheritance state without joining. Values are DECODED (native JSON structures, not raw JSON strings).
- `xenforo_admin.listWidgetPositions` (read) — List all widget position keys available in the current templates (e.g. forum_list_sidebar, thread_view_sidebar, member_view_sidebar). Read-only.
- `xenforo_admin.listWidgets` (read) — List all widgets with their positions and active state. Read-only.
- `xenforo_admin.searchPhrases` (read) — Search phrases by title or content substring. Returns up to 100 matches. Case-insensitive.
- `xenforo_admin.setAddonOption` (admin) — Set a single option belonging to an add-on. Same as setOption but requires addon_id and refuses if the option is not from that add-on (prevents accidentally modifying core options).
- `xenforo_admin.setEmailTransportConfig` (admin) — Set email transport (smtp/default). v1.4.11: writes XF native option keys (smtpHost/smtpPort/smtpSsl/smtpLoginUsername/smtpLoginPassword/smtpAuth) so XF Mailer can consume without crashing (bug in v1.4.0-v1.4.10: missing smtpSsl key caused "Undefined array key smtpSsl" on any mail send, including createUser welcome mail). Recommended: call testEmailConfig after.
- `xenforo_admin.setNodePrivate` (admin) — Toggle a node s "Private" flag — same checkbox XF ACP exposes on the Node Permissions page. When private=true, ONLY groups/users with an explicit content_allow entry (via setNodePermission) can view the node; base group permissions no longer apply. This is XF s intended way to make a node truly private, and it defeats the "deny + base=allow" quirk that setNodePermission alone cannot solve.

RECIPE — proper private node:
  1. setNodePrivate(node_id, is_private=true)  // flip the flag
  2. setNode
- `xenforo_admin.setStyleProperty` (admin) — Set a single CSS property value on a style. For value_type=color properties value MUST be an object {default: ..., alternate: ...} (tool will REJECT plain strings with 400 + hint). For fontFamily/string properties, pass a plain string. Changes flush CSS caches synchronously.
- `xenforo_admin.simulatePermissionChange` (read) — Dry-run a setNodePermission call — computes whether the change would lock out the caller or any admin group, WITHOUT applying it. Use before destructive permission changes to preview impact.
- `xenforo_admin.testEmailConfig` (admin) — Send a test email using the current transport config. Verifies connectivity before saving password changes.
- `xenforo_admin.uploadSiteLogo` (admin) — Upload/replace the site logo from a URL. Validates file type (png/jpg/svg/webp) and max size (5MB). Applies to the given style or master (style_id=0) by default.
- `xenforo_admin.uploadStyleAsset` (admin) — Upload an arbitrary style asset from URL (favicon, custom image). Path is validated — cannot overwrite XF core files.

## Frequently asked questions

**Which AI agents can I use?**

Our own agent at goldnat.ai, and other AI agents that support the Servio protocol. The list of compatible clients is on this page.

**Can the AI see or change things I can't?**

No. It works as the XenForo user who connected it, with exactly that user's permissions. Connect it with an account that has only the access you want it to have.

**Will it change things without asking?**

Only if you approved write access when you connected it. Deleting or irreversible actions ask for an explicit confirmation.

**How do I disconnect an agent?**

Revoke its connection from the plugin page in your admin panel. The agent loses access immediately.

**Do I also need Goldnat for XenForo?**

Yes. Goldnat for XenForo Admin runs on top of the free core plugin, which handles the secure connection.
