Skip to content

aws-samples/sample-compliance-assistant-with-agents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

sample-compliance-assistant-with-agents

Automate Compliance With Bedrock and CrewAI

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.

πŸ“Œ Table of Contents

πŸ“š Background Information

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

πŸ’» Demo

demo

🎯 What This Solution Does

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

architecture

Key Technologies Used

  • 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

πŸ“‹ Prerequisites

AWS Account Requirements

  • Active AWS account with appropriate permissions

  • Access to Amazon Bedrock models in your desired region

Technical Requirements

  • 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.

πŸš€ Installation

Step 1: Install CrewAI

If you haven't already, install CrewAI and uv:

pip  install  uv  crewai

Step 2: Install Dependencies

Navigate to your project directory and install the dependencies:

crewai  install

βš™οΈ Customization

Define Your LLM.

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 compliance challenge or Topic

Define your Topic as a parameter into the .env file

TOPIC='Latest PCI DSS requirements for Trading Platforms'

Define your Bedrock Agent Details

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'

Configure Agents and Tasks

  • 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

πŸƒ Running the Project

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.

πŸ€– Understanding Your Crew

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.

πŸ“‹ Additional Documentation

🀝 Contributing

Contributions are welcome! Please read our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.

πŸ“„ License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Sample solution to automate tedious regulatory compliance processes using multi-agent systems

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages