RBAC (Role-Based Access Control) allows you to control what your collaborators can access.
By default, Botpress ships with three roles in addition to the administrator: developer, content editor, and agent.
Adding a New Role
<data>/global/workspaces.json file, you'll find the
roles property, which is an array of all the roles you can assign to the collaborators on your workspace. You can add, remove, and edit roles by modifying this array directly.
The rules which govern the users' rights are executed sequentially from first to last. For example, you can assign the following rules:
With the rules above, the user will see everything but the flows and won't be able to change anything but content.
Below are the access levels which Botpress can configure for a user.
Available Resources (res)
Below are the resources and interfaces to which you can give your chatbot studio users access.
|All bots inside the workspace|
|The runtime logs|
|The flow skills|
|File uploads (via the CMS)|
|The CMS elements (what the bot says)|
|The flow editor|
|Information about the bot|
|The admin dashboard (/admin)|
|Assigning roles ro collaborators|
|Creating bots and changing their information|
|Global access to all modules|
Modules only support a single top-level resource and one operation:
write. Define as
module.MODULE_ID, for example,
"name": "Human in the Loop",
"description": "Can view and respond to users by using the HITL module",