I am developing a chatbot using Conversational Agents (Agent Builder), and I would like to implement an authentication and authorization process to control access to playbooks, something that, as far as I know, is not natively supported by the platform. My goal is to restrict access to certain playbooks based on specific users or user groups.
For example, I want to ensure that only a specific group can access a playbook containing sensitive information, such as structured data from BigQuery, or playbooks that perform operations I do not want to make accessible to everyone.
My initial idea would be to implement a solution using Cloud Functions to authenticate and authorize users before allowing access to a playbook. Has anyone done something similar or has any suggestions on how this could be achieved?
Additionally, I am looking for the best way to integrate this logic into a playbook without compromising the user experience. Any ideas or complementary tools that could help implement this functionality?
Thank you in advance for any insights!