Twilio autopilot handoff action is not working with Twiml Bin











up vote
1
down vote

favorite












I have a Twilio autopilot task from an incoming call, which performs a greeting then asks a question before redirecting to a new task called 'callnumber'. This all works fine.



The 'callnumber' task looks like this



{
"actions": [
{
"handoff": {
"channel": "voice",
"uri": "https://handler.twilio.com/twiml/TWIMLBINID"
}
}
]
}


TWIMLBINID actually has the correct ID from the Twiml Bin.



This is the Twiml content in the bin:



<Response>
<Say>I will put you in contact with our customer care specialist.</Say>
</Response>


Unfortunately I'm not hearing this Response spoken out and instead just get the standard 'an error has occurred' voice message.



I've tried a few different versions of this, even calling an xml file hosted on my own public web server and seeing the same problem. Also tried the dial verb and still seeing this issue.



I feel like I may have missed some configuration, after seeing similar posts like: Twilio autopilot doesnt say what it is supposed to say



Any help is much appreciated!










share|improve this question






















  • Do any HTTP request errors get logged into the Twilio debugger? twilio.com/console/runtime/debugger
    – Devin Rader
    yesterday










  • Are you able to call the number yourself and see if this works? Rather than using the test dialler in the Autopilot console.
    – philnash
    2 hours ago















up vote
1
down vote

favorite












I have a Twilio autopilot task from an incoming call, which performs a greeting then asks a question before redirecting to a new task called 'callnumber'. This all works fine.



The 'callnumber' task looks like this



{
"actions": [
{
"handoff": {
"channel": "voice",
"uri": "https://handler.twilio.com/twiml/TWIMLBINID"
}
}
]
}


TWIMLBINID actually has the correct ID from the Twiml Bin.



This is the Twiml content in the bin:



<Response>
<Say>I will put you in contact with our customer care specialist.</Say>
</Response>


Unfortunately I'm not hearing this Response spoken out and instead just get the standard 'an error has occurred' voice message.



I've tried a few different versions of this, even calling an xml file hosted on my own public web server and seeing the same problem. Also tried the dial verb and still seeing this issue.



I feel like I may have missed some configuration, after seeing similar posts like: Twilio autopilot doesnt say what it is supposed to say



Any help is much appreciated!










share|improve this question






















  • Do any HTTP request errors get logged into the Twilio debugger? twilio.com/console/runtime/debugger
    – Devin Rader
    yesterday










  • Are you able to call the number yourself and see if this works? Rather than using the test dialler in the Autopilot console.
    – philnash
    2 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a Twilio autopilot task from an incoming call, which performs a greeting then asks a question before redirecting to a new task called 'callnumber'. This all works fine.



The 'callnumber' task looks like this



{
"actions": [
{
"handoff": {
"channel": "voice",
"uri": "https://handler.twilio.com/twiml/TWIMLBINID"
}
}
]
}


TWIMLBINID actually has the correct ID from the Twiml Bin.



This is the Twiml content in the bin:



<Response>
<Say>I will put you in contact with our customer care specialist.</Say>
</Response>


Unfortunately I'm not hearing this Response spoken out and instead just get the standard 'an error has occurred' voice message.



I've tried a few different versions of this, even calling an xml file hosted on my own public web server and seeing the same problem. Also tried the dial verb and still seeing this issue.



I feel like I may have missed some configuration, after seeing similar posts like: Twilio autopilot doesnt say what it is supposed to say



Any help is much appreciated!










share|improve this question













I have a Twilio autopilot task from an incoming call, which performs a greeting then asks a question before redirecting to a new task called 'callnumber'. This all works fine.



The 'callnumber' task looks like this



{
"actions": [
{
"handoff": {
"channel": "voice",
"uri": "https://handler.twilio.com/twiml/TWIMLBINID"
}
}
]
}


TWIMLBINID actually has the correct ID from the Twiml Bin.



This is the Twiml content in the bin:



<Response>
<Say>I will put you in contact with our customer care specialist.</Say>
</Response>


Unfortunately I'm not hearing this Response spoken out and instead just get the standard 'an error has occurred' voice message.



I've tried a few different versions of this, even calling an xml file hosted on my own public web server and seeing the same problem. Also tried the dial verb and still seeing this issue.



I feel like I may have missed some configuration, after seeing similar posts like: Twilio autopilot doesnt say what it is supposed to say



Any help is much appreciated!







twilio twiml twilio-twiml






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 9:52









ianrathbone

9392813




9392813












  • Do any HTTP request errors get logged into the Twilio debugger? twilio.com/console/runtime/debugger
    – Devin Rader
    yesterday










  • Are you able to call the number yourself and see if this works? Rather than using the test dialler in the Autopilot console.
    – philnash
    2 hours ago


















  • Do any HTTP request errors get logged into the Twilio debugger? twilio.com/console/runtime/debugger
    – Devin Rader
    yesterday










  • Are you able to call the number yourself and see if this works? Rather than using the test dialler in the Autopilot console.
    – philnash
    2 hours ago
















Do any HTTP request errors get logged into the Twilio debugger? twilio.com/console/runtime/debugger
– Devin Rader
yesterday




Do any HTTP request errors get logged into the Twilio debugger? twilio.com/console/runtime/debugger
– Devin Rader
yesterday












Are you able to call the number yourself and see if this works? Rather than using the test dialler in the Autopilot console.
– philnash
2 hours ago




Are you able to call the number yourself and see if this works? Rather than using the test dialler in the Autopilot console.
– philnash
2 hours ago












1 Answer
1






active

oldest

votes

















up vote
0
down vote













I was able to get the TwiML Bin working with similar JSON, when I have it associated with a Task that has samples.



So, for example, a call comes in to your Autopilot assistant and initially triggers the Assistant Initiation Task of hello_world where you modified the predefined JSON with a listen action.



{
"actions": [
{
"say": "How can I help you today?"
},
{
"listen": true
}
]
}


You then respond so the task associated with your handoff JSON/TwiML Bin is executed (based on the samples you provided). If you try to call the handoff task directly, it fails.






share|improve this answer





















  • You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
    – philnash
    yesterday











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205213%2ftwilio-autopilot-handoff-action-is-not-working-with-twiml-bin%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













I was able to get the TwiML Bin working with similar JSON, when I have it associated with a Task that has samples.



So, for example, a call comes in to your Autopilot assistant and initially triggers the Assistant Initiation Task of hello_world where you modified the predefined JSON with a listen action.



{
"actions": [
{
"say": "How can I help you today?"
},
{
"listen": true
}
]
}


You then respond so the task associated with your handoff JSON/TwiML Bin is executed (based on the samples you provided). If you try to call the handoff task directly, it fails.






share|improve this answer





















  • You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
    – philnash
    yesterday















up vote
0
down vote













I was able to get the TwiML Bin working with similar JSON, when I have it associated with a Task that has samples.



So, for example, a call comes in to your Autopilot assistant and initially triggers the Assistant Initiation Task of hello_world where you modified the predefined JSON with a listen action.



{
"actions": [
{
"say": "How can I help you today?"
},
{
"listen": true
}
]
}


You then respond so the task associated with your handoff JSON/TwiML Bin is executed (based on the samples you provided). If you try to call the handoff task directly, it fails.






share|improve this answer





















  • You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
    – philnash
    yesterday













up vote
0
down vote










up vote
0
down vote









I was able to get the TwiML Bin working with similar JSON, when I have it associated with a Task that has samples.



So, for example, a call comes in to your Autopilot assistant and initially triggers the Assistant Initiation Task of hello_world where you modified the predefined JSON with a listen action.



{
"actions": [
{
"say": "How can I help you today?"
},
{
"listen": true
}
]
}


You then respond so the task associated with your handoff JSON/TwiML Bin is executed (based on the samples you provided). If you try to call the handoff task directly, it fails.






share|improve this answer












I was able to get the TwiML Bin working with similar JSON, when I have it associated with a Task that has samples.



So, for example, a call comes in to your Autopilot assistant and initially triggers the Assistant Initiation Task of hello_world where you modified the predefined JSON with a listen action.



{
"actions": [
{
"say": "How can I help you today?"
},
{
"listen": true
}
]
}


You then respond so the task associated with your handoff JSON/TwiML Bin is executed (based on the samples you provided). If you try to call the handoff task directly, it fails.







share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









Alan

2392




2392












  • You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
    – philnash
    yesterday


















  • You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
    – philnash
    yesterday
















You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
– philnash
yesterday




You original use case looked as though it should work to me. I'd recommend getting in touch with Twilio support and describing the issue as well as sharing some affected CallSids and they will be able to look into it.
– philnash
yesterday


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53205213%2ftwilio-autopilot-handoff-action-is-not-working-with-twiml-bin%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

Schultheiß

Verwaltungsgliederung Dänemarks

Liste der Kulturdenkmale in Wilsdruff