Create agent with AI
Changed onCreates a new agent using AI generation. Accepts either a guided questionnaire (array of Q&A pairs) or a free-text description. The AI generates the agent's prompt and configuration. A security check is run on the generated prompt before the agent is persisted. Deducts credits on success.
Rules:
- Either questions (non-empty array) or description must be provided — not both.
- emotiveToggle, voiceId, and voiceModel must either all be present or all be absent.
- When emotiveToggle=true, voiceModel must be GPT_REALTIME.
- When emotiveToggle=false, voiceModel cannot be GPT_REALTIME.
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/with-ai
- AuthHTTP bearer
Request body
Response
Agent created — returns the new agent's ObjectId
Example response
{
"success": true
}Changes
- breaking
removed the enum value
gpt-realtimeof the request property - breaking
removed the enum value
gpt-realtime-miniof the request property - breaking
removed the enum value
otherof the request property - breaking
removed the enum value
wavesof the request property - breaking
removed the enum value
waves_lightning_largeof the request property - breaking
removed the enum value
waves_lightning_large_voice_cloneof the request property - breaking
removed the enum value
waves_lightning_v2of the request property - breaking
removed the enum value
waves_lightning_v3of the request property - breaking
removed the enum value
waves_lightning_v3_1of the request property - warning
removed the optional property
from the response with the status - info
api operation id
createAgentWithAiwas added - info
the
request property default valuesingle_promptwas removed - info
the
request property's minLength was decreased from1to0 - info
the
request property's minLength was decreased from1to0 - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status
- breaking
- info
endpoint added
- info