- When an incoming SMS is received by Plivo DID Plivo makes an HTTP REQUEST to the message url of the application attached to the DIDa long with certain paramteres like From To Text Type. That application here is http://xyzapp-sms-voice.herokuapp.com/acceptsms/ This example app replies back to sender an automatic response which can be set in SMS Controller
- All received messages which are not replied can be seen under: http://xyzapp-sms-voice.herokuapp.com/sms-dashboard/
- Text box besides each message can be used to type in the reply and hit "Reply"
- Messages already replied will have staus as "Replied!"
- Messages awaiting reply will show up as "Waiting Reply!"
- Messages can be deleted permanently from UI by clicking on "Delete"
- Columns of the table can be sorted to suit the requirement.
- Also it internally sends an email to the email id configured in the Email Controller step.
- When an Incoming calls come to the Plivo DID then a recorded media file is played which can be configured in Voice Call Controller.
- For Email Service this app uses Mailgun API
- Visit Mailgun
- Create an account there.
- Pick a Plan
- Free plan comes with 200 messages per day!
- Get the API key from here. Look for "API Key"
- Keep that in a safe place.
- On the same page look for "Domain Name" under the section "Email Domains"
- From Email is the email from where the email will be sent.
- Mailgun API Token is the place where you are going to put in the API Key in received in step 6
- Email To is where you want to receive the email.
- Mail Subject is the subject of the email which will be sent to the "Email To" address.
- Mailgun Email Domain is the domain which you noted in step 8
- After all these click on "Save Changes"
- Input SMS Reply allows you to set the auto response for the incoming SMS on plivo DID
- Enter the text
- Click on "Save Changes"
- Enter the url of the audio file in the text box
- Click on "Save Changes"
- answer_url field of the application should be: http://xyzapp-sms-voice.herokuapp.com/acceptcalls/ with method as POST
- message_url field of the application should be: http://xyzapp-sms-voice.herokuapp.com/acceptsms/ with method as POST
- Save the Plivo application and you are all set!
- <auth_id> - Replace with your own plivo auth_id
- <auth_token> - Replace with your own plivo auth_token
Success Enjoy!.