| 开发者 | agent001ai |
|---|---|
| 更新时间 | 2026年5月14日 00:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-json/agent001/v1/orders/{number} that the chat widget calls from the visitor's browser to look up an order. The endpoint requires a matching customer email, so it cannot be enumerated.wc_get_order, wc_get_products) to read existing data and forward it to agent001. Order data is read on demand only when a chat user asks about a specific order with the matching email.
Features
agent001 folder to /wp-content/plugins/ (or install via the WordPress admin uploader).Yes. The plugin refuses to boot without WooCommerce active and shows an admin notice instead. It is built around WooCommerce data (products, taxonomies, orders) and has nothing useful to do on a plain WordPress install.
Every product create, update or delete event in WooCommerce queues a single per-product sync through Action Scheduler. The job runs in the background on the next request after each change, so the catalog on agent001 mirrors your store within seconds. Use Sync now for bulk imports or to recover from a failed background job.
The chat widget runs in the visitor's browser and calls your store's REST endpoint directly. From the store's point of view it's just another browser request from the same visitor that loaded the widget — Cloudflare and other WAFs let it through without any allowlist. The agent001 backend never touches your store directly.
The lookup endpoint requires both the order number AND the email used at checkout, and returns 404 if either is missing or doesn't match. Plus a per-IP rate limit (10 requests / minute) makes brute-force impractical.
Yes. Define AGENT001_API_KEY in wp-config.php (e.g. define( 'AGENT001_API_KEY', 'your-key-here' );) and the plugin will read the key from that constant instead of from the database. Connect / Disconnect / Reconnect buttons in the admin become disabled in this mode (the key is read-only). This is the recommended setup for staging environments where you want the key out of the database backup.
Yes. Uninstall removes every option (agent001_settings, agent001_last_sync_result, agent001_sync_progress), every transient (agent001_last_sync_status, agent001_sync_running, agent001_agents_cache, plus the connect-state, rate-limiter and kick-throttle transients prefixed with agent001_), and unschedules any pending agent001_sync_product jobs in Action Scheduler. Nothing is left behind.