n8n Workflows
HypnoELP uses n8n (self-hosted) for automation workflows that connect AI services, handle email, and orchestrate multi-step processes. Three main workflows run on OVH VPS servers.
Workflow Summary
| Workflow | Server | Purpose |
|---|---|---|
| AI Voice Chat | OVH (n8n) | Real-time voice conversation with AI mentor |
| Custom Course Generation | OVH (n8n) | Generate personalized hypnotherapy audio from user input |
| Email Auto-Reply (Influencer) | OVH3 Worker (15.204.11.95) |
Auto-respond to influencer emails |
1. AI Voice Chat
Handles the Mentor AI feature in the app. Users speak, the workflow transcribes, processes, and returns spoken audio.
Flow
- User speaks in app
- Whisper/Voxtral transcribes audio to text (STT)
- Mistral LLM generates therapeutic response
- Orpheus or OpenAI TTS converts response to audio
- Audio streamed back to app
Details
- Credit-based: users spend credits per interaction
- Free weekly allowance (
weekly_limit_credits) plus purchased credits (bank_limit_credits) - Cost tracking logged to HypnoELP-AI Supabase project (
yxudnnytcjuafeclsofg) - 8 data payloads exchanged between app and workflow (see AI Voice Chat overview docs)
2. Custom Course Generation
Creates personalized hypnotherapy audio sessions from user-provided information.
Flow
- User fills in: issue, goal, how they feel, why they want change
- Mistral LLM generates a hypnotherapy script based on input
- ElevenLabs TTS converts script to professional audio
- Audio stored in Cloudflare R2
- Course unlocked in user’s app (purchasable at $20)
Details
- Product ID:
X99ENB(Custom Audio) - Consumable purchase — user can create multiple custom courses
- Script generation uses trained Mistral model with hypnotherapy knowledge
3. Email Auto-Reply (Influencer)
Automated email handling for influencer/partner inquiries.
Flow
- Check Inbox (IMAP poll every 1 minute)
- Store email data (from, subject, body, message-id)
- AI Categorize (Mistral) — classifies as SPAM, BUSINESS, or REPLY
- SPAM/BUSINESS → forwarded to Sean
- REPLY → AI Agent generates response using knowledge base
- If AI can answer → sends reply via Resend (threaded in same conversation)
- If AI cannot answer → escalates to human (forwards to Sean)
Knowledge Base
The AI can answer questions about:
- Portal URL and login instructions
- Referral code location
- Splash screen specs (1080x1920px, 9:16, PNG/JPG)
- Approval timeline (24-48 hours)
- Re-uploading rejected images
Must Escalate
- Money, payments, earnings, commissions
- Custom referral codes
- Account deletion
- Technical bugs
- Anything not in knowledge base
Configuration
- IMAP: Currently
sean@omelasai.com(production will beinfo@omelasai.com) - AI: Mistral API for categorization and response generation
- Send: Resend API from
marketing@hypnoelp.com - Conversation memory: Per-sender session maintained across replies
- Email threading: Uses In-Reply-To/References headers for Gmail thread continuity
Local Backup
Workflow JSON exported to n8n-workflows/email-auto-reply.json
Server Access
| Server | Access | n8n URL |
|---|---|---|
| OVH n8n | Via SSH (see servers-ssh.md) | Internal |
| OVH3 Worker | ssh ubuntu@15.204.11.95 |
https://worker1.ipnoelp.com |
Status
All three workflows operational. Email auto-reply blocked from production switch (need IMAP credentials for info@omelasai.com from Chas).