Psychoeducation Chatbot • Not a substitute for emergency medical careClinic Line: 747-210-0522
Chatbot Session Completed
This psychoeducation session has concluded.
Dr. Naser Ahmadi • UCLA / BFHealth
GTC Hexagon & Unpriming Explorer
Psychoeducation Active
Click any dimension below or ask the chatbot to explore how Bright Flourishing Health transitions the brain-body axis from Priming (Vulnerability) to Unpriming (Resilience).
Gliovascular Shear Stress ContinuumClick to inspect biology
6 Dimensions of the GTC Hexagon (0–48 Scale)
Active Clinical Research & OutcomesAhmadi et al., UCLA / BFHealth
80%
C-SSRS Suicidality Reduction
55%
Core PTSD Symptom Reduction
100%
Outpatient Follow-Up Adherence
Enroll in BFH Research Studies:
• RFPP: Reminder-Focused Positive Psychiatry
• MSP-BM: Digital Multimodal Sensing Platform for Body-Mind
Clinic Line: 747-210-0522
Exact Diagnosis & Solution for `bfhealth.org` + `bfhealth.org/chatbot/`
Why the Tech Team Saw a "Local Demo" — And How This Build Fixes It
In your screenshot of bfhealth.org/chatbot/, the previous file had the demo wrapper (top test toolbar, duplicate header, and a second "CONNECT" popup card) visible by default, and lacked the WordPress server endpoint to send emails silently to info@bfhealth.org. This updated file is now in Live Production Mode.
1
What You (Dr. Ahmadi) Need To Do
Takes less than 2 minutes — No coding or keys needed!
Copy the Ready-to-Send Reply below (click the green "Copy Reply to Tech Team" button) and send it to your web team.
Send them this updated `index.html` file (to replace the old file at bfhealth.org/chatbot/index.html) along with the WordPress PHP snippet (Step 2 below).
Optional check: Once they confirm deployment, test submitting a sample Research Participant on bfhealth.org and verify the email lands in your info@bfhealth.org inbox.
2
What Your Tech Team Needs To Do
3 simple copy-paste steps on WordPress (`bfhealth.org`)
Replace `bfhealth.org/chatbot/index.html` with this updated production file (it automatically hides the top demo bar and opens directly into the BFH Chatbot without showing a second CONNECT popup).
Paste the WordPress Snippet (`File 1` below) into `functions.php` (or WPCode plugin). This creates the live server route /wp-json/bfhealth/v1/research-intake that emails info@bfhealth.org automatically via wp_mail().
Include the Popup Modal Script (`File 2` below) on the homepage so clicking CONNECT on bfhealth.org opens /chatbot/?embed=1 inside a clean modal overlay right on the live homepage.
Copy & Paste This Exact Message to Your Web Team
Ready-to-Send Response Answering All of Their Questions
Hi Team,
Thank you for updating the background photo and setting up the initial `/chatbot/` route!
Here are the exact live integration details and the production-ready code so the BFH Chatbot operates 100% live on `bfhealth.org` (and not as a local demo):
1. WHY IT LOOKED LIKE A DEMO AT `bfhealth.org/chatbot/`:
The previous HTML file had the developer preview wrapper (top admin bar, simulated site header, and a duplicate "CONNECT" popup card) visible by default. In the updated production `index.html` file attached, the demo wrapper and duplicate popup are removed on `bfhealth.org`—it opens directly into the live BFH Chatbot interface.
2. HOW THE "CONNECT" BUTTON ON `bfhealth.org` SHOULD WORK:
When a visitor clicks the green "CONNECT" button inside the homepage popup on `bfhealth.org`, it should either:
- Open `https://bfhealth.org/chatbot/?embed=1` inside an overlay modal right on `bfhealth.org` (see the drop-in script in File 2), OR
- Navigate directly to `https://bfhealth.org/chatbot/` where the live BFH Chatbot now opens immediately without a second popup.
3. REQUIRED LIVE CONFIGURATIONS FOR THE 4 WORKFLOWS:
- Workflow 1 (Psychoeducation): The production file now includes the complete built-in Bright Flourishing Health Clinical Knowledge Engine (GTC Hexagon Model, Priming vs. Unpriming, RFPP, MSP-BM, and MH-FMS), so it works live immediately out-of-the-box with zero external API keys required.
- Workflow 2 (Schedule, Reschedule, or Cancel Appointments): Automatically triggers a phone call to `tel:7472100522` (`747-210-0522`) and, upon connection, marks the BFH Chatbot session as Completed.
- Workflow 3 (Suicide & Safety Boundary): Immediately displays the 988 Suicide & Crisis Lifeline, 911, and 741741 resources and permanently ends the chatbot session (as it is strictly a psychoeducation chatbot).
- Workflow 4 (Join Research — RFPP & Digital Multimodal Sensing Platform for Body-Mind [MSP-BM]): Collects First Name, Last Name, Date of Birth (DOB), Mailing Address, Phone, and Email, and sends a POST request to `https://bfhealth.org/wp-json/bfhealth/v1/research-intake`.
4. SERVER-SIDE EMAIL DELIVERY TO `info@bfhealth.org`:
Please add the provided WordPress REST API snippet (File 1) to our theme's `functions.php` (or via WPCode). It registers `/wp-json/bfhealth/v1/research-intake` and uses WordPress `wp_mail()` to automatically email the participant's enrollment details directly to `info@bfhealth.org`.
Please replace `/chatbot/index.html` with the updated file and add the WordPress `functions.php` snippet, then let us know once it is live so we can verify!
Best regards,
Dr. Naser Ahmadi
Step 1 for Tech Team • WordPress Backend (`functions.php` or WPCode Plugin)
Live Server Email Relay to `info@bfhealth.org` (`/wp-json/bfhealth/v1/research-intake`)