Git Product home page Git Product logo

Comments (15)

znat avatar znat commented on June 25, 2024 1

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.

znat avatar znat commented on June 25, 2024 1

It doesn't yet... I was suggesting a possible addition. But since you found your way there's no need

from rasa-webchat.

ramsesdm avatar ramsesdm commented on June 25, 2024 1

thanks @ivopisarovic already working

from rasa-webchat.

znat avatar znat commented on June 25, 2024

You should be able to retrieve the senderId in the tracker (latest_message)

from rasa-webchat.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

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.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

I created a PR. #48

from rasa-webchat.

znat avatar znat commented on June 25, 2024

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.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

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.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

No response, hence I am right :D

from rasa-webchat.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

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.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

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.

ramsesdm avatar ramsesdm commented on June 25, 2024

@ivopisarovic could you please explain how did you solve the problem with customData?
Thanks

from rasa-webchat.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

@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.

shivangpatel avatar shivangpatel commented on June 25, 2024

@ramsesdm @ivopisarovic How to do it with latest rasa ? Where i need to write code for it ?

from rasa-webchat.

ivopisarovic avatar ivopisarovic commented on June 25, 2024

@shivangpatel Sorry, I am still using the older version.

from rasa-webchat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.