# Goldnat for WordPress — Easy Digital Downloads

Ask about sales, orders, customers and discount codes, add products, record refunds and resend receipts by asking your AI agent. Every figure comes from Easy Digital Downloads itself, with the same permissions as your store screens.

- Platform: WordPress
- Edition: paid add-on
- Web page: https://plugins.goldnat.ai/wordpress/wp-edd-ai-connect
- Installation guide: https://plugins.goldnat.ai/wordpress/guide
- Requires: Goldnat for WordPress (https://plugins.goldnat.ai/wordpress/wordpress-plugin.md)

## What it does

- **Figures from Easy Digital Downloads itself** — Totals, refunds, discount validity and statistics are computed by Easy Digital Downloads, not by us, so your agent sees exactly what your store reports show.
- **Same permissions as your store screens** — Each tool checks the capability Easy Digital Downloads requires for the matching screen. Shop workers see only what they could see in wp-admin.
- **A preview before anything serious** — Refunds, status changes, deleting customers or codes and removing customer e-mails answer with a preview first and run only after you confirm.
- **Refunds stay in your hands** — A refund is recorded in Easy Digital Downloads only. The agent never contacts your payment gateway, so no money moves without you.
- **Your whole store in one conversation** — 49 tools: products and categories, orders and notes, refunds, receipts, customers and their e-mails, discount codes, sales, product, gateway, tax, discount, customer and refund reports, file download and gateway error logs, store settings and tax rates.
- **Sensitive data only for the right people** — Product file addresses are shown only to users who may edit the product, and IP addresses and gateway errors only to users with the sensitive-data capability.
- **Works with free Easy Digital Downloads** — Easy Digital Downloads 3.2 or newer is all you need; no paid Easy Digital Downloads extension is required.

## What you can ask the agent

- "How did the store do this month?" — The agent reports earnings, orders, the average order value, refunds and the busiest day.
- "Which products sell best this year?" — It lists the top products with their sales and earnings.
- "A customer says they never got their receipt." — It finds the order and sends the purchase receipt again.
- "Create a 20% code for the weekend." — It creates the discount code with the dates and limits you give and shows it back to you.
- "Refund order 1042." — It shows the order and the amount, and records the refund after you confirm.
- "Who downloaded the course files yesterday?" — It reads the file download log for that product and date.

## Install and connect

1. Install the free core plugin first: Goldnat for WordPress (https://plugins.goldnat.ai/wordpress/wordpress-plugin). This plugin runs on top of it.
2. Buy Goldnat for WordPress — Easy Digital Downloads at goldnat.ai, download it, and upload it in your WordPress 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 WordPress 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/wordpress/guide

## What the agent can and cannot do

- The agent acts as the WordPress 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.

- `edd.createDownload` (write) — Create a download product (draft unless status is given) with title, description and a price or variable prices. Requires publish_products.
- `edd.getDownload` (read) — Get one download product: price or variable prices, files, download limit, categories, tags, sales and earnings. File URLs are returned only to users who may edit the product.
- `edd.listDownloadCategories` (read) — List download categories or download tags with the number of products in each.
- `edd.listDownloads` (read) — List the store's download products with price, type, sales and earnings. Filter by status, category, tag or search text. Requires the EDD edit_products capability.
- `edd.setDownloadFiles` (write) — Replace the file list of a download product (name + URL per file). Only records the URLs — nothing is fetched or uploaded. Requires edit_product on that product.
- `edd.trashDownload` (delete) — Move a download product to the trash (restorable from wp-admin). Requires delete_product on that product and confirm: true.
- `edd.updateDownload` (write) — Update a download product: title, description, status, price, variable prices, download limit, categories and tags. Requires edit_product on that product.
- `edd.addCustomerEmail` (write) — Add another email address to a customer. Requires the EDD edit-customers capability.
- `edd.addCustomerNote` (write) — Add an internal note to a customer. Requires the EDD edit-customers capability.
- `edd.createCustomer` (write) — Create a customer record (name + email). Requires the EDD edit-customers capability.
- `edd.deleteCustomer` (delete) — Permanently delete a customer record (their orders stay). Requires the EDD edit-customers capability and confirm: true.
- `edd.getCustomer` (read) — Get one customer: email addresses, addresses, purchase count, lifetime value and recent orders. Requires the EDD view-customers capability.
- `edd.listCustomerNotes` (read) — List the internal notes kept on a customer. Requires the EDD view-customers capability.
- `edd.listCustomers` (read) — List customers, with search by name or email; includes purchase count and lifetime value. Requires the EDD view-customers capability.
- `edd.rebuildCustomerStats` (write) — Recalculate a customer's purchase count and lifetime value from their orders. Requires the EDD edit-customers capability.
- `edd.removeCustomerEmail` (write) — Remove a secondary email address from a customer. Requires the EDD edit-customers capability and confirm: true.
- `edd.updateCustomer` (write) — Update a customer's name, primary email or status. Requires the EDD edit-customers capability.
- `edd.createDiscount` (write) — Create a discount code: percent or flat amount, validity dates, maximum uses and minimum cart amount. Requires manage_shop_discounts.
- `edd.deleteDiscount` (delete) — Permanently delete a discount code. Requires manage_shop_discounts and confirm: true.
- `edd.getDiscount` (read) — Get one discount code by id or by the code itself. Requires manage_shop_discounts.
- `edd.listDiscounts` (read) — List discount codes with status, amount, use count and validity dates. Requires manage_shop_discounts.
- `edd.setDiscountStatus` (write) — Activate or deactivate a discount code. Requires manage_shop_discounts.
- `edd.updateDiscount` (write) — Update an existing discount code. Requires manage_shop_discounts.
- `edd.validateDiscountCode` (read) — Check whether a discount code is usable right now and, if not, why (inactive, not started, expired, maxed out). Requires manage_shop_discounts.
- `edd.listFileDownloadLogs` (read) — File download log: who downloaded which file and when, filtered by product, customer or order. Requires view_shop_reports.
- `edd.listGatewayErrorLogs` (read) — Payment gateway error log. Requires view_shop_sensitive_data.
- `edd.addOrderNote` (write) — Add an internal note to an order. Requires edit_shop_payments.
- `edd.deleteOrderNote` (delete) — Delete an internal note from an order. Requires edit_shop_payments and confirm: true.
- `edd.getOrder` (read) — Get one order in full: items, discounts and fees, tax, billing address, transactions and linked refunds. Requires view_shop_reports.
- `edd.getOrderCountsByStatus` (read) — Count orders per status (pending, complete, refunded …), optionally within a date range. Requires view_shop_reports.
- `edd.listOrderNotes` (read) — List the internal notes of an order. Requires view_shop_reports.
- `edd.listOrderRefunds` (read) — List the refunds recorded for an order, with amounts and dates. Requires view_shop_reports.
- `edd.listOrders` (read) — List orders, filtered by status, customer, email, product, gateway, mode (test/live) and date range. Requires view_shop_reports.
- `edd.refundOrder` (write) — Record a full refund for an order in Easy Digital Downloads. This does NOT send money back through the payment gateway — refund the payment in the gateway itself. Requires edit_shop_payments and confirm: true.
- `edd.restoreOrder` (write) — Restore an order from the trash. Requires delete_shop_payments.
- `edd.sendOrderReceipt` (write) — Send the purchase receipt again to the address stored on a completed order. Answers email_disabled when the receipt email is off and mail_failed when the site cannot send mail. Requires edit_shop_payments.
- `edd.trashOrder` (delete) — Move an order to the trash (restorable). Requires delete_shop_payments and confirm: true.
- `edd.updateOrderStatus` (write) — Change the status of an order (e.g. pending → complete). Status changes grant or revoke the customer's file access, so confirm: true is required. Requires edit_shop_payments.
- `edd.getCustomerStats` (read) — Customer figures for a period: new customers, average lifetime value and the most valuable customers. Requires view_shop_reports.
- `edd.getDiscountStats` (read) — Discount usage in a period: most popular codes, total savings given and the share of discounted orders. Requires view_shop_reports.
- `edd.getGatewayStats` (read) — Sales, earnings and refunds per payment gateway in a period. Requires view_shop_reports.
- `edd.getProductStats` (read) — Sales and earnings of one product in a period. Requires view_shop_reports.
- `edd.getRefundStats` (read) — Refund figures for a period: count, amount, refund rate and average time to refund. Requires view_shop_reports.
- `edd.getSalesSummary` (read) — Sales summary for a period: earnings, order count, average order value, refunds and the busiest day. Requires view_shop_reports.
- `edd.getTaxSummary` (read) — Total tax collected in a period. Requires view_shop_reports.
- `edd.getTopProducts` (read) — The highest-earning products in a period. Requires view_shop_reports.
- `edd.getStoreInfo` (read) — General store information: currency, test mode, taxes, store pages and the EDD version. Requires manage_shop_settings.
- `edd.listPaymentGateways` (read) — The registered payment gateways and which of them are enabled. Requires manage_shop_settings.
- `edd.listTaxRates` (read) — The tax rates configured for the store by country and region. Requires manage_shop_settings.

## Frequently asked questions

**Does a refund return the money to my customer?**

No. It records the refund in Easy Digital Downloads and changes the order status. Return the money in your payment gateway yourself; the agent reminds you.

**Does the agent upload my product files?**

No. It can store the download addresses you give it, but it never fetches or uploads a file.

**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 WordPress 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 WordPress?**

Yes. Goldnat for WordPress — Easy Digital Downloads runs on top of the free core plugin, which handles the secure connection.
