Welcome to the simplified version of the Business Agents in the CrewAI framework. This version provides a basic setup for business agents like Strategy, Marketing, and Sales, with corresponding tasks and operations for each.
Before you begin, make sure to set up the following environment:
- Python (preferably version 3.8 or above).
- pip (for managing Python packages).
To set up your development environment, it’s recommended to create a virtual environment and install the required packages.
In order to use the AI agents, you’ll need to add your API key for the Large Language Model (LLM) that you want to use (e.g., OpenAI’s GPT-3 or GPT-4). Here’s how to set it up:
-
Method 1: Using
.envFileThe easiest way is to add your API key to a
.envfile. This file should be placed in the root of the project directory. Add the following line to it:OPENAI_API_KEY=your_api_key_here
Note: Make sure to replace
your_api_key_herewith your actual API key from the LLM provider.
Once your environment is set up and the API key is added, you can run the main.py script to execute the agents and see their results.
This setup includes three basic agents:
- StrategyAgent - Handles strategic tasks like long-term planning and resource management.
- MarketingAgent - Focuses on marketing-related tasks such as analyzing trends, creating campaigns, and engagement strategies.
- SalesAgent - Handles tasks like sales reports, generating outreach emails, and improving sales pipelines.
You can customize these agents and add more by following the pattern in the existing agents (e.g., StrategyAgent, MarketingAgent, SalesAgent).
Tasks are loaded from the tasks.yaml file. This YAML file defines the different tasks the agents will perform. Each task includes:
- name: The task’s name.
- agent: The agent responsible for the task (strategy, marketing, or sales).
- description: A description of what the task involves.
- expected_output: The expected result of the task.
You can modify tasks.yaml to change the tasks or add new ones.
This is a simplified version of the Business Agents in CrewAI, designed to help you get started with business automation using AI agents. By following the instructions above, you can set up the environment, add your API key, and customize the agents for your needs.
I am currently in the learning process and have utilized AI tools to assist with the development of these business agents. These tools provided valuable insights and guidance throughout the process, helping to speed up the learning curve and development time. Feel free to ask any questions if you need further clarification on any aspect of the project!