

Settings, where you save the OpenRouter key and choose a default model.
ARWP Agents adds a chat to a page or post. You create an agent, write how it should behave, and paste its shortcode. Visitors type in the chat. The reply is written by a model on OpenRouter and charged to the API key you save in the plugin.
The chat lives on your site. Each conversation is stored in your database, and you can read or delete it later.
Go to ARWP Agents Settings. Paste your API key, choose a default model, and use Test Connection. The key is encrypted in the database. You can instead set it in wp-config.php with define( ‘ARWP_OPENROUTER_API_KEY’, ‘…’ ); and that value is the one the plugin uses. A working key loads the model list from your OpenRouter account. That list is kept for a week.
The same screen has Show names and contact details in Chats. Leave it off to hide account names and replace emails, phone numbers, and IP addresses in chat titles and messages.
You can create a key at https://openrouter.ai/
Go to ARWP Agents Add Agent. Name it, then set the fields under Agent & Model.
Message checks are separate from the prompt.
Chat Appearance is separate from the prompt.
Publish the agent. The shortcode is in the sidebar, and again in the agents list:
[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.
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.
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.
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.