This chatbot is built by using an multiple AI Pipes (Chatbot agents) on Langbase, it works with 30+ LLMs (OpenAI, Gemini, Mistral, Llama, Gemma, etc), any Data (10M+ context with Memory sets), and any Framework (standard web API you can use with any software).
Check out the live demo here.
- 💬 Online Store (TechBay) Customer Service Chatbot — Built with an AI Pipe on ⌘ Langbase
- ⚡️ Streaming — Real-time chat experience with streamed responses
- 🗣️ Q/A — Ask questions and get pre-defined answers with your preferred AI model and tone
- 🔋 Responsive and open source — Works on all devices and platforms
- Take a look at the main chatbot pipe that routes call for other departments in the online store Online Store (TechBay) Customer Service Main Chatbot Pipe on ⌘ Langbase
- Take a look at the electronics section pipe of the demo online store chatbot that classifies routed customer query into three categories i.e, 1. Support, Feedback, Complaint. 2. Order Tracking. 3. Refund/Exchange. Online Store (TechBay) Customer Service Electronics Department Agent Pipe on ⌘ Langbase
- Take a look at the sports gear section pipe of the demo online store chatbot that classifies routed customer query into three categories i.e, 1. Support, Feedback, Complaint. 2. Order Tracking. 3. Refund/Exchange. Online Store (TechBay) Customer Service Sports Gear Department Agent Pipe on ⌘ Langbase
- Take a look at the travel bags section pipe of the demo online store chatbot that classifies routed customer query into three categories i.e, 1. Support, Feedback, Complaint. 2. Order Tracking. 3. Refund/Exchange. Online Store (TechBay) Customer Service Travel Bags Department Agent Pipe on ⌘ Langbase
- Read the source code on GitHub for this example
- Go through Documentaion: Pipe Quick Start
- Learn more about Pipes & Memory features on ⌘ Langbase
Let's get started with the project:
To get started with Langbase, you'll need to [create a free personal account on Langbase.com][signup] and verify your email address. Done? Cool, cool!
- Fork the Online Store (TechBay) Customer Service Main Chatbot Pipe Pipe on ⌘ Langbase.
- Fork the Online Store (TechBay) Customer Service Sports Gear Department Agent Pipe Pipe on ⌘ Langbase.
- Fork the Online Store (TechBay) Customer Service Electronics Department Agent Pipe Pipe on ⌘ Langbase.
- Fork the Online Store (TechBay) Customer Service Travel Bags Department Agent Pipe Pipe on ⌘ Langbase.
- Go to the API tab to copy the Pipe's API key (to be used on server-side only).
- Download the example project folder from here or clone the reppository.
cd
into the online-cs-chatbot-backend directory and open it in your code editor.- Duplicate the
.dev.var.example
file in this project and rename it to.dev.vars
. - Add the following environment variables (.dev.vars):
# Replace `PIPE_API_KEY` with the copied API key.
LANGBASE_ONLINE_STORE_CUSTOMER_SERVICE_API_KEY="PIPE_API_KEY"
LANGBASE_TRAVEL_PIPE_API_KEY="PIPE_API_KEY"
LANGBASE_ELECTRONICS_PIPE_API_KEY="PIPE_API_KEY"
LANGBASE_SPORTS_PIPE_API_KEY="PIPE_API_KEY"
- Issue the following in your CLI separately for online-cs-chatbot directory (frontend of the chatbot) and online-cs-chatbot-backend directory (backend of the chatbot) :
# Install the dependencies using the following command:
npm install
# Run the project using the following command:
npm run dev
- Your app template (frontend of the chatbot) should now be running on localhost:3000.
NOTE: This is a Next.js project, so you can build and deploy it to any platform of your choice, like Vercel, Netlify, Cloudflare, etc.
- Your backend which is a cloudflare worker should now be running on localhost:8787.
NOTE: This project requires cloudflare account so that cloudflare CLI Cloudflare CLI account and setup
- To test the classification and function call you can the following test dataset:
Electronic Dept. Query:
I order 2 days ago a new Sony Bravia XR-65X90L, I did recieve confirmation that my order will be shipped shortly but I have not recieve any tracking number or any confirmation that the order has been disptachen. Please reply soon as I order because you guys ship fast and it should not take more then a week.
Travel Bags Dept. Query:
I have received Wenger backpack for 15 inch laptop two days ago, however it quite small for my use case. I want return and order new Wenger 30L for 16inch laptop. Let me know if it is in stock?
Sports Gear Dept. Query:
I bought Nike zoomx two days ago, although I received the order confirmation and the receipt but I have not received the tracking number. Please send the tracking number asap.
This project is created by Langbase team members, with contributions from:
- Muhammad-Ali Danish - Software Engineer, Langbase
Built by ⌘ Langbase.com — Ship hyper-personalized AI assistants with memory!