I built an AI sales agent for a computer equipement Ecommerce website, the agent will streamline the customer engagement and sales processes, by automating the process of providing product recommendations, answering customers enquires, scheduling consultations, and facilitating purchases through Stripe.
- Customer Engagement: Interact with customers in a friendly and professional manner, offering accurate information about products and services.
- Product Recommendations: Provide personalized product suggestions based on customer needs and preferences.
- Consultation Scheduling: Schedule consultations with tech experts for complex inquiries.
- Purchase Facilitation: Facilitate payments with Stripe by generating payment links for customers ready to buy, ensuring a smooth transaction process.
- get_store_info: This leverages RAG search to retrieve general information about the TechNerds business, services, and products. All informations are retrieved from the docs
files/Docs.txt
. - get_product_recommendation: Uses an expert product recommendation agent to find the best products the store can offer based on customer requirements.
- generate_calendly_invitation_link: Provide a link for scheduling a consultation with a tech expert through Calendly.
- generate_stripe_payment_link: Create a Stripe payment link for customer purchases.
- Python 3.9+
- Calendly API key
- Stripe API key
- Groq API key
- Necessary Python libraries (listed in
requirements.txt
)
-
Clone the repository:
git clone https://github.com/kaymen99/ai-sales-agent.git cd ai-sales-agent/website-sale-agent
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Set up environment variables:
Create a
.env
file in the root directory of the project and add your API keys:CALENDLY_API_KEY=your_calendly_api_key CALENDLY_EVENT_TYPE_UUID=your_calendly_event_id STRIPE_API_KEY=your_stripe_api_key GROQ_API_KEY=your_stripe_api_key
-
To run the project, you must first create the products database (unless you have one already) by executing:
python create_database.py
-
Then start the Sales bot by running:
python main.py
Contributions are welcome! Please open an issue or submit a pull request for any changes.
If you have any questions or suggestions, feel free to contact me at aymenMir1001@gmail.com
.