Skip to content

Empty value in response #120

@WanyoikeJ

Description

@WanyoikeJ

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions