Hi,
I have developed an app for doing a Routing Automation Rule, but it doesn’t work.
The call always enter in “IF APP DID NOT UNDERSTAND”:
In server.js finally my response is sended in this way:
‘’’
let data = {
response,
“app_variables”: {}
};
console.log("data: ", data);
return renderData(null, { data });
‘’’
In my actions.js I have the next:
‘’’
{
“onCallCreateHandler”: {
“display_name”: “Valida Números de teléfono en función del campo Region de la Empresa en Freshdesk”,
“parameters”: {
“$schema”: “http://json-schema.org/draft-07/schema#”,
“type”: “object”,
“properties”: {
“input”: {
“type”: “string”
}
},
“required”: [
“input”
]
},
“response”: {
“type”: “string”
},
“description”: “Valida Números de teléfono en función del campo Region de la Empresa en Freshdesk, en función de esto se derivará a una cola u otra en Freshcaller.”
}
}
‘’’
And in the logs I have the value of the response that I want:
As you can see, as response I have: “hubEuropa”, that is one of values on the Routing Automation Rule.
Please, can you help me?
Thanks in advance and greetings.