Status: [LIVE] Endpoints found: https://sam-brisson.github.io/ai-comm-patterns/docs/experimentation/chat https://sam-brisson.github.io/ai-comm-patterns/docs/experimentation/chatbot-workshop Source: https://github.com/sam-brisson/chatbot-workshop-starter # Chatbot Workshop Starter Build a **tested** chatbot in under 4 hours using TDD principles. **The discipline:** The specification IS the test. Write expectations first, implement second. ## Quick Start ### 1. Clone and Setup ```bash git clone cd chatbot-workshop-starter # Create virtual environment python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate # Install dependencies pip install -r requirements.txt ``` ### 2. Configure API Key ```bash cp .env.example .env # Edit .env and add your Groq API key # Get a free key at: https://console.groq.com ``` ### 3. Run Your First Test (RED) ```bash promptfoo eval ``` You should see **failing tests** — this is correct! The system prompt is empty. ``` ┌─────────────────────────────────────────────────────────────┐ │ Evaluation Results │ ├─────────────────────────────────────────────────────────────┤ │ Test 1: "Responds to greeting" ❌ FAIL │ │ Test 2: "Handles primary use case" ❌ FAIL │ │ Test 3: "Declines off-topic requests" ❌ FAIL │ │ ... │ └─────────────────────────────────────────────────────────────┘ ``` ### 4. Write Your System Prompt (GREEN) Edit `system-prompt.txt`: ``` You are a helpful customer support assistant for Acme Co. Your role: - Help customers with questions about our products - Be empathetic and acknowledge frustrations - Never discuss competitors or off-topic subjects Tone: Friendly, professional, solution-ori