---
title: "Discussion on \"Build a chatbot in 20 minutes using Flutter and Dialogflow\" | Hashnode"
description: "Discussion on \"Build a chatbot in 20 minutes using Flutter and Dialogflow\". It is a privilege for me to help you upgrade your skillset in this post, and you do not need to be a hardcore developer to get this chatbot up and running.\nYou are going to learn how to build a simple chatbot from scratch using flutter and dialogflow..."
url: "https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Build a chatbot in 20 minutes using Flutter and Dialogflow](https://hashnode.com/post/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow?utm_source=hashnode&utm_medium=feed)

It is a privilege for me to help you upgrade your skillset in this post, and you do not need to be a hardcore developer to get this chatbot up and running. You are going to learn how to build a simple chatbot from scratch using flutter and dialogflow...

Jul 16, 2019 · hashnode.com  
Updated Jul 28, 2019  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dart](https://hashnode.com/tag/dart)
-   [#ai](https://hashnode.com/tag/ai)

## Written by

[Promise Amadi](https://hashnode.com/@promise)

@promise · Nigeria

  
[View profile](https://hashnode.com/@promise)

Expert Android Developer || Certified Flutter Developer || Technical Writer || Tech Speaker || Digital Skills Educator

Expert Android Developer | Certified Flutter Developer | Technical Writer | Tech Speaker | Digital Skills Educator

## Responses 4

Markdown supported · ⌘↵ to post

[Battula Gautam (B17CS012)](https://hashnode.com/@gautam14)

[Apr 27, 2020](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5ea6b02b12892a3c760b97a3)

I keep getting this error everytime. \[ERROR:flutter/lib/ui/ui\_dart\_state.cc(157)\] Unhandled Exception: Unable to load asset: dialogflow-275507-268d419f59b2.json

Please help me in resolving this

[Abdul Rehman](https://hashnode.com/@ablrehman)

[Mar 17, 2020](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5e7106beb302cf0e5bda51aa)

My chatbot is not replying? how to solve it please FIX it! HELPPP

[Saurabh Mhatre](https://hashnode.com/@smhatre59)

[Jul 28, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d3d02ef4439400a52e23ed4)

Tutorial worked quite easily. Although I had to include HomePageDialogFlow Component in main.dart file like shown below:

```
import 'homepagedialogflow.dart';
```

Please update the tutorial code whenever possible

[Promise Amadi](https://hashnode.com/@promise)

[Jul 28, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d3d02ef4439400a52e23ed4#reply-5d3debcc98e51e1d11ebd2c4)

I will do so, thanks for your comment

[Promise Amadi](https://hashnode.com/@promise)

[Jul 28, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d3d02ef4439400a52e23ed4#reply-5d3dfd627a12799714aef9e6)

The code is now updated

[Yudhi Setiawan](https://hashnode.com/@yudhizth)

[Jul 18, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d306ec6d5d9a94b3b4d5ac4)

Hello brother, thank you for the tutorial. I'm following the steps above, but I got this error `E/flutter ( 5219): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.`

![Annotation 2019-07-18 200022.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1563455158371/ExqOEQmvB.png)

[Thomas Hasler](https://hashnode.com/@TBS)

[Jul 31, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d306ec6d5d9a94b3b4d5ac4#reply-5d4182adb4f847bd59310a11)

Your project is working and I think i have problem in credentials part can you please tell which role should i select while creating new service account?? for downloading json file! Thanks!!

[Yudhi Setiawan](https://hashnode.com/@yudhizth)

[Jul 31, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d306ec6d5d9a94b3b4d5ac4#reply-5d419ea1aa10ff7154afa2b2)

Hi Thomas, I got the same problem previously, and then I try to create a new credential with this role: Dialogflow -> Dialogflow API Admin [Thomas Hasler](https://hashnode.com/@TBS)

[Thomas Hasler](https://hashnode.com/@TBS)

[Jul 31, 2019](https://hashnode.com/posts/build-a-chatbot-in-20-minutes-using-flutter-and-dialogflow/5d2d72c36d8e5e5323656400/comment/5d306ec6d5d9a94b3b4d5ac4#reply-5d41c719aa10ff7154afa3c9)

I got it working in my emulator but its not working in my mobile device , not getting any reply from bot!!
