You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Am trying to use Botman with Dialogflow and I have managed to integrate them but now am having an issue with response, when I type a phrase to be processed by Dialogflow, I get back results with empty values. if I type the same phrase in Dialogflow trial section, I get the correct feedback. here is my code how ive done it in laravel 7.3
$dialogflow = DialogFlow::create('en'); $botman->middleware->received($dialogflow); $botman->hears('namesextraction', function ($bot) { $extras = $bot->getMessage()->getExtras(); Log::info($extras); $bot->reply('Check the logs'); })->middleware($dialogflow);
I have logged the response and this is how it looks like:
If I add the ->listenForAction() method in the Diaglogflow like this: $dialogflow = DialogFlow::create('en')->listenForAction(); I end up getting no response and nothing happens.
Please assist.
The text was updated successfully, but these errors were encountered:
Hello @mpociot,
Am trying to use Botman with Dialogflow and I have managed to integrate them but now am having an issue with response, when I type a phrase to be processed by Dialogflow, I get back results with empty values. if I type the same phrase in Dialogflow trial section, I get the correct feedback. here is my code how ive done it in laravel 7.3
$dialogflow = DialogFlow::create('en'); $botman->middleware->received($dialogflow); $botman->hears('namesextraction', function ($bot) { $extras = $bot->getMessage()->getExtras(); Log::info($extras); $bot->reply('Check the logs'); })->middleware($dialogflow);
I have logged the response and this is how it looks like:
array ( 'apiReply' => '', 'apiAction' => '', 'apiActionIncomplete' => false, 'apiIntent' => '', 'apiParameters' => array ( ), 'apiResponseMessages' => array ( ), 'apiTextResponses' => array ( ), 'apiCustomPayloadResponses' => array ( ), 'apiContexts' => array ( ), )
If I add the
->listenForAction()
method in the Diaglogflow like this:$dialogflow = DialogFlow::create('en')->listenForAction();
I end up getting no response and nothing happens.Please assist.
The text was updated successfully, but these errors were encountered: