In my Freshcaller custom app there are two actions, whenever a call comes in the routing automation gets triggered and my action is invoked as expected but the call is being directly sent to Invalid Input and the action is being dropped immediately , I have also logged the input which is being passed to the action but the logs are not displayed, it is as if the action is not invoked at all. I tried by passing the input locally I am getting the expected response.
"DealerRoutingHandler": {
"display_name": "matches any contact field",
"parameters": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"input": {
"type": "string"
}
},
"required": [
"input"
]
},
"response": {
"type": "object",
"properties": {
"routingHandler": {
"type": "string"
}
}
},
"description": "matches any contact field"
}
Result which I send back from the action:
{ "data": { "response": "Dealer-Central", "app_variables": {} } }