Generate inbound agent script
Generate inbound script
Queue inbound script generation for an API-created agent.
POST
Generate inbound agent script
After HMS create (and hospital/doctor sync), call this before activate.
Recommended flow:
POST /inbound-agents(optionalcopyVoiceFromAgentId)POST .../sync-doctors(hospital/doctor)POST .../generate-script- Poll
GET .../inbound-agents/{id}untilinboundScriptStatusisready POST .../activate
enableAppointments, hcBookingPath: custom_api, and Custom API connected (set automatically when you create with scope + URL).Authorizations
Paste only your API key (ond_live_… or ond_test_…). Do not type the word Bearer — the playground adds it.

