Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permits for users #45

Open
scepeda78 opened this issue Oct 21, 2023 · 5 comments
Open

Permits for users #45

scepeda78 opened this issue Oct 21, 2023 · 5 comments

Comments

@scepeda78
Copy link

Lets say we have agents that can be accesed for a group of users (for example an agent that handles sensitivo information of a company),then most probably a system of permits is needed for the users.

@kevinpiac
Copy link
Contributor

Interesting!

So if I understand, you would like for example to restrict an Agent to a specific group of users?

@kevinpiac kevinpiac added the question Further information is requested label Oct 21, 2023
@scepeda78
Copy link
Author

scepeda78 commented Oct 21, 2023 via email

@kevinpiac
Copy link
Contributor

It makes sense. I cannot garantee when it will ship, but it's definitely something we'll consider.

Thank you much for your suggestions 🙏

@kevinpiac kevinpiac added scoping this and removed question Further information is requested labels Oct 21, 2023
@kevinpiac
Copy link
Contributor

kevinpiac commented Oct 21, 2023

Just adding some more information here.

In the next release, we'll allow you to authenticate users directly from the SDK.

It will work as follow:

agent.requestLogin({ text: 'Please login to access this agent' })

And this will send a rich component into the chat to ask the user to authenticate (see screenshot).

Screenshot 2023-10-21 at 13 44 48

We can imagine the same kind of control for groups.
You could add a user to a group from the backoffice or programmatically.

Then from the SDK you would just do something as follows:

project.onUserMessage(() => {
  if (user.group === 'some-group') {
     agentA.send('Agent A is available')
   }
   
   if (user.group === 'some-other-group') {
      agentB.send('You have access to this VIP agent')
   }
});

Would this make sense to you?

@scepeda78
Copy link
Author

scepeda78 commented Oct 21, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants