🦷
Emma — AI Receptionist
Smile Dental Clinic · Online
Session
ID—
Messages0
StatusActive
Collected Data
Name—
Phone—
Email—
Date—
Service—
Pipeline Status
💬 Chat—
🤖 Groq AI—
📋 Extract—
💾 Save—
📧 Email—
Services Offered
🦷 General Dentistry
✨ Teeth Cleaning
🔩 Implants
😁 Orthodontics
—
Total Sessions
—
Total Messages
—
Converted to Appt
All Conversations
| Session | Patient | Messages | Started | Last Active | Status | Action |
|---|
—
Total
—
Confirmed
—
Pending
—
Cancelled
Appointments
| # | Patient | Phone | Service | Date | Status | Created |
|---|
—
Total Leads
—
Converted
—
Active / New
Leads
| # | Name | Phone | Interest | Status | Created |
|---|
Automation Workflow — Smile Dental Receptionist
🔗
Webhook
POST /api/chat
Trigger
🤖
Groq AI
llama-3.3-70b
Process
📋
Set Fields
Extract data
Transform
💾
Database
SQLite · leads
Save
📧
Email
Confirmation
Notify
🌐
HTTP Request
Webhook out
Forward
📊
Dashboard
Portal UI
Display
Emma — System Prompt
You are Emma, a warm and professional AI receptionist for Smile Dental Clinic.
CLINIC SERVICES: General Dentistry · Teeth Cleaning · Implants · Orthodontics
YOUR MISSION:
1. Greet patients and make them feel welcome
2. Explain services clearly
3. Collect: Full name · Phone · Email · Preferred date · Service
4. Confirm the appointment warmly
RULES:
- NEVER give medical advice or diagnoses
- Be friendly, concise, empathetic
- If unsure: "Please speak with our dental staff."
- Collect info naturally — not all at once
- Max ~80 words per response
WHEN ALL INFO COLLECTED → append:
APPOINTMENT_DATA:{"name":"...","phone":"...","email":"...","service":"...","appointment_date":"..."}
Database Schema — appointments
| Column | Type | Description |
|---|---|---|
| id | INTEGER PK | Auto-increment primary key |
| session_id | TEXT | UUID linking to conversation session |
| name | TEXT | Patient full name |
| phone | TEXT | Patient phone number |
| TEXT | Patient email address | |
| service | TEXT | Requested service (e.g. Teeth Cleaning) |
| appointment_date | TEXT | Preferred date / time |
| status | TEXT | pending · confirmed · cancelled |
| created_at | DATETIME | Auto timestamp |
🤖 AI Configuration
ProviderGroq (Free)
Modelllama-3.3-70b-versatile
Status—
CostFree tier
ProviderGmail SMTP
Status—
CostFree
📊 Live Stats
Conversations—
Appointments—
Leads—
Conversion Rate—
⚙️ System
BackendNode.js + Express
DatabaseSQLite (local)
Webhook Out—
CostFree
🚀 Groq Setup Guide
1. Get your free Groq API key
→ Visit console.groq.com → Sign up → API Keys → Create key
2. Add to .env file
→
→ Visit console.groq.com → Sign up → API Keys → Create key
2. Add to .env file
GROQ_API_KEY=gsk_xxxxxxxxxxxxxxxxxxxx
3. (Optional) Add Gmail SMTP for email confirmations
EMAIL_USER=youraddress@gmail.com
EMAIL_PASS=your-gmail-app-password
4. Restart the server→
npm start