Welcome to the sample-compliance-assistant-with-agents project, powered by Amazon Bedrock and crewAI. This is a solution for automating some of the most tedious regulatory compliance processes using multi-agent AI systems. This solution serves as a practical starting point for organizations looking to enhance their compliance processes with AI capabilities, demonstrating how intelligent systems could complement and streamline existing compliance workflows. This solutionβs architecture can be adapted to help healthcare systems, enable manufacturers to maintain ISO safety documentation, and assist retailers in monitoring FTC advertising regulations or in other segments such as legal, finance, or human resources, offering wide- ranging potential for process automation and efficiency gains across various industries.
- sample-compliance-assistant-with-agents
- Automate Compliance With Bedrock and CrewAI
- π Table of Contents
- π Background Information
- π» Demo
- π― What This Solution Does
- π Prerequisites
- π Installation
- βοΈ Customization
- π Running the Project
- π€ Understanding Your Crew
- π Additional Documentation
- π€ Contributing
- π License
Financial institutions operate in an environment where regulatory compliance is both critical and increasingly complex. Traditional approaches to managing compliance requirementsβsuch as manual review of regulations, policy creation, and implementation of controlsβare time-consuming, prone to human error, and struggle to keep pace with rapidly evolving regulatory landscapes. The solution sample-compliance-assistant-with-agents helps compliance teams to automate some of the most tedious activities such as Updating Policies and Standards based on changes in regulatory frameworks, implementing technical controls etc. This solution leverages generative AI and multi-agent systems to transform compliance management, offering:
- Automated regulatory monitoring
- Intelligent policy creation
- Streamlined control implementation
- Real-time compliance guidance
This solution demonstrates how to build an intelligent, automated compliance management system that leverages multiple AI agents working in symphony to achieve defined outcomes. This patten can be leveraged to:
-
β Continuously monitor and analyze regulatory changes
-
β Transform regulatory requirements into organizational policies
-
β Design and implement technical controls
-
β Maintain compliance documentation
-
β Provide real-time guidance on compliance matters
ποΈ Architecture
-
Amazon Bedrock: Foundation models and RAG capabilities
-
CrewAI: Multi-agent orchestration framework
-
Amazon Bedrock Knowledge Bases: Current, authoritative compliance information
-
Amazon Bedrock Guardrails: Safety controls for responsible AI use
-
Amazon Bedrock Agents: Memory retention across interactions and integrates Knowledge Bases and Guardrails
-
Active AWS account with appropriate permissions
-
Access to Amazon Bedrock models in your desired region
-
You will be executing the application form your local/shared Linux environment.
-
Python 3.10 or later
-
Access to Amazon Bedrock models enabled
Ensure you have **Python >=3.10 installed on your system. This project uses UV for dependency management and package handling, offering a seamless setup and execution experience.
If you haven't already, install CrewAI and uv:
pip install uv crewai
Navigate to your project directory and install the dependencies:
crewai install
Add your Preferred LLM Model into the .env
file to enable API access.
We will be using Amazon Nova models via Amazon Bedrock
MODEL=bedrock/us.amazon.nova-pro-v1:0
Define your Topic as a parameter into the .env
file
TOPIC='Latest PCI DSS requirements for Trading Platforms'
Define identifier for your Bedrock agent in the .env
file
AGENT_ID='replace-with-your-amazon-bedrock-Agent-id'
AGENT_ALIAS_ID='replace-with-your-amazon-bedrock-Agent-alias'
-
config/agents.yaml
defines your agents. -
config/tasks.yaml
defines your tasks. -
crew.py
Executes the Crew -
main.py
starting point
Feel free to modify the agents and tasks based on your specific requirements
To kickstart your AI agents and begin task execution, run the following command from the root folder of your project:
crewai run
This initializes the Crew, assembling the agents and assigning them tasks as defined in your configuration. The default setup will generate a report.md
file in the root folder with a research summary on LLMs.
The Automate Regulatory Compliance With Multi-Agents Crew consists of multiple AI agents, each with unique roles, goals, and tools. These agents collaborate on tasks defined in config/tasks.yaml
, leveraging their collective skills to achieve complex objectives. The config/agents.yaml
file outlines the capabilities and configurations of each agent in your crew.
-
π Check our documentation on Amazon Bedrock
Contributions are welcome! Please read our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.
This library is licensed under the MIT-0 License. See the LICENSE file.