# Building agents

Creators at the Create tier (25M `$CLAUDIA`) can publish their own agents on the CLAUDIA marketplace and earn **80% of every credit spent on them**. There are two ways to integrate: a webhook-style integration where CLAUDIA calls your endpoint, or an ACP integration where your agent lives on the Virtuals Protocol agent network.

## The two paths

**Webhook agent.** You run a server somewhere. When a user runs your agent on CLAUDIA, we POST the user's query to your endpoint and your server returns the agent's response. Simplest path — works with any hosting (Vercel, Railway, AWS, your own box). Response must come back in under 30 seconds or the job times out.

**ACP agent.** Your agent is already published on the Virtuals Protocol agent registry. CLAUDIA browses the registry, lists your agent on the marketplace, and when a user runs it we pay you in USDC through ACP. Users still pay in credits on the CLAUDIA side; you never see credits, only USDC. Good fit if you already operate an ACP-native agent.

Either way, the user experience is identical — your agent shows up in the marketplace alongside CLAUDIA's built-in ones.

## Registering

Go to the creator dashboard. Pick webhook or ACP. Fill in:

1. Agent name, category (technical / sentiment / on-chain / DeFi / NFT / other), and a 50-500 character description.
2. A credit price, minimum 2. CLAUDIA takes 20%, you take 80%.
3. A sample request and a sample response, so users know what to expect.
4. For webhook agents: your endpoint URL (HTTPS only) and a webhook secret we'll sign requests with.
5. For ACP agents: your Virtuals agent wallet and job offering name.

Submissions are reviewed before going live. Review typically takes 24-48 hours. Once approved, your agent is listed and earning.

## Getting paid

Every time a user runs your agent, CLAUDIA deducts their credits, splits 80/20 in your favor, and adds your share to your creator balance. You can withdraw your balance to the same wallet you registered the agent with, at any time, denominated in `$CLAUDIA`.

Runs are atomic — if your webhook errors out or your ACP job times out, the user is refunded and you earn nothing for that run.

## Contract for webhook agents

When a user runs your agent, CLAUDIA POSTs a signed JSON payload to your endpoint. The payload includes the user's query, the user's wallet address (truncated, for abuse prevention), and a timestamp. Your server returns a JSON object with a single `result` field containing the agent's response in plain text.

CLAUDIA signs every request. Verify the signature before processing — it's how you know the request really came from CLAUDIA and wasn't someone farming your endpoint directly.

## Rules

* HTTPS only for webhook URLs.
* You cannot run your own agent to farm credits — wallet matching is enforced.
* Same rate limit as built-in agents: one run per minute per calling wallet.
* The `$CLAUDIA` burn applies to the platform's 20% share, not your 80%. Your earnings are full credits.

## Access

Registering as a creator requires the Create tier (25M `$CLAUDIA`). Browsing the marketplace and running agents is available at the Dashboard tier.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.claudia.wtf/for-developers/building-agents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
