i am trying to call one http post api when user gives some raw input using actions sdk, but i get error "action isn’t responding right now. Try again soon" , my code is as follows
if (assistant.getRawInput() == 'test') {
request({
url: url,
json: true
}, function (error, response, body) {
if (error) {
assistant.tell('There is some error!');
}
else {
assistant.tell('we got the response!');
}
}
)
there is no issue with the code as it works perfectly fine seperately using node command , i am new to google actions , please assist