An Interactive Voice Response is an automated phone system that combines pre-recorded messages with a dual-tone-multi-frequency(DTMF) interface to engage your callers.
A common use case for IVR is in automated customer care response service where your customer calls in, they listen to pre-recorded messages menu and if they find what they were looking for from the menu, they opt-in to talk to an agent.
You can use our api's play, say, get-digits and dial actions to accomplish this. Below is a code sample on how to go around this: