Hi, anyone who wants to clear chats can add following line in script tag window.localstorage.clear() Also, to clear chats on restart, you can add condition with following code : window.onload()
@@DroidCity I mean the code used to clear chats, specifically where do you put it in the script, because I tried to put it in several places but it doesn't work. Thanks
Hi guys, one update those who are using rasa 2.3.x or till 2.4.x version there is socketio and engineio issue and because of that webchat won't get connected. Use following versions: python-engineio==3.13.2 python-socketio==4.6.1 if you don't want to do this just downgrade rasa version or upgrade to 2.5.x Update: just use 1.0.1 in rasa-webchat for Rasa version > 2.4
@@DroidCity Hey, can you please tell me how to implement this chatbot on some websites other than a local HTML file, like some websites having any domain name.
@@DroidCity I don't know much about webpage coding except HTML basics, so can you tell how this chatbot can be implemented if someone has made a webpage using a language other than HTML like PHP, javascript, or CSS
hey , i have implemented everything told in the video but when i open my html it is blank .can you please look into my matter , it will be a great help
Hi, check inside inspect and there in console what do you see? add it here, also check out website error tutorial: ruclips.net/video/B1Z-lM7daAg/видео.html. Still you have doubt please add them here or on discord server.
i don't understand how to use the following line in the script of the last version of rasa web chat: ``` window.onload = WebChat.open; (this was use in the chat widget version 0.11.5). I want to open the chat widget on page loading
I think you might have to edit inside the script tag. if that doesn't work then you can try out cloning rasa-webchat then try to edit their script directly.
Hello sir I have done the exact same steps and completed the integration of chatbot with website but its not happening now when I tried again I dont have any version problems as I am using rasa 2.6, I made an another environment again but the pop up for the chatbot is not visible... Would you guide me for this
Also I am getting this line after rasa shell or running the model api which wasnt there before "connecting to channel 'cmdline' which was specified by the '--connector' argument. any other channels will be ignored. to connect to all given channels, omit the '--connector' argument."
@@DroidCity Hey thanks for replying But to be honest i am still not getting the result, i believe i am not putting the right command or not in correct position
I am getting blank html page in chrome... No error in console... Tried with 1.0.0 instead of 1.x.x.. still no results... Please advice how to resolve this.
Hello, Nice Video!! I make a flask application when user logged in then username is stored in session variable. So I want to use that username in chatbot for query processing from/to the database like insert new order data with user name for checking history using username so how can I do that ? please suggest fast
@Droid City Why am i getting this error in command prompt - 'website_integration' is not recognized as an internal or external command, operable program or batch file.
I have implemented the script and bot is giving response but ,when I open my index.html file instead of giving initpayload it is showing me the last conversation. Session persistence : false but still the bot is giving me the last conversation instead of initpayload everytime
I just copied the script from rasa-webchat Github and pasted it into an HTML file (outside my rasa project). However, nothing is visible when I run it. No widget at all. Is this supposed to happen?
Hi there, could you please tell me which Rasa version you are using and if it is > 2.4 then use the 1.0.1 webchat version. Also, I have created an error tutorial on this please do have a look
Hi sir, I face an error while I open and chat with rasa.... the webchat couldn't open the image to cheer up? also I cant put customized the bot profile :((
Were you connected to internet? And what error did you received. Please add complete error. You can join discord server for more help since, I won't be able to see images here
Hi, I have built an interface for Rasa Chatbot (HTML, CSS, JS). Now I want to wrap them up and call them through a script like the video above. Are there any possible ways? Thanks a lot
It's my pleasure, Answer: you will have to add button inside your html code or in widget code where when you click it will send payload to bot to restart and to clear just add following code inside widget script: {"storage":"session"}
Hi thanks for the feedback. If you want to refresh it then you can close the session user had and start with new when they open the widget again. This will change the sender id which will be sent to rasa
thx for your great works! i successfully get it running without action server, but the web page turns blank when i try to run action server at the same time. may i ask how to do this with custom actions?
Hi thanks for the feedback, was busy these days so did not able to reply. It seems wierd like actions is not capable of doing this. Are you just running custom actions or what?? If you are then actions are linked with main rasa server so without it there is no use of them so run rasa server and provide the url as you do when running it solo
Hi, you will have to add a script to remove messages when it loads. For doing so, you can add localStorage.clear() to clear messages. Other than this is just javascript so please have a look on google you will be able to find. If you still have doubts feel free to ask
very nice. how to clear chat history? even if i refresh the page, close the tab, close the browser, restart the server, the chat history is there. how to set param?
Thanks, so for clearing chat history you will have to run following code snippet. window.localstorage.clear() This will clear the chat history. Also you want when it reloads so check on google how to check page reloads that will be inside if
So you want to clear previous chats? Yes then, just write a script like following window.localstorage.clear() this should be done when page is reloaded or refreshed so make sure to add that condition too
hi , thank you for the tutorial , i'v made the widget to showup but when i write a mesage it is not responding, guess it is not connected to my rasa bot even though i launched the command rasa run -m models --enable-api --cors "*" credentials= true , can you please help me ?
The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO) facing this error Rasa Version : 2.5.1 Minimum Compatible Version: 2.2.0a1 Rasa SDK Version : 2.5.0 Rasa X Version : None Python Version : 3.6.8 Operating System : Windows-10-10.0.18362-SP0 Python Path : c:\users\sumans3\appdata\local\programs\python\python36\python.exe which version of socketio and engineio should i use
Hi, Thank you very much for this wonderful video...Was Able customize the bot UI...Also I need to know how we can pass a auth token of a website through the bot UI script and how can I receive that in actions.py file?
Hi Thanks for your feedback, I am glad it helped you. To pass any data from website to bot you have to trigger a intent followed by entity data which looks as below: /greet{"auth_token":1234} Above message to assistant will set entity auth_token as 1234 but you will need slot to capture and keep this value memorized
Hi Matthew, you can add this as button on your html page. Inside the script tag add a function which does like following: window.localstorage.clear() This will clear the chats and session. Make sure to connect this function with the button you add to clear chats
Thanks for this tutorial. I want to implement custom conversations with the bot. I have added the necessary code in the yml files for implementing forms and slots, but I'm unable to get it running on the website. Please assist.
hey, i need to add buttons to the conversation , and make it show up in the widget ,i knew you can make buttons with rasa x , is it possible to add buttons to this script ? thank u
Nope that's not possible to keep and change button on each conversation. But you can keep on button for something special or important. Like talk to human
@@DroidCity yea the button i want to add is for the voice bot, when u press on it , u start talking to the voice bot, i'v already made the voice bot in my local i just need to integrate it with it, do u think it's possible ?
Yes you will have to tweak the class where message is typed you can check that by doing inspect. And then add your button too via html. If you are good at react js then I would say clone their repo and make your own widget
i used, all the same, said in the tutorial but not able to see the chatbox. Rasa Version : 2.1.2 Rasa SDK Version : 2.3.1 Rasa X Version : None Python Version : 3.7.5 Operating System : Darwin-20.3.0-x86_64-i386-64bit Python Path : /opt/anaconda3/envs/rasa-2-1-2/bin/python I am using MacOS, is that a problem?
@@DroidCity do you mean file address url, if you meant he script tag then yes https is present this is my repo for reference github.com/vaibhavkri/Rasa-Init
@@dilanekamga9815 What error or anything that would tell me what happens? Also, comments won't help in figuring out error, I would recommend to join discord server so I could help you properly
Bro firstly great job with the video as well as the explanation... Thanks :D... I got the widget to run successfully.. however I need the same widget in full screen on the webpage upon load itself... How can I achieve this? I know there's a button which we can enable and go to full screen mode.. but I want it to load in full screen mode automatically... Please help..
@@DroidCity Hello... I'm using .rw-widget-container .rw-chat-open{height: 100%; width: 100%} but still I'm not able to open the chat in full screen mode upon load itself.... Full-screen option is working fine.. no problem there.. but I want the chat to open in full screen mode by default on the webpage.. can you help me with the code for it... Thanks :)
Hi, you can check on Google about who to send http request in js, since I am not JS developer I can't help you with the coding but can guide you to right place (logic for achieving is same)
hi thanks for your video i aws desesperatly searching for one unfortunatlu i have some issue with socket io could u help me please ? when i run the rasa run command, i have this error in my terminal " AttributeError: 'AsyncServer' object has no attribute 'generate_id' " anything ??
Okay you can try following:pip install python-engineio==3.13.2 pip install python-socketio==4.6.1 These are the version which are not having any issues while connecting with webchat so this might help you
Hi! Thank you for your video. I have managed to run the rasa run -m models --enable-api --cors "+" however, the cmd showed a warning like this UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor("gradients/cond_1_grad/Identity_1:0", shape=(None,), dtype=int64), values=Tensor("gradients/cond_1_grad/Identity:0", shape=(None,), dtype=float32), dense_shape=Tensor("gradients/cond_1_grad/Identity_2:0", shape=(1,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory. warnings.warn( Therefore, in the HTML file the chat icon did not appear. Please help, thank you!!
@@DroidCity Thank you! I have manage to set it up. I want to ask can I deploy this on github page or heroku so that the project can run online instead of locally? Thank you!
Hi, sorry for delay, this process is simple, i dont have any course in mind that can help you with this but add your issue on Droidcity Discord i will try to answer them.
Hi, anyone who wants to clear chats can add following line in script tag
window.localstorage.clear()
Also, to clear chats on restart, you can add condition with following code :
window.onload()
could u give me an example?
Please join discord since, I won't be able to add code snippet properly here
Hi, can you tell me where to put that code? Thanks a lot
Inside your html script tag
@@DroidCity I mean the code used to clear chats, specifically where do you put it in the script, because I tried to put it in several places but it doesn't work. Thanks
this tutorial is very helpful than other videos of the same explain about Rasa tutorial
Hi guys, one update those who are using rasa 2.3.x or till 2.4.x version there is socketio and engineio issue and because of that webchat won't get connected. Use following versions:
python-engineio==3.13.2
python-socketio==4.6.1
if you don't want to do this just downgrade rasa version or upgrade to 2.5.x
Update: just use 1.0.1 in rasa-webchat for Rasa version > 2.4
thanks man ! changing the socket io version to 4.6.1 did the trick for me ( i am using rasa 2.4 )
Thank you so much brother! you saved me! You have won my subscription ! keep making such useful videos
@I17-0002 Muhammad Ammar use pip install python-socketio==versionnumber
@@user-yh8hw1ln4k can u tell me?
but my chatbot not giving reply? why
Very nice introduction, thank you!
It's my pleasure ☺️
Your video is really helpful, Thank you
Hiii bro, the bot is working but all the output(data from csv) will be displayed in one line but I want in multiple lines
I did all the steps as mentioned, but i dont get any response from the bot. I can only see my messages in the chat window. Please help
SUPER AMAZING VIDEO, THANKS A LOT
Thanks brother for your help, you explained it beautifully. Please bring tutorials like these in the future too.
Sure will do. I am glad you liked this. Feel free to add suggestion for any tutorial you would like to see!
@@DroidCity Hey, can you please tell me how to implement this chatbot on some websites other than a local HTML file, like some websites having any domain name.
It's same you just have to publish it on GoDaddy or any hosting platform. It's just script na
@@DroidCity I don't know much about webpage coding except HTML basics, so can you tell how this chatbot can be implemented if someone has made a webpage using a language other than HTML like PHP, javascript, or CSS
Hi, this is great doubt, but to create a website or a webpage you need html even for a bit then too. So without html there isn't any website.
how can we restart the chat by clearing the previous chats in rasa chatbot which is integrated in localhost.
html page not working, bot not appearing
Did you solve the issue ?
hey , i have implemented everything told in the video but when i open my html it is blank .can you please look into my matter , it will be a great help
Hi, check inside inspect and there in console what do you see? add it here, also check out website error tutorial: ruclips.net/video/B1Z-lM7daAg/видео.html. Still you have doubt please add them here or on discord server.
i don't understand how to use the following line in the script of the last version of rasa web chat: ```
window.onload = WebChat.open; (this was use in the chat widget version 0.11.5). I want to open the chat widget on page loading
I think you might have to edit inside the script tag. if that doesn't work then you can try out cloning rasa-webchat then try to edit their script directly.
mine website only loaded but there is no chat option to chat. Help!!!
What error are you receiving? Check the errors in inspect console
@@DroidCity index.js:1 Failed to load resource: the server responded with a status of 404 ()
What command did you ran? Did it had --cors? Also what is the rasa version
@@DroidCity yes it has --cors and 2.1.2
Did you changed the version rasa webchat? If not try reading the Readme of rasa webchat repository they have mentioned
Nice Explanation , can you post the video on triggers, Very nice introduction, thank you!
are you talking about trigger intents?
I have created rasa in c drive and I followed same procedure but not
Getting output. Could anyone help me?
same issue here
thanks for the video! really helped a lot! i was wondering is it possible to make an API call and have the message show up on the widget?
Hi, Can you please tell which python version need to be installed. Any specific python version need to be installed.
python 3.8 is better for this project
Hello sir I have done the exact same steps and completed the integration of chatbot with website but its not happening now when I tried again I dont have any version problems as I am using rasa 2.6, I made an another environment again but the pop up for the chatbot is not visible... Would you guide me for this
Also I am getting this line after rasa shell or running the model api which wasnt there before "connecting to channel 'cmdline' which was specified by the '--connector' argument. any other channels will be ignored. to connect to all given channels, omit the '--connector' argument."
Did you check error tutorial of mine. If not please have a look at it. It might be one of it
@@DroidCity Yeah gotcha Thanks sir
sir I want to integrate my bot in moodle site or php site .. any tips PLZ .. i dont know how to start
very nice tutorial
thanks
How to pass a JWT payload in this frontend code? I need it for authenticating my socket io channel connection
Send it as custom payload in webchat and then extract it from channel in rasa. If you still struggle let me know
how to clear chats each time you reload the website
Hey
Thank you it was quite helpful
Can you mention how to clear the bot every time i run it
You can clear the chats, by running following command:
window.localstorage.clear()
For checking the page refresh/load:
window.onload()
@@DroidCity Hey thanks for replying
But to be honest i am still not getting the result, i believe i am not putting the right command or not in correct position
I am getting blank html page in chrome... No error in console... Tried with 1.0.0 instead of 1.x.x.. still no results... Please advice how to resolve this.
Which version you are using for Rasa. if its greater than 2.4 then use 1.0.1 in rasa-webchat
Hello, Nice Video!!
I make a flask application when user logged in then username is stored in session variable.
So I want to use that username in chatbot for query processing from/to the database like insert new order data with user name for checking history using username so how can I do that ?
please suggest fast
This video very useful. I am waiting for the video for the integration of rasa chatbot with realtime application. Hope you are already working on it 🙂
Can elaborate on realtime application?
@@DroidCity yes, actually I am trying to integrate it with a web application , like Facebook (which is password protected)
Oh haan, I am working on it. Soon that will be out too 🙂
i want to store user responses inside my database....how would i do that...
Use tracker store which has to be configured inside endpoints.yml
@@DroidCity thanks
@Droid City Why am i getting this error in command prompt - 'website_integration' is not recognized as an internal or external command,
operable program or batch file.
Could you give me the command you ran
How can I install rasa version 2.1.2 ???
Now I am in the latest version 3.1.0
should I specicy the version like version=2.1.2 while installing Rasa ??
Yes you can specify it other than that option is to do pip install --uograde rasa==2.1.2
@@DroidCity tnx 😍
I have implemented the script and bot is giving response but ,when I open my index.html file instead of giving initpayload it is showing me the last conversation. Session persistence : false but still the bot is giving me the last conversation instead of initpayload everytime
Yes so its browser cache, to clear it you will have to use below code when website's load:
window.localstorage.clear()
window.onload()
Hey Droid city is this still working I am using same config Rasa and Python but webpage don't have any chat popup
Yes this process still works, i am using it myself
I am getting error for rasa 2.7 version please help me and how to integrate it in react
Hi, can you please share the error log? So I can help you out
I just copied the script from rasa-webchat Github and pasted it into an HTML file (outside my rasa project). However, nothing is visible when I run it. No widget at all. Is this supposed to happen?
Hi there, could you please tell me which Rasa version you are using and if it is > 2.4 then use the 1.0.1 webchat version. Also, I have created an error tutorial on this please do have a look
Hi sir, I face an error while I open and chat with rasa.... the webchat couldn't open the image to cheer up? also I cant put customized the bot profile :((
Were you connected to internet? And what error did you received. Please add complete error.
You can join discord server for more help since, I won't be able to see images here
oke sir
hi, how to clear the whole chat if we want to start from starting.
Please have a look at Pinned comment it will help you out
Hi, I have built an interface for Rasa Chatbot (HTML, CSS, JS). Now I want to wrap them up and call them through a script like the video above. Are there any possible ways? Thanks a lot
thank you so very much...thank you!!!
can you also tell how to clear or restart chats from here?
It's my pleasure,
Answer: you will have to add button inside your html code or in widget code where when you click it will send payload to bot to restart and to clear just add following code inside widget script:
{"storage":"session"}
Hey it worked fine with local host 5005 , but when I used ngrok at port 5005 to use my pc as server to the internet, it gave error in console.. Why?
What was the error?
i mailed you the error with screen shot , pleeaase check
I have
@Droid City, I have a new error in my cmd : rasa run: error: invalid choice: 'models' (choose from 'actions')
What command you ran
hello sir great video , i wanted to ask how can the bot refresh everytime the bot close and open
?
Hi thanks for the feedback. If you want to refresh it then you can close the session user had and start with new when they open the widget again. This will change the sender id which will be sent to rasa
thx for your great works! i successfully get it running without action server,
but the web page turns blank when i try to run action server at the same time.
may i ask how to do this with custom actions?
Hi thanks for the feedback, was busy these days so did not able to reply. It seems wierd like actions is not capable of doing this. Are you just running custom actions or what?? If you are then actions are linked with main rasa server so without it there is no use of them so run rasa server and provide the url as you do when running it solo
thanks,very clear!
I am trying to integarte it with git and use it in my website
is it possible to recive files from chatbot like pdf,word doc?
Yes it is possible but for that widget should support attachments and also you will have to pass it as metadata from widget to rasa
Amazing work....Thanks
Hii bro. But the old message appears after reloading it or reopening the tab. What to do ?
Hi, you will have to add a script to remove messages when it loads. For doing so, you can add localStorage.clear() to clear messages. Other than this is just javascript so please have a look on google you will be able to find.
If you still have doubts feel free to ask
@@DroidCity Thanks bro
very nice. how to clear chat history? even if i refresh the page, close the tab, close the browser, restart the server, the chat history is there. how to set param?
Thanks, so for clearing chat history you will have to run following code snippet.
window.localstorage.clear()
This will clear the chat history.
Also you want when it reloads so check on google how to check page reloads that will be inside if
how to restart bot every time when in open link it also shows previous chat
So you want to clear previous chats?
Yes then, just write a script like following
window.localstorage.clear() this should be done when page is reloaded or refreshed so make sure to add that condition too
@@DroidCity thanks
@@rishabhsharma3357 can you help me with that please?
Hi, nice tutorial! How can i send a request messagge to the server from the prompt? Like using curl with a post request?
Yes sure, you can
@@DroidCity how? can you send me the piece of code ? curl ....
hi , thank you for the tutorial , i'v made the widget to showup but when i write a mesage it is not responding, guess it is not connected to my rasa bot even though i launched the command rasa run -m models --enable-api --cors "*" credentials= true , can you please help me ?
Check if your model is trained in same rasa version as you are currently running in. Or try to delete the model and train bot again
@@DroidCity it worked ! thank you
Glad to hear that
The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)
facing this error
Rasa Version : 2.5.1
Minimum Compatible Version: 2.2.0a1
Rasa SDK Version : 2.5.0
Rasa X Version : None
Python Version : 3.6.8
Operating System : Windows-10-10.0.18362-SP0
Python Path : c:\users\sumans3\appdata\local\programs\python\python36\python.exe
which version of socketio and engineio should i use
Change the socketio and engineio versions as I showed in the error tutorial
Link: ruclips.net/video/B1Z-lM7daAg/видео.html
@@DroidCity thank you, error is fixed, looking forward to more videos!😄
How to deploy this website with heroku
Quick teaser: it's coming within next week. Stay tuned!
How do you after changing the code implement it/ check whether it is working /train the bot?
Can you please elaborate a bit?
How to run the chatbot in a different port?
By adding flag --port $PORT
@@DroidCity where to execute this command
Where do you think?
Hi, Thank you very much for this wonderful video...Was Able customize the bot UI...Also I need to know how we can pass a auth token of a website through the bot UI script and how can I receive that in actions.py file?
Hi Thanks for your feedback, I am glad it helped you.
To pass any data from website to bot you have to trigger a intent followed by entity data which looks as below:
/greet{"auth_token":1234}
Above message to assistant will set entity auth_token as 1234 but you will need slot to capture and keep this value memorized
@@DroidCity Thanks a lot for u r reply.
Thank you, the video is useful and I made it, but I want to ask how I can clear the dialog when I click on html every single time.
Hi Matthew, you can add this as button on your html page. Inside the script tag add a function which does like following:
window.localstorage.clear()
This will clear the chats and session. Make sure to connect this function with the button you add to clear chats
@@DroidCity could you please show this
@@naanimuhunthan4771 yes sure will add a lazy Tut for this purpose Thanks for suggesting
hi bro, how to add file uploader button
Hi, inside botfront's webchat this functionality is not present. You will have to add that feature by cloning the webchat code.
It doesn't work for me. I use rasa 2.8.1, please can you help me?
Can you share what errors you are getting?
@@DroidCity I dont get any error, I use the same version. My webpage is opening but its a blank page and I cant find the widget.
Try checking console by doing inspect there you will see error
@@madhumithamuthukumar4094 exactly
Dilane try checking out inspect bcoz javascript error doesn't show up in terminal it gets shown in inspect section
time saviour
very helpfull, thank you
thanks you sir
Bro, I am not able get that html output I am getting blank html page could you help me on this?
Could you tell me what kind of error you are getting? Also, I have added a video, on website integration errors solutions
@@DroidCity updated socketio==4.6.1 but still same error "xhr poll error" also watched ur error solution video nothing helped
Hi which version of rasa you are using?
@@DroidCity rasa 2.1.2
Can u check if it is working for u or not.. coz my html page is blank and has error
Thank you for this video
Hello how can i clear chatbot conversation history?
local.storage.clear() this will help you
@@DroidCity may i know add the script at which line?
thanks it helped alot
Thank you
May I ask how can I restart the conversation?
/restart
@@DroidCity Where should I put /restart? It's inside stories.yml become 'action' or js code?
No no, just send text message to rasa as /restart it will restart session/conversation in rasa
@@DroidCity It's does not works, it's possible can I chat with you?
Please join discord server i can help you better way.
Hey can you please make a video on how to integrate the same in Rasa 3 .. please it will be helpful stuck in a project
Hi, sure will do, btw what errors are you facing?
where i can find this code??
You can find it in description
Thanks for this tutorial. I want to implement custom conversations with the bot. I have added the necessary code in the yml files for implementing forms and slots, but I'm unable to get it running on the website. Please assist.
Does it run on rasa shell?
@@DroidCity It does, I am getting websocket error and the action server log is empty.
What is the socket error you are getting? Please join discord and add your query since I won't be able to help you completely here
@@DroidCity Surely, let's connect there. (y)
hey, i need to add buttons to the conversation , and make it show up in the widget ,i knew you can make buttons with rasa x , is it possible to add buttons to this script ? thank u
Nope that's not possible to keep and change button on each conversation. But you can keep on button for something special or important. Like talk to human
@@DroidCity yea the button i want to add is for the voice bot, when u press on it , u start talking to the voice bot, i'v already made the voice bot in my local i just need to integrate it with it, do u think it's possible ?
Yes you will have to tweak the class where message is typed you can check that by doing inspect. And then add your button too via html. If you are good at react js then I would say clone their repo and make your own widget
Very nice introduction but how to add voice chatbot on this template? Thank you!
Voice chatbot isn't supported on webchat, but yes you can try out yourself with mozilla deepspeech
Hi I'm not able to see the chatbot on my chrome screen could you guide me for the same?
What's the error in website console?
@@DroidCity website console error : Failed to load resource: net::ERR_CONNECTION_REFUSED and the chatbot icon itself is not visible.
Show me credentials and script tag content. I think anyone of them is incorrect. In credentials.yml check for indentation
@@DroidCity Checked both they're fine. I've sent the files in your e-mail. Could you kindly check and let me know.
Hi I did check your mail. Can you try to reposition socketio code before rasa: I would say just replace the commented socketio code with yours
How do i get data in actions.py if i pass in customData?
You will have modify connector and then you can pass it in metadata and access it via events in custom actions
Yeah sure will do. Also you can follow me on instagram there I often post this kind of tricks too.
Id: droidcity0
i used, all the same, said in the tutorial but not able to see the chatbox.
Rasa Version : 2.1.2
Rasa SDK Version : 2.3.1
Rasa X Version : None
Python Version : 3.7.5
Operating System : Darwin-20.3.0-x86_64-i386-64bit
Python Path : /opt/anaconda3/envs/rasa-2-1-2/bin/python
I am using MacOS, is that a problem?
getting this error in consol of the browser
net::ERR_SSL_PROTOCOL_ERROR
Did you add https in the url?
@@DroidCity do you mean file address url,
if you meant he script tag then yes https is present
this is my repo for reference
github.com/vaibhavkri/Rasa-Init
I will clone this repo and test what's happening, and let you know
@@DroidCity hey it worked now, i had to clear cache of my browser
How to reduce rasa voice playback speed
Where you have integrated voice? Is it webchat?
@@DroidCity React-based Chatroom Component for Rasa Stack
Sorry for late reply, I have not used that so cant help with it
@@DroidCity thank you
very nice video. would like to know , how to integrate it with an existing website ? ant help would be of gr8 help. thanks
Same procedure, just add the script tag and you are good to go..
@@DroidCity Hi, I am facing issue of connection timeout while loading index.js, rasa version is 2.1.0 , what could be the reason ?
Is the url correct? Because if you give localhost then it won't work
Nice! Can you tell me how can I make it custom? Can we connect over linked in or mail to discuss if you have time?
Sure mail me, at droidcity0@gmail.com and will help you out also I am on instagram as droidcity0
@@DroidCity Hey, I texted on the instagram ID mentioned in description are you active there? Or should I mail you?
I am I will reply you soon
Hi, thanks for the great video. How can we store the conversations?
Use tracker store it will help you. You can check out docs on rasa.com
how to use custom action
You can use it to do anything that python can do and make chatbot experience great.
Can you make video on human handoffs
Sure will do. I am in process of making them
i have not get the widget to start chat
Can you check errors in console, by doing inspect element on website?
@@DroidCity Finaly it worked. there was some coding error inside but managed somehow, thanks btw..
@@azizulhakim9725 Could you tell me how you rectified this error, please.
how can I clear my chat?
Add this into your script when website loads
window.localstorage.clear()
For checking when website loads:
window.onload()
@@DroidCity it does not work
@@dilanekamga9815 What error or anything that would tell me what happens? Also, comments won't help in figuring out error, I would recommend to join discord server so I could help you properly
@@DroidCity I solve this problem, You can just add this after subtitle params: {"storage": "session"}
Great video, could you make a tutorial about how to integrated it with react as react component?
Tbh, I am not a react developer so I won't be able to promise that I can do that. But yeah I could try someone who knows could teach
@@DroidCity Thank you so much!
@@DroidCity I success figure out how to integrate it with react, anyway, thank you!
Can you share it here?
@@DroidCity i can, but it needs a lot explain that hard to type in text. i will try to upload to git hub that let people see it
thanks
Bro firstly great job with the video as well as the explanation... Thanks :D... I got the widget to run successfully.. however I need the same widget in full screen on the webpage upon load itself... How can I achieve this? I know there's a button which we can enable and go to full screen mode.. but I want it to load in full screen mode automatically... Please help..
There will be styling for that trying to set width and height to 100%. Let me know if you face any issue, it works or not
@@DroidCity Hello... I'm using .rw-widget-container .rw-chat-open{height: 100%; width: 100%} but still I'm not able to open the chat in full screen mode upon load itself.... Full-screen option is working fine.. no problem there.. but I want the chat to open in full screen mode by default on the webpage.. can you help me with the code for it... Thanks :)
I will try doing it on my end and reach out give me like 1 day to try that out.
@@DroidCity Sure no problem... Thank you so much for the help 🙏
Hi, I was able to make it full screen you have to make widget and container both height and width 100% also make max-height to none
Can you post a similar tutorial for a real-time website?
Let me know if I am wrong, are you talking about, a tutorial on chatbot integration on the hosted website?
@@dishantgandhi6007 yes bro
Yeah so I am working on it will add a video for that too, soon and also provide testing link👍
@@DroidCity Please do
Sure!👍
Hi,
Thanks for your useful video. How can I have access to the rasa response inside the HTML file and send it to my own robot?
You can achieve that by using javascript requests and request Rasa assistant by calling either HTTP endpoint or socketio endpoint
@@DroidCity Is it possible to show me an example or Github project? I couldn't find anything about this issue... thanks alot
Hi, you can check on Google about who to send http request in js, since I am not JS developer I can't help you with the coding but can guide you to right place (logic for achieving is same)
hi thanks for your video i aws desesperatly searching for one
unfortunatlu i have some issue with socket io could u help me please ?
when i run the rasa run command, i have this error in my terminal
" AttributeError: 'AsyncServer' object has no attribute 'generate_id' " anything ??
I am glad you found this helpful, BTW Which version of python-socketio you are using?
And try to run rasa run -m models --enable-api --cors "*"
@@DroidCity the last for both rasa and python-socketio
Okay you can try following:pip install python-engineio==3.13.2
pip install python-socketio==4.6.1
These are the version which are not having any issues while connecting with webchat so this might help you
@@DroidCity ok i will try it and i will come back
I am using rasa 2.3.4
Yeah with that version of Rasa socketio of 5.x is not working also engineio too
Hi! Thank you for your video. I have managed to run the
rasa run -m models --enable-api --cors "+"
however, the cmd showed a warning like this
UserWarning: Converting sparse IndexedSlices(IndexedSlices(indices=Tensor("gradients/cond_1_grad/Identity_1:0", shape=(None,), dtype=int64), values=Tensor("gradients/cond_1_grad/Identity:0", shape=(None,), dtype=float32), dense_shape=Tensor("gradients/cond_1_grad/Identity_2:0", shape=(1,), dtype=int32))) to a dense Tensor of unknown shape. This may consume a large amount of memory.
warnings.warn(
Therefore, in the HTML file the chat icon did not appear. Please help, thank you!!
Hi Trang, inside inverted commas the symbol is asterisk and not plus. Try changing it and it should work
@@DroidCity Thank you! I have manage to set it up. I want to ask can I deploy this on github page or heroku so that the project can run online instead of locally? Thank you!
I have made a video on it. Its deploying on cloud for free. And yes you can add it on your GitHub after you have deployed it on cloud
thank you so much! im watching it right now 😅
hi, video is very helpful, but still i m not able to integerate with website. i am getting this message only. "Hello from Rasa: 3.2.10"
Hi, you can't use the localhost:5005 directly on browser. You have to add that url inside webchat and run that html file for chatting with assistant
Hello,
I want to understand it and need details about it.
It will be a great help if you can help me and suggest me some course.
Hi, sorry for delay, this process is simple, i dont have any course in mind that can help you with this but add your issue on Droidcity Discord i will try to answer them.
i have followed all the steps but at running index.html file no output is cmg please guide me for this
Hi , you have changed credentials.yml file . but you did not train how it's work ?
Hi credentials and endpoints does not need training it's just needs restating the rasa server
Thank you for this.