Store your credential as an environment variable. Never hard-code
hk_live_… tokens in
source files, dialplans, or configuration files committed to version control. Use an environment
variable (HUMAIN_CREDENTIAL) or a secrets manager and inject the value at runtime.How it works
When a call arrives, Vonage fetches an answer URL from your server. You respond with an NCCO JSON array that includes aconnect action pointing at the Humain WebSocket stream endpoint.
NCCO response
Answer server
- Node.js
- Python
Vonage dashboard configuration
- Open the Vonage API Dashboard and go to Your applications.
- Create a new Voice application, or edit an existing one.
- Under Capabilities → Voice, set:
- Answer URL →
GET https://your-server.example.com/answer - Event URL →
POST https://your-server.example.com/event
- Answer URL →
- Link your virtual number to the application under Numbers.
Vonage requires your answer URL to respond within 3 seconds. The Humain API call in the
answer handler typically responds in under 300 ms, well within this limit.