Accessing DialogFlow from Flutter

64 views
Skip to first unread message

島津秀雄

unread,
Oct 23, 2020, 3:34:19 AM10/23/20
to Flutter Development (flutter-dev)
Hi, I am running a " flutter_dialogflow_v2 0.3.2"  sample program described in

My program has an error.  The "DetectIntent" method calls Diagflow with 
a natural language query and gets its natural language reply as its result.
But, the result value is null [], and the program can not proceed then.
(Attached file is the snapshot of the screen).

I am struggling with this problem for 3 days.
I am wondering if my Google service account is not correct.

Thank you for your advices in advance.
  
Screen2020-1021.pdf

Suzuki Tomohiro

unread,
Oct 23, 2020, 1:41:44 PM10/23/20
to 島津秀雄, Flutter Development (flutter-dev)
> I am wondering if my Google service account is not correct.

Try putting incorrect value in your service account JSON. If it throws a different error, your account was correct.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/b997f4e8-7abd-4e04-8db0-299c7e64af73n%40googlegroups.com.

島津秀雄

unread,
Oct 24, 2020, 3:01:06 AM10/24/20
to Suzuki Tomohiro, Flutter Development (flutter-dev)
Tomo san,

Thank you very much for your prompt reply. 
My flutter application calls DialogFlow API correctly and it returns a structured "response" whose "query text" part is equal to its input. But the "fulfillment" part is still null.
I am wondering if my input parameter to the DetectIntent method is right or not.

Thank you again.

2020年10月24日(土) 2:41 Suzuki Tomohiro <suz...@gmail.com>:

Suzuki Tomohiro

unread,
Oct 24, 2020, 7:58:09 AM10/24/20
to Flutter Development (flutter-dev)
Glad to hear that you now know your account setting is correct.

How about making the same DialogFlow call outside your Flutter app? Do you know how to make such HTTP request? (I don’t know)

If the same problem happens without Flutter, then it’s not your Flutter app or the plugin.

Devashish Mamgain

unread,
Jul 28, 2021, 3:29:37 PM7/28/21
to Flutter Development (flutter-dev)
yes, the Dialogflow call should happen outside of the app for multiple reasons such as security, and upgrades.

we have developed Flutter SDK that supports deploying Dialogflow bot outside of Flutter.
Above is the SDK and the Dialogflow connection will be done under:
Reply all
Reply to author
Forward
0 new messages