Agents
Create agent
Create a new AI agent in a Nedzo workspace via the REST API. Configure the agent type, prompt, voice, language, model, actions, and knowledge base.
POST
Create a new agent within a workspace.
Common Fields
Agent name (1-255 characters)
Type of agent to create. Valid values:
Voice, Chat, WidgetCall direction for Voice agents:
inbound or outbound (default: “inbound”). Ignored for Chat and Widget agents.Workspace UUID (required for account API keys, optional for workspace API keys)
System prompt for the agent
Agent language. Valid values:
english, spanish, french, german, portuguese, dutch, chinese, japanese (default: “english”)Whether the agent is active (default: true)
Type-Specific Fields
- Voice
- Chat
- Widget
Opening line the agent says when starting a conversation
Voice ID for text-to-speech
Enable voicemail detection (default: false). Typically used with outbound direction.
Message to leave on voicemail
Enable background sound (default: true)
When this is enabled, no logs, recordings, or transcriptions will be stored (default: false)
Maximum call duration in minutes, 1-60 (default: 30)
Voice speed multiplier, 0.5-1.5 (default: 1.0)
URL to receive a POST request after each conversation ends. The payload includes the transcript, summary, outcome, duration, contact details, and extracted fields. Set to
null to disable. See the Post-conversation webhook page for the full payload.Deprecated. Use
postConversationWebhookUrl instead. Still accepted on input for backwards compatibility; responses always use the new field.