Code

Discussion on Chatbot for Android

Discussion on Chatbot for Android

Cart 51 sales

52 comments found.

it is possible to save the messages of the clients for example, someone to order something.

As of now, the current code of the app does not have a feature to store the chat messages, but this feature can be enabled with Firebase with a bit of coding as Firebase supports offline capabilities.

Reference link – https://firebase.google.com/docs/database/android/offline-capabilities

Hope this helps.

Hi is there any doc / manual for enhance or something ? I had error org.gradle.api.GradleException: File google-services.json is missing.

Hi,

For documentation, please open the html file in browser which is located under this path in the downloaded file bundle – aichatbot\app\chatbothelp\index.html

It has the details to set the codebase to run.

Regarding the error mentioned, please connect your Android Studio to Firebase as mentioned in the instructions.

Please do let me know if you need any further help.

I tried thr demo. No matter what I type, it keeps asking me “where do you want yo go?”

I just tried downloading the apk file from the link I shared, it’s working and responding to different questions.

If you’re looking for an appointment booking like conversation, it needs to be changed in the DialogFlow.com backend.

Let me know what you’re looking for in the application.

Can we enable voice for input and output?

Yes, you can, but it’s not yet used in this version. Text to speech is available in Dialog Flow (API.ai)

Hello, like i mentioned above, this app doesn’t work and keeps giving blank screen in chat /response area. Please reply as this is totally non functional and doesn’t serve any purpose – I would need to request a refund.

Hi,

Apologize for the delayed reply. Regarding the blank screen issue you have mentioned, I tried reproducing and couldn’t see it occurs in my device for some reason.

BTW, this codecanyon item is designed to give a jumpstart for a basic chatbot which anyone can modify it to make it working for their needs.

I understand you have been getting into some issues which I have not heard from other few sales happened, not sure where the issue is. Given this, if you still want to get a refund, please initiate the process in codecanyon and I will do the needful.

If you want, I can send you the apk to test. It works fine only 20% of the time and that too randomly. Sometimes (and i sent this to other ppl to test it and they reported the same/i used emulators and same result) when its working normally, and we give it a 2 hours break and then say “hello”—nothing appears on screen. It says ‘typing’ but no reply appears. Occasionally when you close and reopen app what we typed appears on screen along with the replies, but most of the time its empty chat window.
80 % of the time when I type in anything and hit enter, nothing appears on screen and no reply either. But sometimes the same apk works perfect. I do not understand what the problem is.
I tried sending a push msg from firebase and it reaches me even when the app chat is blank. So i think firebase is working good. Next, i tested conversation in Dialogflow console and it works fine there…so Dialogflow is working good. The only thing I can suspect is the connection/timing between dialogflow and firebase has some mismatch or that the app is not able to catch and display the replies. I wish the app had some Refresh on swipe type of functionality that would be helpful in these situations.
Here is a screenshot for reference: https://imgur.com/a/dXBZJJV
I have also updated all the component to latest compatible versions and the same problem appears.
I would love for this app to work and would like to see if you can fix it before going for a refund.

or something to do with graphics part of the app.

Bug: I notice that whenever the app is inactive, for example an hour, then when the user types in something the screen is blank. It says “typing” but no response appears and neither can the user see what he types after he presses Enter.
The screen is fully blank. Even after closing the window and restarting again (and sometimes even after logging out and back in again) it stays the same. The normal screen with visible text appears randomly after 3-4 tries of opening/closing the app or changing internet connection.
Is this some caching issue or screen refresh issue?

this has become more frequent.

Is there going to be any update in the near future? (i,e latest dependencies , API v2 etc)

can I send a broadcast to the users inside the chat. Like in messenger, ? PS: I don’t mean push notification, I mean a certain message to user inside the chat.

From Firebase Console, yes, you can send push notification to all of the chatbots installed. But, if you are asking to show some specific message in the chat timeline itself, it needs to be handled via some Firebase Functions where you can update the FB Realtime DB nodes of individual chat, so that all of the users who launches the app will see that message in their chat timeline, just an idea…

I have the same error as zizdesign above mentioned: When i open the Firebase assistant and choose ‘Realtime Database’ and then ‘Connect your app to Firebase’ I get the errors :
Firebase: No clients were able to be added to your Firebase project for the following reasons: (show balloon)

10:15 AM Firebase: Couldnt find keystore in file ({0}) specified for debug build type. {2}


In fact there is another error which keeps saying :
Can’t start Git: git.exe The path to Git executable is probably not valid.
There was another error saying google-services.json was not found
Please instruct how to proceed.

ok, got it to work.

cool, thanks for updating. Is there anything I need to do to make documentation more clearer? Please suggest.

Definitely, because as of right now it appears very difficult for newbies to use it following the documentation. Only those familiar with android app dev can try it, not first timers. I wish there was more step by step instructions on what to do after opening file in android studio until generating the apk to publish. For example there was nothing about this generation of keys in the documentation file, In fact i didn’t even know I needed to have JDK installed. I wish there was more step by step instructions from the beginning to end just like its done by authors for wordpress themes n plugins.

Hello, I wanna buy this source code but I have a question please, what API level your app is targeting ? because Google Play will require that new apps target at least Android 8.0 (API level 26) from August 1, 2018. thank you.

Let’s continue the troubleshooting via email, I have just replied to your email.

Hello my friend, I can’t reply to the email you sent via codecanyon, when I reply the message do not deliver..however the connect to firebase has finally worked, I continued the setup of the app and performed all the steps, when I run the app from android studio it works but the authentication doesn’t, it shows authentication failed when I click Sign in.. any thoughts ? Thank you.

Hi,

Regarding your sign-in error, please follow this link to first provide the SHA-1 of your signing certificate – https://developers.google.com/android/guides/client-auth After you have signed your keystore file with the above steps, the Google Sign-in should work without any error.

This instruction is already in code LoginActivity.java -> onActivityResult() method.

Is there a skype contact or emailid. I have few questions

1) No updates in one year, is it still working fine? 2) Does this use the latest API of Dialogueflow?

Demo works fine, just curious if this is using API v2 or v1 ?

It’s using API v1

Just asked because I will be using it in a long term project so wanted it to be the best. If its not difficult I hope you can update it to the latest V2 Api. thank you.

i can teach my language?

Yes, which language? Response can be in any language.

swahili language.

Which features of Firebase are you using within the app? Are you utilising Firebase Database? Where is the conversation being stored? Is it in the local database or Realtime Database? If Realtime Database then do you support pagination as well?

Yes, Firebase Realtime DB is what I use to persist the chat. It will work offline as well.

Any plan to add pagination and search functionality?

Not yet, but if there are more such requests come in, yes, I will plan to add in the near future.

This chatbot work gives a basic framework to interact with AI, any other features beyond that can be added on top of it.

Are you maintaining the development of this project? Are you handling the Image/Video or Link Responses?

Yes, I am maintaining it as and when I get time.

Regarding handling handling URL responses, currently its not part of the item I have published, but that can be done easily by stuffing URLs in Intent response from DialogFlow API. But it has to be handled in the app side to show the relevant content.

I use dialogflow can I put link in Responses or only text I mean using your plugin the link will be clickable or appear as text ?

It is inside the zip file that you would have downloaded after the purchase. If you have opened the source code in Android Studio, look for the file index.html in the following path.

aichatbot/app/chatbothelp/index.html

thanks all thing is good how I sent image message with dialogflow

only text option are allowed in dialogflow DEFAULT respone

I canot send image or clickable link

image and rich response only allowed in facebook messenger response

any way to solve this problem ?

Why don’t you provide the image url in the response text and parse it in the app to render it?

Or you could just send the image file name and in the app, you could prefix the URL to be concatenated with file name to render. Hope this makes sense, if not, please let me know.

Hello, when I generate the apk, it gives me an error in the login. Google sign in failed, I have configured the firebase correctly.

https://imgur.com/a/ujwIh

In version debug if it works, but in version realase does not work

Hi,

Thanks for purchasing my item.

Regarding your sign-in error, please follow this link to first provide the SHA-1 of your signing certificate – https://developers.google.com/android/guides/client-auth

After you have signed your keystore file with the above steps, the Google Sign-in should work without any error.

This instruction is already in code LoginActivity.java -> onActivityResult() method.

Can’t download demo apk. Check again and let us know new location.

Thanks for pointing out the issue, I have fixed the link now. Please give a try now and it should work.

Hi, File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: I am getting this error

Hi,

You need to first add Firebase to the project. Try following the below instructions to add it.

Use the Firebase Assistant to add it.

To open the Firebase Assistant in Android Studio:

Click Tools > Firebase to open the Assistant window. Click to expand one of the listed features (for example, Analytics), then click the provided tutorial link (for example, Log an Analytics event). Click the Connect to Firebase button to connect to Firebase and add the necessary code to your app.

Along with the project code, there’s a help file in HTML format is included. Please follow the instructions step by step to bring the app up and running.

If you still face any issues, just reply here, happy to help.

Can the bot be customised for answers from the web? Example Weather, location, food, direction and to be asked to get or post info? like call a cab?

Absolutely, bot backend can be trained for any business case. Whatever you have mentioned above is possible.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey