https://github.com/alimusawir/sales-agent-project
Conversational Sales Agent built with Google's Agent Development Kit (ADK) in Python. Handles multi-lead interactions, collects lead information step-by-step, saves data, and sends follow-ups on inactivity.
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.7%) to scientific vocabulary
Keywords
Repository
Conversational Sales Agent built with Google's Agent Development Kit (ADK) in Python. Handles multi-lead interactions, collects lead information step-by-step, saves data, and sends follow-ups on inactivity.
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Sales Agent using Google ADK
Project Overview
This project implements a conversational Sales Agent using Google's Agent Development Kit (ADK) in Python.
The agent:
- Activates when a new lead sends a message, simulating a form submission.
- Asks for consent before collecting any information.
- Collects specific information through a step-by-step flow:
- Age
- Country
- Interested Product or Service
- Handles multiple lead interactions concurrently by managing separate sessions using session IDs.
- Saves all collected information into a CSV file (leads.csv).
- Sends a follow-up message if a lead does not respond within 10 seconds, simulating a 24-hour delay.
Project Structure
sales-agent/
adk-env/ # Virtual environment
agent.py # SalesAgent class logic
utils.py # Helper function to update leads.csv
simulate_leads.py # Script to automatically simulate lead interaction
interactive_test.py # Script to manually interact with the agent
leads.csv # Output file where leads are saved
README.md # Project documentation
Setup Instructions
- Clone or download the project files.
- Create a virtual environment:
python -m venv adk-env - Activate the virtual environment:
adk-env\Scripts\activate - Install required dependencies:
pip install google-adk pip install aioconsole
How It Works
External Trigger:
The agent is activated when a lead sends a message, simulating a form submission.Conversational Flow:
- The agent greets the user and asks for consent.
- If the user agrees, the agent collects information step-by-step.
- The collected data is saved in the
leads.csvfile.
Multi-Session Handling:
Each conversation session is handled independently using a unique session ID.Follow-Up Handling:
If the user does not respond within 10 seconds after a question, the agent sends an automatic follow-up reminder.
How to Test
Simulate Leads Automatically
Run the simulation script:
python simulate_leads.py
This script automatically interacts with the agent to simulate lead form filling.
Manually Interact with the Agent
Run the manual testing script:
python interactive_test.py
Type your responses manually. If you do not respond to a question within 10 seconds, the agent will automatically send a follow-up message.
Leads Data Example
After the interaction, the leads.csv file will store lead data in the following format:
| leadid | age | country | interest | status | |---------|-----|---------|----------|--------| | manuallead | 25 | Pakistan | Nike Shoes | secured |
Requirements Fulfilled
| Task Requirement | Status | |-------------------|--------| | Use Google ADK in Python | Completed | | Handle multiple lead interactions concurrently | Completed | | Collect specific information step-by-step | Completed | | Activate agent through an external trigger | Completed | | Save collected information into a CSV file | Completed | | Follow up with leads who do not respond | Completed | | Manual and simulation-based testing | Completed |
Conclusion
This project successfully implements a fully functional conversational sales agent that interacts with leads, collects necessary information, saves the data securely, and manages follow-up messaging in case of inactivity, all built using Google's Agent Development Kit in Python.
Owner
- Name: Musafar Ali Soomro
- Login: AliMusawir
- Kind: user
- Repositories: 1
- Profile: https://github.com/AliMusawir
Student at Sukkur IBA University
GitHub Events
Total
- Push event: 1
- Create event: 2
Last Year
- Push event: 1
- Create event: 2