I am using twilio auto pilot running a nodejs server. I start off in a default greeting, then run this login task, it hears me, it send the post and then the POST request has an empty body. i am at a loss. I tried making the POST to https and http. It does not go to collect on failure. I do not have a field ID setup as all I want to do is trigger the task and then send the COLLECT info on. Some direction would be appreciated. I did everything in the tutorial, though i am not sending to a twilio function. I do not understand why the body is empty.
{
"actions": [
{
"collect": {
"name": "collect_login",
"questions": [
{
"question": "what is your number?",
"name": "loginID",
"type": "Twilio.NUMBER_SEQUENCE"
}
],
"on_complete": {
"redirect": {
"method": "POST",
"uri": "https://server.com/pm/auto/login"
}
}
}
}
]
}
Is there something else that I need to do? I thought it was simple. Collect the info and send it to my server, then my server would send a new twiml. All I do currently is just log the entire incoming request.
My plan is to have someone log in with the assistant. Call my phone number, it plays a digit in programmable voice, then hands it off to the assistant, then the assistant asks for the login id, sends the collected info to my server for processing and then I send a response back to the assistant from my server in the form of a TWIML / xml with login / pass /fail and their customer object so the assistant can have that in memory. Obviously i am just on step one but that is my plan. Help would be appreciated.