Speed up development with full-stack environments for every branch.

Learn More

Handle user input via an interactive voice response using Twilio [PHP, telephony, phone and IVR]

42 Runs 1013 Views 207 Copies
Saved

Saved

sundip 66

sundip
published 4 years ago

<?xml version="1.0" encoding="UTF-8"?>
<Response>
	<Gather action="handle-user-input.php" numDigits="1">
		<Say>Welcome to TPS.</Say>
		<Say>For store hours, press 1.</Say>
		<Say>To speak to an agent, press 2.</Say>
		<Say>To check your package status, press 3.</Say>
	</Gather>
	<!-- If customer doesn't input anything, prompt and try again. -->
	<Say>Sorry, I didn't get your response.</Say>
	<Redirect>handle-incoming-call.xml</Redirect>
</Response>
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).