Create an AI Agent (v2)
Creates an Agent owned by the caller, with a fresh EOA-style address. Supports User JWT and B2B Server JWT (the owner is then the token's tenant App).
An Agent is account-level: it is embodied in an App as a BotInstance the first time it is invited into one of that App's chats (POST /v2/agents/{idOrAddress}/invite-to-chat).
Defaults for omitted fields: displayName "AI Agent", prompt "You are a helpful assistant.", responseMode smart, responseProbability 1, cooldownSec 0, isRAG true, visibility private, ownerAppId the caller's App.
Older field names are still accepted and mapped: name and botDisplayName to displayName, summary to bio, botAvatarUrl to avatarUrl, isPublished: true to visibility: public. slug and meta are accepted and ignored. Any other unknown field is a 422.
Requires the ai license feature and the account's agents capability (a platform admin can turn agent creation off per account).
Request
- Base URL: https://api.chat.ethora.com
- URL: https://api.chat.ethora.com/v2/agents
- Auth: one of:
- HTTP bearer
- HTTP bearer
Request body
Response
{ ok: true, agent: Agent }
Changes
No recorded changes to this operation across all 1 revision of this API.