Outbound 3-question DTMF survey with results API and CSV export. XML elements used:Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
<Speak>, <Gather inputType=dtmf numDigits=1>, <Redirect>, <Hangup>
View on GitHub
Clone and run the full working example
Getting started
Overview
Your system triggers an outbound survey call to a phone number. The caller answers three DTMF questions in sequence - rating (1–5), recommendation (yes/no), and overall experience (1–3). All responses are stored and exportable as CSV. You can also view aggregated stats via the API.Call flow
Vobiz webhooks
Set/answer as the Answer URL in your Vobiz application.
| Method | Path | Description |
|---|---|---|
| POST | /answer | Survey intro |
| POST | /survey-q1 | Q1: rate service 1–5 |
| POST | /survey-q1-result | Saves Q1 → routes to Q2 |
| POST | /survey-q2 | Q2: recommend yes/no |
| POST | /survey-q2-result | Saves Q2 → routes to Q3 |
| POST | /survey-q3 | Q3: overall experience |
| POST | /survey-q3-result | Saves Q3 → routes to done |
| POST | /survey-done | Finalizes survey, logs full result |
| POST | /hangup | Cleanup |
App API
| Method | Path | Description |
|---|---|---|
| POST | /surveys/trigger | Trigger a survey call |
| GET | /surveys/results | List all completed responses |
| GET | /surveys/results/{id} | Single response detail |
| GET | /surveys/export.csv | Download all results as CSV |
| GET | /surveys/summary | Aggregated stats |
Environment variables
| Variable | Required | Description |
|---|---|---|
VOBIZ_AUTH_ID | Yes | Vobiz account auth ID |
VOBIZ_AUTH_TOKEN | Yes | Vobiz account auth token |
FROM_NUMBER | Yes | Your Vobiz DID |
HTTP_PORT | No | Server port (default: 8000) |
PUBLIC_URL | No | Production URL - skips ngrok if set |
NGROK_AUTH_TOKEN | No | ngrok auth token for local dev |