This project is a multi-agent business manager system built with the Agent Development Kit (ADK). It features specialized agents for communication, finance, sales, inventory, and purchase, and integrates with Google APIs for email and calendar automation.
- Modular multi-agent architecture (ADK)
- Communication agent with Gmail and Google Calendar integration (service account, domain-wide delegation)
- Financial, sales, inventory, and purchase agents with extensible toolsets
- Example prompts and usage scenarios
FinalADK/
├── .env # Environment variables (not committed)
├── .gitignore
├── COMMUNICATION_AGENT_GUIDE.md
├── details.json # Google service account credentials (not committed)
├── examples.md # Example prompts for all agents
├── manager/ # Main agent package
│ ├── __init__.py
│ ├── agent.py
│ └── sub_agents/
│ ├── communication/
│ │ ├── agent.py
│ │ ├── config/
│ │ ├── services/
│ │ └── tools/
│ ├── financial/
│ ├── inventory/
│ ├── purchase/
│ └── sales/
│
├── README.md
├── requirements.txt
└── tallydb.db
git clone https://github.com/Praneel7015/business-adk.git
cd business-adkIn the root directory, add:
GOOGLE_API_KEY=putyourkeyhere
GOOGLE_GENAI_USE_VERTEXAI=FALSE
DELEGATED_USER=emailidhere- Go to Google Cloud Console.
- Select your project or create a new one.
- Go to APIs & Services > Credentials.
- Click Create Credentials > OAuth client ID.
- For Application type, select Desktop app.
- Give it a name (e.g., "Business Manager Desktop") and click Create.
- Download the credentials file (e.g.,
client_secret_XXXX.json). Rename it todetails.jsonand place it in your project root.
- In Google Cloud Console, go to APIs & Services > Library.
- Enable Gmail API and Google Calendar API for your project.
- When you run the agent, a browser window will open for you to log in and authorize Gmail/Calendar access.
- A
token.picklefile will be created to store your credentials for future use.
python -m venv .venv
.venv\Scripts\Activate.ps1pip install -r requirements.txt
adk web
Then Click the link shown as follows
+-----------------------------------------------------------------------------+
| ADK Web Server started |
| |
| For local testing, access at http://localhost:8000. |
+-----------------------------------------------------------------------------+
or goto http://localhost:8000.
- The communication agent exposes tools for sending emails, scheduling calendar events, and creating meeting invitations.
- Other agents (financial, sales, inventory, purchase) can delegate tasks to the communication agent to send emails or create events based on business logic or user requests.
- Example: The sales agent can generate a report and instruct the communication agent to email it to a user.
- Use the communication agent to send emails or schedule calendar events via Google APIs.
- Use the financial, sales, inventory, and purchase agents for business operations and queries.
- See
examples.mdfor sample prompts and usage scenarios for each agent.
.envanddetails.jsonare excluded from git via.gitignore.- Never share your
details.jsonor.envfiles publicly. - For Google API integration, ensure your service account has domain-wide delegation enabled and the correct scopes set in the Google Admin Console.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
Chatgpt (Formatting, Function Fixing and Error Handling)