This guide provides detailed steps to create a PR agent that leverages Composio, agentic frameworks such as Langchain, LlamaIndex, CrewAI, Autogen, OpenAI and ChatGPT to review PRs every time they're created. Ensure you have Python 3.8 or higher installed.
Ensure you have triggers enabled in the Composio Dashboard. These are the triggers to enable:
Add the slackbot to general channel in your workspace to use it.
Navigate to the Project Directory:
Change to the directory where the setup.sh
, main.py
, requirements.txt
, and README.md
files are located. For example:
cd path/to/project/directory
Make the setup.sh Script Executable (if necessary): On Linux or macOS, you might need to make the setup.sh script executable:
chmod +x setup.sh
Execute the setup.sh script to set up the environment and install dependencies:
./setup.sh
Now, fill in the .env
file with your secrets.
python cookbook/examples/pr_agent_openai/main.py