Comments (15)
The we chat generates the session id string randomly. But you could change that behaviour by setting your session_id as a prop. It might not be very secure as the socket is open though
from rasa-webchat.
It doesn't yet... I was suggesting a possible addition. But since you found your way there's no need
from rasa-webchat.
thanks @ivopisarovic already working
from rasa-webchat.
You should be able to retrieve the senderId
in the tracker (latest_message)
from rasa-webchat.
Hi @znat, thanks for your reply. However, senderId
is a random string. How can I pair it with a real user that is logged in on the frontend?
I can use it to identify session but not for identifying the user.
from rasa-webchat.
I created a PR. #48
from rasa-webchat.
Yes you can use it as a user id with 0.5.x by setting the session_persistence
param to true
in the socketio
channel in the credential yaml file
from rasa-webchat.
Yes, that is good for persisting the same id across sessions. However, it does not solve pairing with a user that is already logged in on the frontend. So I have to send some custom data anyway. Am I right?
from rasa-webchat.
No response, hence I am right :D
from rasa-webchat.
I have already solved the problem using customData
.
However, I am still interested :) I went through the code but I cannot find the line where it reads session_id
from prop. So I do not believe changing session id is so easy. :) Please, can you point me to the code where this happens?
from rasa-webchat.
Aha! I do understand now. Thanks for explaining :) Yes, it would be fine to have such a prop. But doing it via customData
is simpler, so there is no need for that now.
from rasa-webchat.
@ivopisarovic could you please explain how did you solve the problem with customData
?
Thanks
from rasa-webchat.
@ramsesdm Sure. Look at README. I have explained it there. You need to create a custom channel in Rasa Core to handle custom data on backend.
from rasa-webchat.
@ramsesdm @ivopisarovic How to do it with latest rasa ? Where i need to write code for it ?
from rasa-webchat.
@shivangpatel Sorry, I am still using the older version.
from rasa-webchat.
Related Issues (20)
- How can i have access to rasa response inside HTML file and send it to my robot? HOT 4
- Link Image Address HOT 1
- ยฟCan I change the parameter language that goes in customData to the widget, without recharging the page? HOT 2
- Starting the conversation HOT 1
- how can i get response of socket.io HOT 1
- JWT authentication HOT 1
- Unable to connect to websocket getting handshake error and unable to customize the chat bot HOT 2
- How to use in Angular project HOT 1
- Table is not rendered HOT 1
- How can I change file and import it into my project? HOT 1
- I don't want the link in the button to open in a new tab. HOT 1
- Rasa 3? HOT 7
- Custom Button in the header HOT 4
- showFullScreenButton and displayUnreadCount HOT 1
- React integration HOT 1
- Not able to clone and run the code in my local HOT 3
- tooltipPayload overwrites initPayload HOT 2
- Not sure about what is the purpose of dispatch evalUrl function HOT 1
- Adding a custom component to RASA web-chat HOT 1
- Getting 'AsyncServer.enter_room' was never awaited error. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rasa-webchat.