Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
A Virtual Sales Agent that uses LangChain, LangGraph, and Gemini Flash to simulate customer interactions. Features include product inquiries, order management, and personalized recommendations through a user-friendly Streamlit interface.
Fetched from the repository for this visit.
This project implements a Virtual Sales Agent that simulates customer interactions, providing information and support through a Streamlit interface. Using the power of LangChain, LangGraph, and a SQLite database, this agent can answer product questions, create orders, check order statuses, and offer personalized recommendations. These tools are divided into safe and sensitive categories. For sensitive tools, such as creating orders, a human-in-the-loop mechanism is implemented, requiring approval or denial before proceeding.
👉 Check out a quick demo of the Virtual Sales Agent in action in the Interface Preview section!

This virtual sales agent can assist customers with:
Product Inquiries:
Order Placement:
Order Tracking:
Personalized Recommendations:
This Virtual Sales Agent is ideal for:
Here's a breakdown of the project's directory structure:
.
├── assets/
│ ├── agent_workflow.png # Diagram
│ ├── demo.gif # Demo gif
│ ├── graph.png # Agent workflow diagram
│ └── style.css # Streamlit custom styling
├── database/
│ ├── db/
│ │ ├── products.json # Bot product data (initial)
│ │ └── schemas.sql # SQL schema definitions
│ ├── db_manager.py # Handles database interactions
│ └── config.py # Database connection configuration
├── virtual_sales_agent/
│ ├── graph.py # LangGraph agent state machine and logic
│ ├── tools.py # Custom tools used by the agent
│ └── utils_functions.py # Utility functions for the agent
├── env-example # Environment variables template
├── main.py # Main Streamlit app
├── README.md # This file!
├── requirements.txt # Project dependencies
└── setup_database.py # Script to initialize the database
🎥 Demo GIF Here's a quick demonstration of the Virtual Sales Agent in action:

LangGraph Workflow

Follow these steps to set up and run the Virtual Sales Agent:
Clone the Repository:
git clone https://github.com/lucasboscatti/sales-ai-agent-langgraph.git
cd virtual-sales-agent
Create a Virtual Environment:
python3 -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
Install Dependencies:
pip install -r requirements.txt
Environment Configuration:
.env-example file to .env.GOOGLE_API_KEY, along with your GOOGLE_APPLICATION_CREDENTIALS (path to your credentials file), GCP_PROJECT_ID and REGION. Obtain these from your Google Cloud Platform (GCP) account at Google AI Studio.LANGCHAIN_API_KEY. This is for monitoring and debugging agent interactions.source .env
Initialize the Database:
python3 setup_database.py
Launch the Streamlit App:
streamlit run main.py
This will open the application in your web browser, and you can start interacting with the Virtual Sales Agent.
We welcome contributions to improve this project! Here’s how you can help:
This project is licensed under the MIT License. See the LICENSE file for more details.
GitHub checked 448h ago - refresh overdue. Recently viewed repositories target hourly refresh.