| 开发者 | artisanswp |
|---|---|
| 更新时间 | 2026年11月22日 07:36 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[arwp id="123"]
Use the ID shown for that agent. Paste the shortcode into any page or post. A draft is shown only to people who can edit it.
What people see
The greeting appears first. Replies arrive as they are written, and a visitor can stop one that is still coming in. Messages can include Markdown. There is a copy button on the agent's replies, and a button to open the chat full screen. One message can be up to 8,000 characters.
The browser stores a token for that chat, so the same visitor on the same device picks up the conversation later. By default anyone who can open the page can write a message, including people who are not logged in. An agent can instead require a logged-in visitor or a specific role.
Read the chats
ARWP Agents → Chats lists each conversation, the agent, whether the visitor was a guest or a logged-in visitor, the number of messages, and the tokens used. Open a row to read it, or delete it. Names and contact details stay hidden until an administrator turns that on in Settings.
Only administrators can create agents, change the API key, or open Chats.
What leaves your site
A message is sent to OpenRouter so the chosen model can reply. The request includes that message, the agent's system prompt, the recent messages from the same chat, and the model settings for that agent. Nothing is sent until someone uses a published shortcode.
OpenRouter's terms are at https://openrouter.ai/terms and its privacy policy is at https://openrouter.ai/privacy.
If a reply fails, visitors see a short note that the assistant is unavailable. An administrator who is logged in sees the actual error.
[arwp id="123"], and paste it into a page or post.Yes. The plugin does not include a key. Create one at https://openrouter.ai/ and save it under ARWP Agents → Settings. Replies are charged to that account.
In the content of any page or post, using that agent's shortcode, or with the ARWP Chat block. Each agent has its own.
Yes. An agent can follow the default model from Settings, or use another model from the list. If no default is saved, the plugin uses openai/gpt-4o.
Each agent chooses anyone who can view the page, logged-in visitors, or specific roles. People who can edit that agent can always open it. Only administrators can create or edit agents.
Yes, when the shortcode or block is on a public page and the agent allows that visitor. A new agent waits 5 seconds between messages, allows 30 messages per visitor each hour, and 200 messages an hour for that agent. You can also cap messages per logged-in account and per role. Settings can stop the whole site for the day after a token ceiling or a reported dollar ceiling. Set a number to 0 to turn that cap off. Existing agents start with the account and role caps off. The daily ceilings start off.
In Settings, where it is encrypted in the database, or in wp-config.php as define( 'ARWP_OPENROUTER_API_KEY', '...' );. The constant wins.
On your site. The visitor's browser keeps a token so the chat can continue. Visitors can download or delete their own chat. Administrators can read, download, and delete conversations under ARWP Agents → Chats. Settings can delete chats older than a chosen number of days. Names and contact details stay hidden until an administrator turns on Show names and contact details in Chats. Before the first send, the visitor must accept a notice that the message leaves the site for OpenRouter. Deleting the plugin also deletes the agents, the chats, and the saved API key.
The chat box still appears. The reply does not. Visitors see a general message. Logged-in administrators see the specific error. The agents screen also links to Settings when no key is saved.
[arwp id="123"].