botman / botman/studio

Empty value in response

Open
#120 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
332
Forks
91
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.