- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 09-14-2019 12:21 PM
Twilio SMS and Voice activate speedy on-call scheduling, incident alerts. Notify allows you to integrate with telephony providers such as the Twilio service to manage phone calls and SMS messages from within your instance.
Here I have implemented a functionality where you can trigger a Conference call and SMS when any P1 Incident is created. Also you can explicitly trigger a call with call the assignment group members by clicking Phone Icon.
Twilio Configuration Needed:
- You must have an SID and authentication token for an active Twilio account and you can get it by creating account on : https://www.twilio.com/
- After creating a Twilio account, as you can see after clicking on Active Number you will get a number, or you can choose between number provided.
- Also, In order to receive a call/SMS, you need to Add your mobile number or callers mobile number in Verified Called IDs and need to verify it.
- Also, as you can see in image, Account SID and Auth Token is generated. Copy that in notepad because we need to add this in ServiceNow account.
- You can configure Programmable Voice, SMS within Twilio. I am using trial account so it comes with limited features.
ServiceNow Configuration Needed:
- Activate the Notify plugin by going to Plugins
- Role required: notify_admin, admin
- As you can see in below screenshot, you need to go Notify> Twilio Direct Configuration and then Enter your Account SID and Auth Token which is copied on clipboard or you can find it on Twilio Account Dashboard.
- After adding Account SIDand Auth Token Click, On “Connected to Twilio” info message as below.
- UI Macro: In order to Show Phone Icon in front of assignment group field. On a Click, it will trigger a conference call to assignment group members.
You will see below window after initiating a conference call to group members. You can find all call related information in Notify Conference Calls Module.
-
System Property: This system properties will have SysID of Notify number to use for group conference calls.
-
Script Include: This script include will have a code for triggering a conference call. This script will be called from UI Macros. This script will find group member/ conference call participents, sys_id of conference call number of property groupconfcall.number and set up the outbound calls for all conference call participants.
-
Dictionary Override: Create a dictionary override for Assignment group field and add following attribute: ref_contributions=group_conf_call. This is used for calling a UI Macro which displays Phone Icon.
Done!!! You are ready to test your functionality. You can deploy attached update set your instance.
References:
1. https://docs.servicenow.com/bundle/madrid-servicenow-platform/page/product/notify2/concept/c_Notify2...
2. https://developer.servicenow.com/app.do#!/api_doc?v=newyork&id=r_N-call_S_S_GR
3. https://www.twilio.com/docs/all
Thanks for reading and do comment with your suggestion/improvements if any.
Hope you will find it as helpful. Don’t forget to Mark it Helpful and Bookmark article so you can easily find on your profile.
Thank you,
Abhishek Gardade
- 3,418 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Really helpful article, keep it up Abhishek !!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thank You Ajay!!!!!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hey,
Twilio Configuration Needed:
3.Also, In order to receive a call/SMS, you need to Add your mobile number or callers mobile number in Verified Called IDs and need to verify it.
Have verified it with my number but it doesn't show.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Have verified it with my number but it doesn't show. Its fine right??
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
You must need to verify your number in twilio in order to work.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I am actually checking in my personal instance 1st whether it will work or not. Can you please tell whether the email id should be same of personal instance and twilio account
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I have a doubt here, Sorry for the trouble. Since i just started Servicenow i am having lots of doubts.
This process is not automated right..?? I have to manually on click call button for the callto happen . But I want as soon as an incident is created the call should go to the person so that he can acknowledge.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
I have done that. will check again.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
You can make a call as soon as incident raised. For that you can after INSERT Business rule to trigger a call when incident is created. I have provided option to call manually by clicking Call ICon.
Thanks,
Abhishek
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Its not necessary to have same email id.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
So, Configuration of Twilio is not required for this right??
Directly write a business rule??
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
yes we require Twilio integration and as a part of configuring serviceNow in order to use Tiwlio API, we need to write business rule.
Just go through the links provided.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
When adding or removing Twilio numbers you need to "Disconnect" and reconnect Twilio adding the Twilio username and password again. Then verify.
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Abhishek
I want to know how we can verify user mobile phone numbers in Twilio if there are many users (say 10000) in servicenow.
Is there any self verify feature available to use?
or anything else that would help in verifying users in bulk.
Regards
Himanshu
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hello Himansh,
We have implemented this as POC and verified few numbers only. There are some twilio phone Verification APIs and SDK available. You can have a look at Twilio docs which specify how we can verify numbers at scale.
https://www.twilio.com/docs/voice/api/verifying-caller-ids-scale
Thank you,
Abhishek Gardade
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Abhishek
Thanks for the reply..
I checked and i was informed that we don't require to verify phone numbers in the non-trial account.
Also, if you have any REST message to send an outbound SMS, pls. share.
Thanks in advance
Regards,
Himanshu