CoolFace
Apppublic

CynthiaOmovoiye/meridian-support-bot

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

Meridian Electronics — AI Support Chatbot

A production-ready prototype of an AI-powered customer support and shopping assistant for Meridian Electronics, built for the GenAI bootcamp MCP assessment.

GitHub repository: https://github.com/CynthiaOmovoiye/meridian-support-bot

Architecture

  • —UI: Streamlit with a luxury e-commerce design — sidebar AI concierge + Shop / Cart / Orders tabs
  • —LLM: OpenRouter (gpt-4o-mini) with native tool-calling in an agentic loop — the LLM discovers and calls MCP tools directly
  • —MCP: Streamable HTTP MCP client connecting to https://order-mcp-74afyau24q-uc.a.run.app/mcp
  • —Caching: Session-scoped TTL cache (2–5 min for products, 30 s for orders) — reduces MCP round-trips and latency
  • —Security: Auth-gated tools, input sanitisation, email masking, no PIN in LLM context

MCP Tools Used

ToolPurpose
search_productsFree-text product search
list_productsBrowse by category
get_productFull product details by SKU
verify_customer_pinAuthenticate returning customers
get_customerCustomer profile (authenticated)
list_ordersOrder history (authenticated)
get_orderOrder detail (authenticated)
create_orderPlace order with UI confirmation gate

Hugging Face Spaces — Secrets

Set these in Settings → Variables and secrets → New secret:

SecretRequiredDescription
OPENROUTER_API_KEYYesYour OpenRouter API key
MCP_SERVER_URLNoDefaults to the assessment server URL
OPENROUTER_MODELNoDefaults to openai/gpt-4o-mini
LANGFUSE_PUBLIC_KEYNoOptional observability
LANGFUSE_SECRET_KEYNoOptional observability
LANGFUSE_HOSTNoDefaults to https://cloud.langfuse.com

Local Development

bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env          # add your OPENROUTER_API_KEY
streamlit run app.py