{
  "templateName": "Clinic / Med Spa",
  "templateVersion": "1.0.0",
  "description": "Complete GHL sub-account setup for clinics, med spas, and wellness practices. Includes patient pipeline, onboarding workflows, appointment forms, and compliance fields.",

  "questionnaire": [
    {
      "id": "business_name",
      "question": "What is the name of your clinic or med spa?",
      "type": "text",
      "required": true,
      "placeholder": "e.g. Bright Path Wellness"
    },
    {
      "id": "owner_name",
      "question": "What is the clinic owner's full name?",
      "type": "text",
      "required": true,
      "placeholder": "e.g. Dr. Jane Smith"
    },
    {
      "id": "business_address",
      "question": "Clinic street address?",
      "type": "text",
      "required": true
    },
    {
      "id": "business_city",
      "question": "City?",
      "type": "text",
      "required": true
    },
    {
      "id": "business_state",
      "question": "State?",
      "type": "select",
      "required": true,
      "options": ["AZ", "CA", "CO", "FL", "GA", "ID", "IL", "NV", "NY", "TX", "UT", "WA", "Other"]
    },
    {
      "id": "business_zip",
      "question": "ZIP code?",
      "type": "text",
      "required": true
    },
    {
      "id": "business_phone",
      "question": "Main clinic phone number?",
      "type": "phone",
      "required": true
    },
    {
      "id": "business_email",
      "question": "Main support email for patients?",
      "type": "email",
      "required": true
    },
    {
      "id": "business_website",
      "question": "Clinic website URL?",
      "type": "url",
      "required": false
    },
    {
      "id": "clinic_type",
      "question": "What type of practice?",
      "type": "select",
      "required": true,
      "options": ["Med Spa", "Chiropractic", "Wellness/Integrative", "Dental", "Dermatology", "Plastic Surgery", "Acupuncture/Naturopathic", "Physical Therapy", "Other"]
    },
    {
      "id": "services",
      "question": "What services do you offer? (select all that apply)",
      "type": "multiselect",
      "required": true,
      "options": ["Body Contouring", "Laser Treatments", "Injectables/Botox", "Facials/Skin Care", "Weight Loss", "Hormone Therapy", "IV Therapy", "Chiropractic Adjustments", "Massage Therapy", "Acupuncture", "Dental Cleanings", "Cosmetic Dentistry", "Physical Therapy", "Other"]
    },
    {
      "id": "appointment_duration",
      "question": "Default appointment duration?",
      "type": "select",
      "required": true,
      "options": ["30 minutes", "45 minutes", "60 minutes", "90 minutes"]
    },
    {
      "id": "timezone",
      "question": "What timezone is the clinic in?",
      "type": "select",
      "required": true,
      "options": ["US/Eastern", "US/Central", "US/Mountain", "US/Arizona", "US/Pacific", "US/Hawaii"]
    },
    {
      "id": "wants_events",
      "question": "Will you be running launch events or promotions?",
      "type": "boolean",
      "required": true
    },
    {
      "id": "wants_reviews",
      "question": "Do you want automated review request workflows?",
      "type": "boolean",
      "required": true
    }
  ],

  "location": {
    "name": "{{business_name}}",
    "address": "{{business_address}}",
    "city": "{{business_city}}",
    "state": "{{business_state}}",
    "postalCode": "{{business_zip}}",
    "country": "US",
    "phone": "{{business_phone}}",
    "email": "{{business_email}}",
    "website": "{{business_website}}",
    "timezone": "{{timezone}}"
  },

  "tags": [
    "new-lead",
    "contacted",
    "appointment-booked",
    "appointment-showed",
    "appointment-no-show",
    "consultation-complete",
    "patient-active",
    "patient-inactive",
    "vip-patient",
    "review-requested",
    "review-received",
    "referral-source",
    "event-registered",
    "event-attended",
    "package-purchased",
    "membership-active",
    "membership-cancelled",
    "reactivation-candidate",
    "do-not-contact",
    "onboarding-complete"
  ],

  "customFields": [
    { "name": "Clinic Name", "fieldKey": "clinic_name", "dataType": "TEXT" },
    { "name": "Clinic Owner", "fieldKey": "clinic_owner", "dataType": "TEXT" },
    { "name": "Primary Service Interest", "fieldKey": "primary_service_interest", "dataType": "TEXT" },
    { "name": "Patient DOB", "fieldKey": "patient_dob", "dataType": "DATE" },
    { "name": "Preferred Contact Method", "fieldKey": "preferred_contact_method", "dataType": "TEXT" },
    { "name": "Insurance Provider", "fieldKey": "insurance_provider", "dataType": "TEXT" },
    { "name": "Referral Source", "fieldKey": "referral_source", "dataType": "TEXT" },
    { "name": "Consultation Date", "fieldKey": "consultation_date", "dataType": "DATE" },
    { "name": "Consultation Notes", "fieldKey": "consultation_notes", "dataType": "LARGE_TEXT" },
    { "name": "Treatment Plan", "fieldKey": "treatment_plan", "dataType": "LARGE_TEXT" },
    { "name": "Packages Purchased", "fieldKey": "packages_purchased", "dataType": "TEXT" },
    { "name": "Total Lifetime Value", "fieldKey": "total_lifetime_value", "dataType": "MONETARY" },
    { "name": "Last Visit Date", "fieldKey": "last_visit_date", "dataType": "DATE" },
    { "name": "Next Appointment", "fieldKey": "next_appointment", "dataType": "DATE" },
    { "name": "Membership Type", "fieldKey": "membership_type", "dataType": "TEXT" },
    { "name": "Membership Start Date", "fieldKey": "membership_start_date", "dataType": "DATE" },
    { "name": "Allergies/Contraindications", "fieldKey": "allergies_contraindications", "dataType": "LARGE_TEXT" },
    { "name": "Emergency Contact", "fieldKey": "emergency_contact", "dataType": "TEXT" },
    { "name": "Emergency Contact Phone", "fieldKey": "emergency_contact_phone", "dataType": "PHONE" },
    { "name": "Patient Status", "fieldKey": "patient_status", "dataType": "TEXT" },
    { "name": "Lead Score", "fieldKey": "lead_score", "dataType": "NUMERICAL" },
    { "name": "Review Status", "fieldKey": "review_status", "dataType": "TEXT" },
    { "name": "Event Name", "fieldKey": "event_name", "dataType": "TEXT" },
    { "name": "Event Date", "fieldKey": "event_date", "dataType": "DATE" },
    { "name": "Revenue Generated", "fieldKey": "revenue_generated", "dataType": "MONETARY" }
  ],

  "pipelines": [
    {
      "name": "Patient Journey",
      "stages": [
        { "name": "New Lead", "position": 0 },
        { "name": "Contacted", "position": 1 },
        { "name": "Consultation Booked", "position": 2 },
        { "name": "Consultation Completed", "position": 3 },
        { "name": "Treatment Plan Presented", "position": 4 },
        { "name": "Package Purchased", "position": 5 },
        { "name": "Treatment In Progress", "position": 6 },
        { "name": "Treatment Complete", "position": 7 },
        { "name": "Review Requested", "position": 8 },
        { "name": "Closed — Won", "position": 9 },
        { "name": "Closed — Lost", "position": 10 }
      ]
    }
  ],

  "calendars": [
    {
      "name": "Consultations",
      "description": "Free initial consultations for new patients",
      "slotDuration": "{{appointment_duration_minutes}}",
      "slotBuffer": 15
    }
  ],

  "workflows": [
    {
      "name": "New Lead — Instant Response",
      "description": "Sends immediate SMS + email when a new lead comes in. Adds tags and creates opportunity.",
      "actions": [
        { "name": "Add New Lead Tag", "type": "add_contact_tag", "attributes": { "tags": ["new-lead"] } },
        { "name": "Send Welcome SMS", "type": "sms", "attributes": { "body": "Hi {{contact.first_name}}, thanks for your interest in {{business_name}}! We'd love to learn more about your goals. Reply to this text or book a free consultation.", "attachments": [] } },
        { "name": "Send Welcome Email", "type": "email", "attributes": { "subject": "Welcome to {{business_name}}", "html": "<p style=\"margin:0px;\">Hi {{contact.first_name}},</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">Thank you for reaching out to {{business_name}}. We're excited to help you achieve your goals.</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">Looking forward to meeting you!</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">— {{owner_name}}</p>", "trackingOptions": { "hasTrackingLinks": false, "hasUtmTracking": false, "hasTags": false } } },
        { "name": "Wait 1 Hour", "type": "wait", "attributes": { "type": "time", "startAfter": { "type": "hour", "value": 1, "when": "after" }, "name": "Wait", "isHybridAction": true, "hybridActionType": "wait", "convertToMultipath": false, "transitions": [] } },
        { "name": "Internal Notification", "type": "internal_notification", "attributes": { "type": "notification", "notification": { "body": "New lead: {{contact.first_name}} {{contact.last_name}} — {{contact.phone}} — {{contact.email}}", "title": "New Lead Alert", "userType": "user", "redirectPage": "contact", "type": "send_notification", "selectedUser": "" } } }
      ]
    },
    {
      "name": "Appointment Reminder",
      "description": "Sends reminders at 24 hours and 1 hour before appointment.",
      "actions": [
        { "name": "Send 24hr Reminder SMS", "type": "sms", "attributes": { "body": "Hi {{contact.first_name}}, this is a friendly reminder about your appointment at {{business_name}} tomorrow. Please reply CONFIRM to confirm or call us at {{business_phone}} to reschedule.", "attachments": [] } },
        { "name": "Wait 23 Hours", "type": "wait", "attributes": { "type": "time", "startAfter": { "type": "hour", "value": 23, "when": "after" }, "name": "Wait", "isHybridAction": true, "hybridActionType": "wait", "convertToMultipath": false, "transitions": [] } },
        { "name": "Send 1hr Reminder SMS", "type": "sms", "attributes": { "body": "Hi {{contact.first_name}}, your appointment at {{business_name}} is in 1 hour! We look forward to seeing you.", "attachments": [] } }
      ]
    },
    {
      "name": "No-Show Follow Up",
      "description": "Follows up with patients who missed their appointment.",
      "actions": [
        { "name": "Add No-Show Tag", "type": "add_contact_tag", "attributes": { "tags": ["appointment-no-show"] } },
        { "name": "Wait 30 Minutes", "type": "wait", "attributes": { "type": "time", "startAfter": { "type": "minute", "value": 30, "when": "after" }, "name": "Wait", "isHybridAction": true, "hybridActionType": "wait", "convertToMultipath": false, "transitions": [] } },
        { "name": "Send No-Show SMS", "type": "sms", "attributes": { "body": "Hi {{contact.first_name}}, we missed you at {{business_name}} today! We'd love to reschedule at a time that works for you. Reply to this text or book here.", "attachments": [] } },
        { "name": "Wait 24 Hours", "type": "wait", "attributes": { "type": "time", "startAfter": { "type": "hour", "value": 24, "when": "after" }, "name": "Wait", "isHybridAction": true, "hybridActionType": "wait", "convertToMultipath": false, "transitions": [] } },
        { "name": "Send Follow Up Email", "type": "email", "attributes": { "subject": "We missed you!", "html": "<p style=\"margin:0px;\">Hi {{contact.first_name}},</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">We're sorry we missed you at your appointment today. Life gets busy — no worries!</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">We'd love to reschedule at a time that works better for you.</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">Best,</p><p style=\"margin:0px;\">{{owner_name}}</p><p style=\"margin:0px;\">{{business_name}}</p>", "trackingOptions": { "hasTrackingLinks": false, "hasUtmTracking": false, "hasTags": false } } }
      ]
    },
    {
      "name": "Post-Visit Review Request",
      "description": "Requests a Google review 2 hours after an appointment.",
      "condition": "wants_reviews == true",
      "actions": [
        { "name": "Add Review Requested Tag", "type": "add_contact_tag", "attributes": { "tags": ["review-requested"] } },
        { "name": "Wait 2 Hours", "type": "wait", "attributes": { "type": "time", "startAfter": { "type": "hour", "value": 2, "when": "after" }, "name": "Wait", "isHybridAction": true, "hybridActionType": "wait", "convertToMultipath": false, "transitions": [] } },
        { "name": "Send Review Request SMS", "type": "sms", "attributes": { "body": "Hi {{contact.first_name}}, thank you for visiting {{business_name}} today! If you had a great experience, we'd really appreciate a quick Google review. It helps others find us!", "attachments": [] } }
      ]
    },
    {
      "name": "Reactivation — 90 Day Inactive",
      "description": "Re-engages patients who haven't visited in 90 days.",
      "actions": [
        { "name": "Add Reactivation Tag", "type": "add_contact_tag", "attributes": { "tags": ["reactivation-candidate"] } },
        { "name": "Send Reactivation SMS", "type": "sms", "attributes": { "body": "Hi {{contact.first_name}}, it's been a while since your last visit to {{business_name}}. We miss you! Book your next session and get 10% off.", "attachments": [] } },
        { "name": "Wait 3 Days", "type": "wait", "attributes": { "type": "time", "startAfter": { "type": "days", "value": 3, "when": "after" }, "name": "Wait", "isHybridAction": true, "hybridActionType": "wait", "convertToMultipath": false, "transitions": [] } },
        { "name": "Send Reactivation Email", "type": "email", "attributes": { "subject": "We miss you, {{contact.first_name}}!", "html": "<p style=\"margin:0px;\">Hi {{contact.first_name}},</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">It's been over 90 days since your last visit to {{business_name}}, and we wanted to check in.</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">As a valued patient, we'd like to offer you 10% off your next treatment. Just mention this email when you book.</p><p style=\"margin:0px;\"><br></p><p style=\"margin:0px;\">See you soon!</p><p style=\"margin:0px;\">{{owner_name}}</p>", "trackingOptions": { "hasTrackingLinks": false, "hasUtmTracking": false, "hasTags": false } } }
      ]
    }
  ],

  "forms": [
    {
      "name": "New Patient Intake",
      "description": "Basic intake form for new patients",
      "fields": [
        { "label": "First Name", "type": "text", "required": true },
        { "label": "Last Name", "type": "text", "required": true },
        { "label": "Email", "type": "email", "required": true },
        { "label": "Phone", "type": "phone", "required": true },
        { "label": "Date of Birth", "type": "date", "required": true },
        { "label": "What service are you interested in?", "type": "select", "required": true, "options": "{{services}}" },
        { "label": "How did you hear about us?", "type": "select", "required": true, "options": ["Google", "Facebook/Instagram", "Friend/Family Referral", "Doctor Referral", "Drive By", "Event", "Other"] },
        { "label": "Do you have any allergies or medical conditions we should know about?", "type": "textarea", "required": false },
        { "label": "Preferred contact method?", "type": "select", "required": true, "options": ["Text", "Email", "Phone Call"] },
        { "label": "I consent to receive text messages and emails from {{business_name}}", "type": "checkbox", "required": true }
      ]
    }
  ]
}
