An AI-powered customer support application that allows users to:
- Raise product-related issues
- Chat with an AI assistant (Groq Cloud API)
- Escalate unresolved issues for manual review
- Retrieve existing issues using the customer’s phone number
- 🤖 AI chatbot integration via Groq Cloud API
- 🗃️ PostgreSQL-based issue storage
- 🧑💻 Escalation handling for unresolved cases
- 🧾 Phone number-based issue lookup
- 📺 Streamlit-based frontend UI
- Python ≥ 3.8
- PostgreSQL ≥ 12
- Groq Cloud API account
- pgAdmin or psql terminal
- Python Libraries:
streamlit
,psycopg2-binary
,requests
,python-dotenv
(optional)
- Go to https://console.groq.com
- Register or log in
- Navigate to “API Keys”
- Click “Create API Key”
- Copy the generated key
export GROQ_API_KEY="your_groq_api_key_here"
For Windows CMD:
set GROQ_API_KEY=your_groq_api_key_here
Optional: Store in a .env
file and load using dotenv
.
CREATE DATABASE customer;
CREATE TABLE customer_issues (
id SERIAL PRIMARY KEY,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
email VARCHAR(100),
phone CHAR(10),
issue TEXT
);
git clone https://github.com/Pyoneer01/Customer_interaction_application.git
cd Customer_interaction_application
streamlit run chat_integration_application.py
It will open in your browser at:
http://localhost:8501
- Add login/authentication
- Admin dashboard for escalated issue review
- Notification system via email/SMS