Twilio spoke: TwiML parameter?

Community Alums
Not applicable

I'm exploring ways to use Twilio to send automated / pre-made voice messages to users (e.g. notifying them of a high priority incident). I saw Twilio's api at https://www.twilio.com/docs/voice/tutorials/how-to-make-outbound-phone-calls-node-js and it looks like a voice message could either be created via a twiml or url parameter.

From Twilio API page:

find_real_file.png

 

However, in Flow Designer, the Twilio spoke's Make a Call Without Recording action only has TwiMl instructions URL as a parameter:

find_real_file.png

Question: Does the Twilio spoke support sending the twiml value itself (i.e. '<Response><Say>This</Say></Response>') instead of a URL that results in a twiml?

If not, is there a way to generate an SN url so that it returns an XML that I can customize?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

I found the answer to this.

TwiML Instructions URL does not support the twiml value itself (e.g. '<Response><Say>Say this sentence</Say></Response>').

However, it can use a servicenow sys_attachment URL in the following format:

https://{your instance}.service-now.com/sys_attachment.do?sys_id={the attachment's sys_id}

 

When you view an attachment, the URL might come with additional parameters after the sys_id, so you just need to remove those

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

I found the answer to this.

TwiML Instructions URL does not support the twiml value itself (e.g. '<Response><Say>Say this sentence</Say></Response>').

However, it can use a servicenow sys_attachment URL in the following format:

https://{your instance}.service-now.com/sys_attachment.do?sys_id={the attachment's sys_id}

 

When you view an attachment, the URL might come with additional parameters after the sys_id, so you just need to remove those

Hi Ethan,

Could you please shed some light on Twilio?

Just like you, we are using the Twilio spoke - "Make a call without recording". We need to be able to get a response whether the recipient hangs up, answers the call, or press1. We are new with integration hub and Twilio, any help is appreciated.

Thank you!

 

 

Hi JLeong,

Could you please help me with setting up Twilio spoke?

We are using the Twilio spoke - "Make a call without recording". We need to be able to get a response whether the recipient hangs up, answers the call, or it was answered by human or machine. We are new with integration and Twilio, any help is appreciated.

Thank you!