I am using the following Javascript code to get the Google Search Result:
var url = inputs.url;
var opts = {
method: ‘GET’,
url: url
};
utils.request(opts, function(err, resp, result) {
if(err) {
return reject(err);
}
resolve(result);
});
It seems good and I can be received JSON as the result.
Next, I create the new action (Bot - Send a message) to print out some part of JSON result.
My message using the following block:
{{code_execute_code.result__kind}}
=> In the logs: I received the error: “Message can’t be blank”
If i using {{code_execute_code.result}} => It will print out the full of JSON result.
My logs:
My flow:
Thanks in advanced