AppBazaar
Applets
Gather Applet
9 min
this applet allows you to take numeric information from the user when they are pressing something on their keypads the information gathered can be used for mobile number input, order id verification etc along with the pass thru applet to process such information in real time and proceed with an appropriate set of actions with the user on call you can choose to configure the gather applet parameters using the flow builder itself or control it dynamically through a url however, you'll need to configure the transitions (next applet) while building the flow irrespective configure using flow builder select configure usig the flow builder here play a prompt to the caller to enter the input specify key input behaviour configure parameters dynamically by providing a url select configure parameters dynamically by providing a url in case you choose to configure the parameters dynamically using your application url, you can set a ‘primary url’ for handling the requests you can also set a ‘fallback url’ (optional) which will be contacted in case something goes wrong with your ‘primary url’ request if an application url is set for gather applet, exotel will make a get request to the url with the call details as url encoded http query parameters the following are the parameters of the get request note that only some of this list may be passed to your application depending on what stage of the flow you have placed the gather applet header true 319,320 unhandled content type unhandled content type query parameters true 319,320 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type these parameters will be passed if certain conditions are met as described below true 319,320 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type response this is the response exotel will expect to the get request from your gather application url the response will decide what parameters will be set while executing gather during the call flow response header true 319,320 unhandled content type unhandled content type sample {"gather prompt" { "text" "hello kovalan, please provide your order id", },"max input digits" 5,"finish on key" "#","input timeout" 6,"repeat menu" 2,"repeat gather prompt" { "text" "it seems that you have not provided any input, please try again " }} explanation true 159,159,159,162 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type above set of parameters can also be controlled through the dashboard if one opts to configure the gather applet using the flow builder instead of the application url note when mandatory params are missing, url is unresponsive (non 2xx) or type validation fails from both primary and fallback url (if set), it will go to url failure case if optional parameters are not passed in response, it will be set to default if both finish on key and max input digits are passed, whichever criteria are met first will occur i e if finish on key is pressed or max input digits is reached as per the user's input cases, where fallback url will be triggered, are primary url does not return http 200 ok primary url doesn’t return within the timeout period (5 seconds) primary url returns invalid response content type should be application/json mandatory parameters are present audio url / text should be http/https and returns 200 http code
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.

