AMI Originate - get feedback from user

I am trying to call a number/extension and get feedback from the person who answers the call
I am able to place a call using ami originate command and playback a file,how to I get an IVR like functionality?
eg,

Hi this is xyz press 1 if this is annoying or press 2 if you like this

I will get a report back stating the person pressed 1 or 2

How can I go about doing this?

Just use AMI to initiate the calls and so when the called party answers, it executes dialplan and you just setup the IVR in the dial plan.