Generate Vobiz call XML
generate_answer_xmlBuild a validated Vobiz XML document from ordered IVR actions, then optionally host it to return a URL for call answer or transfer.
Instructions
Build a validated Vobiz XML document from a list of actions: speak, play, wait, gather (DTMF/speech), record, dial (number or sip_uri), redirect, hangup. Text is XML-escaped; callback/redirect URLs must be on approved hosts; actions after redirect/hangup are rejected. With host: true (HTTP mode) the server also serves it and returns a URL usable as make_call answer_url or transfer_call aleg_url. Pure generation otherwise (no API call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Serve the XML from this server and return its URL (HTTP mode only). | |
| actions | Yes | Ordered actions, e.g. [{type:'speak',text:'Hello'},{type:'hangup'}] |