Overview
This prompt aims to guide developers in creating a production-ready AI Sales Chatbot, enhancing customer interaction through advanced NLP techniques. Programmers and businesses seeking to implement AI-driven sales solutions will benefit from this structured approach.
Prompt Overview
Purpose: The AI Sales Chatbot aims to enhance customer interaction by providing intelligent product recommendations and understanding queries.
Audience: This project targets e-commerce businesses seeking to improve customer service and sales through advanced AI technology.
Distinctive Feature: The chatbot utilizes a hybrid recommendation engine combining semantic similarity and rule-based filters for personalized suggestions.
Outcome: A fully functional chatbot with a user-friendly interface, achieving over 90% accuracy in intent classification and relevant recommendations.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: CRM & Sales Software, Data & Analysis, Natural Language Processing (NLP)
- Techniques: Few-Shot Prompting, Plan-Then-Solve, Structured Output
- Models: all-MiniLM-L6-v2, BERT-base
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a comprehensive, production-ready AI Sales Chatbot project that meets the following objectives and technical requirements:
## Objective
Develop an AI Sales Chatbot that:
1. Understands and classifies customer queries using advanced NLP techniques.
2. Recommends products intelligently based on user input.
3. Provides natural, human-like conversational experiences.
## Technical Requirements
### 1. Data Pipeline
– Utilize the `bitext/Bitext-customer-support-llm-chatbot-training-dataset` from Hugging Face.
– Generate synthetic product catalog data or integrate real e-commerce data.
– Perform data cleaning, including:
– Removal of special characters
– Lemmatization
– Label intents such as `product_query`, `return_policy`, etc.
– Split data into training and testing sets with an 80/20 ratio.
### 2. NLP Components
– Fine-tune a `BERT-base` model for intent recognition on the Bitext dataset.
– Use spaCy to extract entities such as:
– Product types
– Price ranges
– Features
– Utilize TextBlob for sentiment analysis to detect tone.
### 3. Recommendation Engine
– Implement content-based filtering using `all-MiniLM-L6-v2` embeddings.
– Combine:
– Semantic similarity (using cosine distance)
– Rule-based filters based on price and category
– Create a hybrid recommendation approach.
### 4. User Interface
– Build the UI using Streamlit.
– Features should include:
– Chat bubbles with avatars
– A product carousel displaying images and ratings
– A sidebar with clear instructions
– Typing indicators
### 5. Code Structure
Organize the project with the following structure:
“`
ai_sales_bot/
├── data/
│ ├── raw/ # Bitext dataset
│ └── processed/ # Cleaned data + product catalog
├── nlp/
│ ├── processor.py # Text cleaning, entity extraction
│ └── intent_classifier/ # Fine-tuned BERT model
├── recommender/
│ └── engine.py # Hybrid recommendation logic
├── app/
│ ├── main.py # Streamlit UI
│ └── utils.py # Helpers for logging and formatting
├── notebooks/ # For exploratory data analysis, training, deployment
└── requirements.txt # Python dependencies
“`
## Output Expectations
### Deliverables
– A fully functional Streamlit application with a chat interface.
– A trained intent classification model achieving over 90% accuracy.
– A `README.md` containing detailed setup and usage instructions.
– Well-commented code with Google style type hints.
### Performance Metrics
– Intent classification accuracy above 90%.
– Recommendation relevance evaluated using nDCG scoring.
### Quality Standards
– Modular design separating NLP, recommendation engine, and UI components.
– Robust error handling for all user inputs.
– Scalable architecture allowing easy integration with real product APIs.
## Optional Enhancements (if time permits)
– Deploy the chatbot as a FastAPI microservice.
– Add voice input and output capabilities.
– Support multiple languages.
Use clear section headers (##) to organize your content for readability. Include specific technical details such as model names, dataset references, and evaluation metrics. Present reasoning and steps clearly before final implementation recommendations.
Would you like to focus more on UI/UX design details or deployment architecture? Please specify if so.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste it into your preferred coding environment.
- Follow the outlined objectives and requirements closely.
- Implement each section step-by-step as described.
- Test the chatbot thoroughly for accuracy and performance.
- Document your process in a README.md file.
Tips for Best Results
- Data Preparation: Clean and preprocess your dataset by removing special characters and lemmatizing text to enhance model performance.
- NLP Model Fine-tuning: Fine-tune a BERT-base model on your labeled intents to achieve high accuracy in intent recognition.
- Recommendation Logic: Implement a hybrid recommendation engine combining content-based filtering with semantic similarity for personalized product suggestions.
- User Interface Design: Create an engaging Streamlit UI featuring chat bubbles, product carousels, and clear instructions to enhance user experience.
FAQ
- What is the main objective of the AI Sales Chatbot?
To classify customer queries, recommend products, and provide human-like conversations. - Which dataset is used for training the chatbot?
The Bitext customer support LLM chatbot training dataset from Hugging Face. - What model is fine-tuned for intent recognition?
A BERT-base model is fine-tuned for recognizing customer intents. - What framework is used to build the user interface?
The user interface is built using Streamlit for an interactive experience.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


