Working for one of my client, I faild to find any example/tutorial on how to integrate Twilio Frontline with Active Campaigns. With this project you can integrate Frontline mobile app with your Active Campaign contacts.
- Pull list of your contacts from Active Campaign
- Receieve and make calls
- Voicemails
- Inbound and outbound SMS with your contacts
- Send automated SMS
- Template Messages
<Response>
<Connect action="handleVoicemail.php">
<Conversation serviceInstanceSid="xxxxxxx" inboundTimeout="20"/>
</Connect>
</Response>
serviceInstanceSid is the service ID which is found in Twilio console
Action is the url which will be called if call is not picked up or rejected.
// add agent to convo
if ($agentNum == '+14400000000') {
$agentId = 'agent1@example.com';
} elseif ($agentNum == '+14403000001') {
$agentId = 'agent2@example.com';
} elseif ($agentNum == '+1440111111') {
$agentId = 'agent3@example.com';
} else {
$agentId = 'agent1@example.com';
}
Based on phone number we can assign the SMS to different agents.
{
"proxy_address": "+1440000000"
}
Return the number from which to send SMS
Return list of contacts as in the following json object
{
"objects":{
"customers":[
{
"display_name":"Diane Randi",
"customer_id":"332"
},
{
"display_name":"Sarah Kenty",
"customer_id":"331"
},
{
"display_name":"Courtney Name",
"customer_id":"44"
}
],
"searchable":true,
"next_page_token":"20"
}
}
<Response>
<Say voice="woman">
Any message you want to say before voicemail recording starts
</Say>
<Record recordingStatusCallback="voicemail.php" />
</Response>
Return response as above with recordingStatusCallback url on which recording link will be sent once its ready.
[
{
"display_name": "General",
"templates": [
{ "content": "Great! Let me know if you have any questions. 😀" },
{ "content": "The easiest way to get an estimate is at www.example.com" },
{ "content": "Hi ' . $contact['firstName'] . '. 👋🏻 This is agent one. Do you have any questions about your service estimate?" },
{ "content": "Let's schedule a 15 minute phone interview https://calendly.com/xxxxx/15-minute-phone-interview 😀" },
]
}
]
Return JSON as above with a list of all the template messages.
Server: PHP, cURL
I'm a full stack developer with experties in Twilio, Laravel, WordPress, AWS, React