agentlabs-inc/agentlabs

Permits for users

Opened this issue · 5 comments

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.

Interesting!

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

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

Thank you much for your suggestions 🙏

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?