Skip to main content

Gathering User Input

The following CXML code will answer an inbound voice call, playback a simple greeting message using Text-To-Speech and will wait for a keypad input. Once the input is received, it will be submitted to the https://example.com/cxmlDemo URL.

<Response>
<Gather action="https://example.com/cxmlDemo">
<Say loop="3">Press 1 for receptions. Press 3 for customer care.</Say>
</Gather>
<Say>We're sorry we couldn't help - please try again later.</Say>
<Hangup />
</Response>