How can I redirect a response via Twilio?

whmcsguru

Chief Guru
Staff member
Jan 11, 2018
23
1
3
45
#1
I'm looking to have calls and texts to my number handled automatically via Twilio. How can I do this?
 
OP
OP
whmcsguru

whmcsguru

Chief Guru
Staff member
Jan 11, 2018
23
1
3
45
#2
There are many reasons twilio was chosen to start the SMS notification offerings.

Price and availability
From $1/month , you really just cannot go wrong here

Customization
It's fairly easy to create a twimlet which will handle responses. I'll provide an example here of my own twimlet. This is an XML file, and I'll show you how to set it up.

Text response: (for text replies) - save as twiml-text.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Message>
I'm the WHMCS Bot for WHMCS Guru
I cannot handle response texts at this time.
Please contact my master directly via https://www.whmcs.guru/whmcs/
    </Message>
</Response>

Voice response: (for those calling your number) . Save as twiml-voice.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Say voice="woman" language="en">This number is designed as a WHMCS bot. We are not able to reply or take calls via this number</Say>
</Response>


Forward: (for those calling your number) .
This is setup in twilio, under the number.


See, it's really just that simple! If you can put together a simple web page, you can put together a twilio response...
Now that you have this xml document? What do you do with it?

Head to
You do not have permission to view link Log in or register now.

Select the number you want (look in #'s on the left side)
In the 'messaging' section, for the 'A Message Comes In' field, enter the URL you saved the text response as. For example
You do not have permission to view link Log in or register now.
. Select webhook
In the 'A call comes in' section, you have two choices.
#1 : You can enter in the voice response xml you saved from above (ie:
You do not have permission to view link Log in or register now.
) and select 'webhook'
#2: You can choose to forward. If you choose to forward, head to
You do not have permission to view link Log in or register now.
and build your list. You then enter the twimlet that they gave you in that field and select webhook.


It's fairly simple to build these, which is one of the main reasons this was chosen to start SMS.
 
Top Bottom