Paste this into your AI agent
Copy this prompt into an AI agent that can make web requests, such as Claude Code, Cursor, Codex or Windsurf. Change the website to yours first.Prompt
Chat apps that can only read web pages, such as ChatGPT or Claude on the web, can’t start a trial, because they can’t send a
POST. Use an agent that can run commands, or sign up and paste your website there.How it works
POST /onboardingwith the website. No key needed. Wiredesk reads a few pages, drafts the agent’s name, greeting and instructions, and starts crawling the whole site. The response includes a key for the trial andclaim_url.- With that key, the AI agent uses the rest of the API or the MCP server like any other caller. For example, it can change the instructions, add knowledge, and send test messages.
GET /onboarding/{id}returns the setup checklist. The AI agent fixes what is notdone.- The AI agent gives the person
claim_url. On that page they chat with the agent, sign up or sign in, and press Claim this agent.
Start
The response is
201:
id, agent_id and api_key. The key is shown only once. Do not show the full key to the person.
Starting takes a few seconds: Wiredesk reads the home page and a few others and drafts the agent before it answers. The rest of the site, and its colours, are read afterwards. A site Wiredesk cannot read returns 502, and nothing is created.
Set up and test the agent
Send the trial’s key asAuthorization: Bearer wd_…. It works for this trial’s agent only.
PATCH /agents/{agent_id}changes the name, greeting or instructions.GET /agents/{agent_id}/knowledgeshows when the website isready.POST /agents/{agent_id}/knowledgeadds pasted text or another website.POST /agents/{agent_id}/chatsends a test message.
https://wiredesk.ai/api/mcp.
A trial’s chats stop at $2 of usage, which is about 100 replies, until someone claims it.
Check the setup
data.setup lists four items. Each item has a state and a detail.
Share
claim_url once the knowledge is done and the test answers use facts from the website.
Hand it to the person
Give the personclaim_url. Tell them what the agent is for, what it has read, and anything you changed.
If they have told you the email they will sign up with, save it first. The sign-up form then has it filled in:
claim_url. The claim itself is always made by the person, signed in, on that page. The API cannot claim an agent for someone.
What claiming does
The person signs up or signs in, then presses Claim this agent:- They have no workspace yet. The trial’s workspace becomes theirs, with the agent, its knowledge and the test conversations.
- They already have a workspace. The agent is copied into it, and the website is crawled again for the copy. The trial is deleted. They need to be an owner or admin there, and the workspace needs room under its plan’s agent limit.
GET /onboarding/{id} with a key from the workspace the agent went to shows status: "claimed" and the agent’s new agent_id.
Delete a trial
If the person does not want the agent, or the setup went wrong:409 conflict.
Build trials for other people
If you build agents for others, such as an agency making demos for prospects, send your workspace’s full-access API key with the start:claim_url for the person it is for. The difference is the limit. The starts count against your workspace, 100 a day, rather than against your IP address. The key must be valid, or the start fails with 401. A trial’s own key counts by IP address, as if no key was sent.
From an agent’s API call
Your own Wiredesk agent can build a visitor a trial in the middle of a chat, with an API call action. Under Actions, add an API call:
Then tell the agent, in its instructions, to ask for the visitor’s website when they want to try it, and to give them the
data.claim_url it gets back. For example:
Limits
- 20 requests a minute and 10 trials a day from one IP address, and a daily limit across everyone. Past either limit, a start gets
429. For more, sign up and send your workspace’s key with each start. - A trial’s chats stop at $2 of usage.
- A trial lasts 7 days.
- Anyone with
claim_urlcan claim the agent. Share it only with the person it is for.