agentlabs icon indicating copy to clipboard operation
agentlabs copied to clipboard

Permits for users

Open scepeda78 opened this issue 1 year ago • 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.

scepeda78 avatar Oct 21 '23 07:10 scepeda78

Interesting!

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

kevinpiac avatar Oct 21 '23 09:10 kevinpiac

Yes, because that agent for example is connected to sensitive data of the company (balance sheet, or projects being done or agreements with clienta, as example)

El 21-10-2023 6:11 a. m., Kevin Piacentini @.***> escribió:

Interesting!

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

— Reply to this email directly, view it on GitHubhttps://github.com/agentlabs-inc/agentlabs/issues/45#issuecomment-1773727326, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEM47ODWDBXA2WGAAJ44R5DYAOGVDAVCNFSM6AAAAAA6J673SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTG4ZDOMZSGY. You are receiving this because you authored the thread.Message ID: @.***>

scepeda78 avatar Oct 21 '23 11:10 scepeda78

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 avatar Oct 21 '23 11:10 kevinpiac

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?

kevinpiac avatar Oct 21 '23 11:10 kevinpiac

To be honest, I'm not expert in coding! Because meanwhile I ve think in other option, which is to have a separated database for that agent, not maybe the best way but it might work.

El 21-10-2023 8:47 a. m., Kevin Piacentini @.***> escribió:

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]https://user-images.githubusercontent.com/15961122/277106072-bcbe00d5-88a6-4e5d-bde6-8d5277ef9aa3.png

We can imagine the same king of control for groups. You could add a user to a group. 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?

— Reply to this email directly, view it on GitHubhttps://github.com/agentlabs-inc/agentlabs/issues/45#issuecomment-1773766749, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEM47OEL6NTWYZMB3SKXNP3YAOY53AVCNFSM6AAAAAA6J673SCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTG43DMNZUHE. You are receiving this because you authored the thread.Message ID: @.***>

scepeda78 avatar Oct 21 '23 12:10 scepeda78