SMS
Send an SMS in response to an Incoming Call
3 min
when you receive an incoming call, you can set up your call flow such that you can send a dynamic reply to the caller to do this, use the "sms applet" in your incoming call app (aka the callflow) you are able to trigger two types of sms from the sms applet static and dynamic sms to have this implemented, please use the sms applet in the section "after the call conversation ends " for the calls that have been completed and in "if nobody answers " in case the call is missed static sms static smses is an sms type, which has the same content every time the sms is triggered eg "thank you for calling xyz support we hope all your queries have been addressed for further assistance from our end, do write to support\@xyz com" if you want to send a static sms, you can select the dlt approved template choose a sms template and add the same to the text box the prerequisite is to have an approved header/sender id as well and the same must be added against the exophone number assigned in the incoming call flow how to assign sender id, please find here header (sender id) registration dynamic sms dynamic sms are the smses in which the content is changed depending on different parameters these parameters include the from number, the to number and other parameters which would be relevant to the call you had the dynamic smses can only be triggered using api end point note in case you are using a prebuilt app like the misscall app or the oak tree app, you can just enter your url in the sms textbox provided before the get request, exotel will make an http head request to make sure that the url is indeed returning the correct 'contenttype' as mandated below the get request that exotel makes to the url will have the following query parameters parameter name value callsid string, unique identifier of the call from string, the number of the caller to string, your exotel company number to which the call came digits string, if there was a gather or a menu applet before this sms applet, this is the dtmf input that was gathered if you want to send an sms reply to the caller, the http response must \ the http response must have 'contenttype' header set to 'text/plain' \ the http body must have the reply to send for example, if you've configured http //example com/exotel php we will make an http get request to http //example com/exotel php?callsid=xxxxxx\&from=09052161119\&to=08088919888 sample php script which sends dynamic reply \<?phpheader('content type text/plain'); $dynamicreply = "hello";// insert your logic here to use $ request to construct the dynamic responseecho $dynamicreply; now you can add multiple sms templates, it will send one sms randomly it will be helpful in marketing/advertising your features/offers/services you can add multiple templates to the sms applet, by clicking on the "+" sign as shown in the annotated screenshot
🤔
Have a question?
Our 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.