Custom Course — System Overview

AI-powered personalized hypnotherapy session creation: form, scripts, and audio

System Components

📝
Web Form
hypnoelp.com/form
Edge Function
submit-custom-course
🤖
n8n Pipeline
3 workflows on worker-1
🎧
Audio Output
Cloudflare R2
🗣
ElevenLabs TTS
Text to Speech
📚
Mistral AI
Script generation

End-to-End Flow

1
User fills out form: issue, goal, feel, why (4 questions about their challenge)
2
Health Check Mistral validates inputs are safe and appropriate for hypnotherapy
3
User chooses a title and selects 3 hypnotic techniques (one per script)
4
Script Generation Fine-tuned Mistral generates 3 personalized scripts + Safety Check
5
User reads all 3 scripts, picks their favorite, and chooses male/female voice
6
Audio Generation ElevenLabs converts script to audio, stored on Cloudflare R2

AI Models

StageModelPurposeCost
Health Checkmistral-mediumInput safety validation~$0.0007
Script Generationft:mistral-mediumPersonalized hypnotherapy scripts~$0.0026
Safety Checkmistral-smallPost-generation content check~$0.0002
Total AI~$0.004

Audio generation (ElevenLabs) cost is additional and varies by script length. Costs are logged to Supabase.

Hypnotic Techniques

Mental Rehearsal
Visualize success in specific scenarios
Trigger Transformation
Reframe responses to triggers
Lasting Suggestions
Post-hypnotic behavioral anchors
Gentle Release
Release old patterns through aversion
Future Self
Forward-looking visualization
Deep Motivation
Emotional leverage for lasting change

Infrastructure

ComponentServiceDetails
Form WebsiteHostingerhypnoelp.com/form
Edge FunctionSupabaseMain HypnoELP project
n8n WorkflowsDigital Oceanworker-1
AI ModelsMistral APIsmall, medium, fine-tuned
Text-to-SpeechElevenLabsMale + female voices
Audio StorageCloudflare R2hypnoelp-custom-files bucket
Cost LoggingSupabaseHypnoELP-AI project
📌 Detailed documentation: Form · Pipeline · Edge Function
← Back to Custom Course