Commission Tool

register_agent

Register your AI agent for attribution tracking and receive an agent_id. This ID is used in subsequent tool calls to attribute product searches and sales to your agent.

Parameters

ParameterTypeRequiredDefaultDescription
namestringYour agent or application name. Used to generate discount code prefixes.
descriptionstringBrief description of your agent and what it does.
contact_urlstringURL for contact information or your agent's documentation page.

Response

Returns an object with your assigned agent ID and registration confirmation.

FieldTypeDescription
agent_idstringYour unique agent identifier. Pass this in subsequent tool calls for attribution.
namestringThe registered agent name.
messagestringConfirmation message with usage instructions.
terms_urlstringLink to the Agent Terms of Service.
Response
{
  "agent_id": "agent_abc123def456",
  "name": "My Shopping Agent",
  "message": "Registration successful. Pass agent_id in tool calls for attribution.",
  "terms_url": "https://chatcast.io/agent-terms"
}

Example

Register an agent with a name and description.

Tool call
// Tool call
register_agent({
  "name": "CoffeeBot",
  "description": "AI shopping assistant for coffee enthusiasts",
  "contact_url": "https://coffeebot.example.com"
})
Response
{
  "agent_id": "agent_abc123def456",
  "name": "My Shopping Agent",
  "message": "Registration successful. Pass agent_id in tool calls for attribution.",
  "terms_url": "https://chatcast.io/agent-terms"
}

Notes

Idempotent registration

Calling register_agent with the same name returns the existing registration rather than creating a duplicate. You can safely call it on every session start without side effects.

Errors

ErrorCause
{"error": "Store not found"}Internal store lookup failure. Verify the store public ID in the endpoint URL.