📚 User Guide
Everything you need to know to get great coaching from the ReplicAI•tor platform — from your first login to advanced tips for getting the most from AI feedback.
1What Is ReplicAI•tor?
ReplicAI•tor is an AI coaching platform that thinks, talks, and evaluates exactly like a real expert coach — your coach, specifically. It analyzes your video, audio, photos, or written work and delivers structured, personalised feedback in your coach's own voice and style.
The system works across sports, sales, fitness, public speaking, business consulting, and more. Each coach creates a unique AI "replica" of their methodology, so you receive expert-level guidance any time of day — not just during scheduled sessions.
ReplicAI•tor is not a generic chatbot. It is a purpose-built coaching replication system trained on your specific coach's knowledge, frameworks, and evaluation criteria.
2Pre-Sales FAQs
3Who Is It For?
ReplicAI•tor is designed for any expert who wants to scale their coaching — and any learner who wants expert feedback on demand. The platform is domain-agnostic: if a human coach can evaluate it, the AI can replicate that evaluation. Here are just some of the domains already in use:
Sports & Athletics
Business & Professional Skills
Personal Development & Lifestyle
Lead Generation & Marketing
ReplicAI•tor also runs in lead generation mode — allowing coaches, course creators, and service businesses to offer a free AI coaching sample to website visitors without requiring account creation. The AI delivers a genuine taste of the full experience, with a natural conversion prompt to join the paid program. This makes it equally valuable as a marketing tool as it is a coaching delivery system.
The breadth of domains above is illustrative — not exhaustive. If your methodology can be written down, it can be taught to the AI.
4How It Works
Getting coaching feedback takes less than five minutes. Here is the six-step process:
- Log in to your coaching portal and navigate to the coaching interface.
- Choose your coach (if multiple are available) and select a language if different from the default.
- Upload your content — video, audio, photo, document, or type a text question.
- Select a focus area (optional but recommended) to direct the AI's attention to specific aspects of your performance.
- Submit and wait — the AI analyzes your submission. Most responses arrive within 30–90 seconds for text/photo; 60–180 seconds for video.
- Review your feedback — read the coaching text, listen to the audio narration, view any generated diagrams, and check your report card scores.
After receiving feedback, you can ask follow-up questions in the chat box directly below your results. The AI remembers the context of your submission throughout the conversation.
Your session is automatically saved to your history, where your coach can review it and add human notes if needed.
5Creating Your Account
Your account is created by your coach or through the registration link they provide. The process varies slightly by coach but typically works as follows:
- Receive an invitation email or registration link from your coach.
- Click the link and fill in your name, email address, and a password of your choice.
- Confirm your email address if prompted.
- Log in to the coaching portal using your new credentials.
- Complete any profile information your coach requires (name, skill level, goals, etc.).
You cannot self-register on most coaching portals — your coach must set up your account or enable open registration. Contact your coach if you need access.
Once logged in, your membership level determines which features and how many sessions are available to you. Your coach sets these limits.
6Logging In
To log in to your coaching portal:
- Go to the website your coach provided (e.g., their coaching domain or a sub-page like
/login). - Enter your email address and password.
- Click Log In.
- If you forget your password, click Forgot Password on the login page to receive a reset email.
Bookmark your coaching portal URL so you can return easily. The exact address is provided by your coach.
Staying Logged In
Check the Remember Me box to stay logged in on your personal device. Do not use this option on shared or public computers.
Trouble Logging In?
- Make sure Caps Lock is off.
- Try the password reset link if you are unsure of your password.
- Contact your coach if your account does not exist or has been deactivated.
- Clear your browser cache if the login page behaves unexpectedly.
7Interface Overview
After logging in you will see the main coaching interface. Here is a quick map of what you are looking at:
The exact layout depends on how your coach has configured the interface. Some elements may be hidden if your coach has not enabled them.
8Choosing Your Coach
If your portal has more than one AI coach available, you will see a coach selector — either a dropdown menu or a row of coach cards — near the top of the interface.
Each coach card shows the coach's name, photo or avatar, and their specialty. Click a coach to select them. All subsequent feedback in that session will come from that coach's AI.
Different coaches may specialise in different aspects of the same skill. For example, one golf coach might focus on the short game while another focuses on driving. Read each coach's description to choose the right one for your goal.
Your selection is remembered for your session. You can switch coaches at any time before submitting — just select a different coach from the selector.
9Choosing a Language
ReplicAI•tor can deliver feedback in eight languages:
| Language | Code | Notes |
|---|---|---|
| English | en | Default for most portals |
| Spanish | es | Castilian Spanish |
| French | fr | Standard French |
| German | de | |
| Italian | it | |
| Japanese | ja | |
| Chinese (Simplified) | zh | |
| Portuguese | pt |
The AI generates coaching text in the selected language, but the voice narration uses the voice your coach has assigned. If the assigned voice does not natively speak the selected language, the audio may sound accented or unnatural. Check with your coach if you need fully native audio.
Select your language from the dropdown before submitting. The language setting applies to the coaching text, audio narration, and any generated diagrams.
10Uploading Video
Video is the most powerful input type — it gives the AI the most information about your physical performance.
Supported Formats
MP4, MOV, MKV, WebM, AVI, MPEG, FLV. MP4 is recommended for best compatibility.
How to Upload
- Click or drag-and-drop your video file into the upload area.
- Wait for the upload progress bar to reach 100%.
- Optionally add a text note describing what you want the coach to focus on.
- Select a focus area, then click Submit for Coaching.
How Video Analysis Works
The system extracts key frames from your video and sends them to GPT-4 Vision along with your coach's evaluation criteria. The AI analyzes your movement, form, or technique across those frames — similar to a coach watching your video in slow motion.
For best results: film in good lighting, keep the camera steady, ensure your full body (or the relevant body parts) is visible in the frame, and film from the angle your coach recommends — usually a 45-degree side view for most sports.
Very large video files (over 500 MB) may take longer to upload and process. Consider trimming your video to the relevant portion — usually 5–30 seconds is sufficient for a swing, pitch, or movement analysis.
File Size Tips
- Most smartphone videos record at 4K by default. Consider switching to 1080p to reduce file size without losing coaching quality.
- Trim to the key moment — the AI does not need 10 minutes of warm-up footage.
- MP4 files are generally smaller than MOV for the same quality.
11Uploading Audio
Audio submissions are ideal for sales call reviews, speech practice, lessons, or any spoken-word coaching.
Supported Formats
MP3, M4A, WAV, OGG, FLAC, AAC.
What Happens to Your Audio
Your audio file is transcribed by OpenAI Whisper, which produces a highly accurate text transcript. The coaching AI then reads that transcript — along with your coach's evaluation criteria — and generates structured feedback as if your coach had listened to the entire recording.
For a sales call review, try to record both sides of the conversation if possible. If only your side is audible, the AI will analyze your language, pacing, and technique based on what it can hear.
Transcript Visibility
Your transcript is shown in the feedback panel below the coaching text. You can read along with the audio narration or use the transcript to find specific moments to reference in a follow-up question.
Whisper supports over 50 languages and will auto-detect the spoken language in your audio. The coaching feedback will still be delivered in the language selected in the interface.
12Uploading Photos & Images
Photos are useful for analyzing static positions — a golf setup, a makeup look, a business chart, a posture assessment, or any visual reference you want your coach to review.
Supported Formats
JPEG, PNG, GIF, WebP, BMP, TIFF.
Best Practices
- Use good lighting — avoid heavy shadows across key areas.
- Ensure the relevant area fills most of the frame.
- For posture or form analysis, use a neutral background so the AI is not distracted.
- For makeup or visual artistry, use consistent lighting between before/after shots if comparing.
You can add a text note with your image to direct the AI: for example, 'Please focus on my address position and whether my spine angle looks correct.'
The AI uses GPT-4 Vision to analyze the image, so it can see exactly what a human coach would see when looking at the photo.
13Uploading Documents
Document uploads are useful for getting feedback on written work — scripts, presentations, reports, business plans, sales frameworks, or any text-based content your coach reviews.
Supported Formats
PDF, Word (.doc/.docx), PowerPoint (.ppt/.pptx), Excel (.xls/.xlsx), plain text (.txt), CSV.
How Documents Are Processed
The system extracts readable text from your document and sends it to the coaching AI along with your coach's evaluation criteria. For spreadsheets and CSVs, data is read as structured text. For PowerPoint files, slide text and notes are extracted.
Images embedded in documents (charts in Word, images in PowerPoint) are not analyzed unless the document format supports image extraction. If visual content in your document is important, consider also uploading a screenshot.
For sales scripts or presentations, include the full text so the AI can evaluate structure, flow, and language across the entire piece — not just individual slides or sections.
14Text & Chat Sessions
You do not need to upload a file to get coaching. You can simply type a question, describe a situation, or paste text directly into the prompt field.
When to Use Text Sessions
- Asking conceptual questions: "What drill should I do to fix an over-the-top swing path?"
- Describing a situation: "In my last sales call I kept losing the prospect at the pricing stage — what do I do differently?"
- Getting feedback on written text you paste in.
- Following up on a previous session: "Based on my last three swings, what is my biggest consistent error?"
Follow-up Chat
After any coaching response (not just text sessions), a chat box appears below your feedback. You can ask follow-up questions and the AI will respond in context — aware of what it just told you and what you uploaded.
The follow-up chat is one of the most powerful features. Use it to drill deeper: 'Can you explain that drill in more detail?' or 'What would you prioritise first — my grip or my stance?'
15Quick Prompts
Quick Prompts are shortcut buttons your coach has set up for the most common questions or session types. They appear as clickable chips near the upload area.
Clicking a Quick Prompt chip instantly fills the prompt field with a pre-written coaching question — saving you time and ensuring you phrase the question in a way the AI handles well.
Examples
- "Analyze my full swing" — fills the prompt with the standard swing analysis request.
- "Short game check" — directs attention to chipping and putting.
- "Rate my pitch" — for sales coaches, prompts a structured sales evaluation.
- "Check my posture" — for fitness coaches.
Quick Prompts are fully customised by your coach. If you would like to see a different prompt added, mention it to your coach — they can add it through their dashboard.
You can use a Quick Prompt on its own (text session) or combine it with a file upload — the chip text becomes your prompt and the file provides the media to analyze.
16Choosing a Focus Area
A focus area tells the coaching AI which specific aspect of your performance to evaluate. Without a focus area, the AI gives broad general feedback. With one, it goes deep on a specific skill.
How to Select
After uploading your file, look for the Focus Area dropdown or button group. Select the area most relevant to your submission.
Examples by Domain
| Domain | Example Focus Areas |
|---|---|
| Golf | Full Swing, Short Game, Putting, Setup & Stance, Course Management |
| Baseball | Batting Mechanics, Pitching, Fielding, Base Running |
| Sales | Opening, Discovery, Presentation, Objection Handling, Closing |
| Public Speaking | Delivery, Structure, Body Language, Vocal Variety, Audience Engagement |
| Fitness | Squat Form, Deadlift Form, Posture, Cardio Efficiency |
Focused sessions produce more actionable feedback than broad ones. If you have time, submit the same video twice with two different focus areas to get a more complete picture.
17Pose / Stick Figure Overlay
For video and photo submissions in supported focus areas, you may see a stick figure overlay drawn on top of your footage. This is the AI mapping your body position using pose estimation technology.
What You See
A skeleton-style overlay with 17 key body points: nose, eyes, ears, shoulders, elbows, wrists, hips, knees, and ankles. Lines connect the joints to show the shape of your body in each frame.
How It Works
The overlay is generated entirely in your browser using TensorFlow.js MoveNet — a fast, lightweight neural network. No video is sent to a server for the overlay; it runs locally on your device.
Because pose estimation runs in your browser, performance depends on your device. On older phones or computers it may take a few seconds to render. The overlay does not affect the AI coaching analysis — it is a visual aid only.
Not Seeing the Overlay?
- Your coach may not have enabled pose overlay for the selected focus area.
- Your browser may be blocking the required scripts — try disabling browser extensions or switching to Chrome.
- The overlay only appears for video and photo, not audio or text submissions.
18Understanding Your Feedback
After submission, your feedback is displayed in a structured panel. Here is what each component contains:
| Component | What It Contains |
|---|---|
| Coaching Text | The main written feedback from your AI coach — observations, diagnosis, and recommendations. |
| Audio Narration | The coaching text read aloud in your coach's voice. Click play to listen. |
| Coaching Diagram | An AI-generated illustration that visualises a key concept from the feedback (when enabled). |
| Report Card | Scored metrics (e.g., 1–10 or 1–100) for specific aspects of your performance. |
| Transcript | For audio uploads — the full text transcript of your audio. |
| Related Videos | Links to reference videos your coach has added that are relevant to your feedback. |
| Follow-up Chat | Ask any follow-up questions about this specific session. |
Take time to read the coaching text first, then listen to the audio while reading. Many users find they absorb information better when they read and listen simultaneously.
19Your Transcript
For audio submissions, your coaching feedback includes a full transcript of the audio you uploaded. This is produced by OpenAI Whisper.
The transcript appears in its own section within the feedback panel, below the main coaching text. It shows the spoken words from your audio, time-coded where possible.
Using the Transcript
- Read along while the audio plays to improve comprehension.
- Copy specific lines to paste into the follow-up chat: "At the point where I said X, what was I doing wrong?"
- Compare your transcript against a script to identify improvised vs. prepared sections.
Whisper is highly accurate on clear audio. Background noise, heavy accents, or multiple overlapping voices may reduce accuracy. The coaching AI reads your transcript to give feedback, so poor transcription quality can affect feedback quality.
20AI Coaching Text
The coaching text is the heart of your feedback — a structured written analysis by your AI coach. It is generated fresh for every session based on your specific submission.
Typical Structure
- Observation — What the coach noticed about your performance.
- Diagnosis — Why the coach believes this is happening.
- Recommendation — Specific changes or drills to address the issue.
- Encouragement — A closing note recognising what you did well.
The exact structure depends on your coach's configuration and the focus area selected.
Your coach may have instructed the AI to use a specific tone — encouraging and positive, tough and direct, or data-driven and analytical. This is intentional and reflects how your real coach communicates.
Referencing Past Sessions
The AI has access to summaries of your past sessions. It may mention patterns it has noticed across multiple submissions: "I've noticed your elbow position has improved since last month, but we still have work to do on…" This continuity is intentional.
21Audio Narration
Your coaching text is automatically converted to speech using ElevenLabs — a high-quality AI voice platform. The result sounds like a real human coach reading your feedback to you.
Using the Audio Player
- Click the play button in the audio player to start narration.
- Use the progress bar to skip to a specific part.
- Adjust volume using your device or browser controls.
Listening while reading helps most people retain coaching feedback better. Try it as a habit — read once, then listen while reading again.
Not Hearing Audio?
- Check that your device is not on silent or muted.
- Try a different browser if the player is not appearing.
- Your coach may not have audio narration enabled — it is an optional feature.
- Audio generation may take an extra few seconds after the text appears. Wait a moment and refresh if needed.
22Dual-Voice Coaching
Some coaching portals feature two coaches working together on your feedback — for example, a head coach and a specialist assistant. When dual-voice is enabled, each coach speaks in their own voice.
How It Sounds
The audio player plays through the feedback seamlessly. You will hear one coach speak, then the other takes over for their portion, then the first may respond again — like listening to two coaches discussing your performance in real time.
Dual-voice coaching requires your portal to have two coaches configured with separate ElevenLabs voices. If you hear only one voice, your coach may have single-voice enabled or dual-voice may not be configured on your plan.
Reading Along
In the coaching text, each coach's contribution is visually separated. You can tell whose voice you are hearing at each moment.
23Coaching Diagrams
Some feedback sessions include a coaching diagram — an AI-generated illustration that visually explains a key concept from your feedback. For example: a correct vs. incorrect swing path, a foot positioning diagram, or a sales funnel illustration.
What to Expect
- Diagrams appear below the main coaching text when available.
- Click a diagram to open it full-screen in a lightbox for a closer look.
- Press Escape or click outside the image to close the lightbox.
Diagrams are generated asynchronously — they may appear a minute or two after the main coaching text. If you see a placeholder, the diagram is still being created. Refresh or wait for it to load in.
Not Seeing Diagrams?
- Your coach may not have diagram generation enabled for the selected focus area.
- Diagram generation can occasionally fail — the system will not show a broken image; it will simply omit the diagram.
24Report Card / Scores
The report card gives you a numeric score for specific aspects of your performance, letting you track improvement over time at a glance.
How Scores Work
Scores are assigned by the coaching AI based on what it observed in your submission. Your coach defines the metric categories and the scoring scale (typically 1–10 or 1–100). An overall score summarises all metrics.
Example Report Card — Golf
| Metric | Score | Notes |
|---|---|---|
| Setup & Alignment | 7 / 10 | Good posture; feet slightly open |
| Backswing | 6 / 10 | Over-rotation at the top |
| Downswing & Transition | 5 / 10 | Early release — key area to work on |
| Impact Position | 6 / 10 | Getting better — hands ahead of ball |
| Follow-through | 8 / 10 | Full extension, balanced finish |
| Overall | 6.4 / 10 |
Do not fixate on the absolute score — focus on the trend. A score that improves from 5 to 7 over three months is far more important than hitting a specific number.
25Related Videos
Below your coaching feedback you may see a section called Related Videos — a curated list of video resources your coach has uploaded that are relevant to your session's topic.
These might be instructional clips, drill demonstrations, examples of correct technique, or educational content that supports the coaching feedback you just received.
Watch the related videos after reading your feedback — they give you a visual demonstration of what the coach is describing in text.
Related videos are matched to your session using keywords. The system picks videos whose topics align with the focus area and key points in your coaching feedback. Your coach regularly adds new videos to the library.
26Session History
Every coaching session is saved automatically. To revisit past sessions:
- Click Session History in the navigation or on your dashboard.
- Browse sessions listed by date, most recent first.
- Click any session to open the full feedback — text, audio, diagrams, scores, and follow-up conversation.
Your session history is private. Only you and your assigned coach can view your sessions.
How Much History Is Kept?
Your session history is retained indefinitely unless your coach's plan limits storage. Check with your coach if you notice older sessions disappearing.
Using History for Progress Tracking
Compare your report card scores across sessions to see where you are improving and where you need more work. The AI coaching text also references your history automatically — mentioning patterns and comparing current performance to past sessions.
27Comparing Sessions
ReplicAI•tor automatically tracks your progress across sessions. You do not need to manually compare — the AI does it for you.
How It Works
When you submit a new session, the coaching AI reviews summaries of your recent past sessions. It uses this context to note what has changed: improvements, persistent issues, and emerging patterns.
You may see feedback like: "This is the third session where I've noticed your right elbow dropping on the downswing…" or "Your setup has improved significantly since two weeks ago — here's what's still to address."
For best comparison results, submit sessions with the same focus area and similar video angles. This makes it easier for the AI to make like-for-like comparisons.
Manual Comparison
You can also ask the AI directly in a follow-up chat: "How does this swing compare to my session from last Tuesday?"
28Proactive Coaching Emails
ReplicAI•tor can send you coaching emails automatically — even when you have not submitted a session recently. Your coach uses these to keep you engaged, motivated, and improving between live or AI sessions.
What Proactive Emails Contain
- A personalised coaching tip or reminder based on your recent session history.
- A reminder to submit if you have not had a session in a while.
- Encouragement based on improvement trends the AI has noticed.
- A specific drill or focus recommendation for your next session.
These emails are generated by AI but are sent from your coach's address. They are personalised to your specific history — not mass-broadcast marketing emails.
You can opt out of proactive emails by contacting your coach or adjusting your notification preferences in your profile, if that option is available.
29Special Dates Coaching
Your coach may have configured special date coaching — automated motivational or preparation messages sent around significant events in your calendar.
Examples
- Competition day: A motivational message the morning of a tournament.
- Pre-event prep: A 7-day countdown with daily preparation tips.
- Anniversary: A message on the anniversary of you joining the program.
- Season opener: A readiness check at the start of a new season.
Special date messages are sent automatically by the system. Your coach sets them up — you do not need to do anything to receive them. They arrive by email.
These messages are AI-generated and personalised to your session history, making them relevant and timely rather than generic motivational content.
30Needs Attention
The Needs Attention section on your dashboard highlights sessions or tasks that need follow-up. Items appear here when:
- You submitted a session but have not read the feedback yet.
- Your coach has added a note to a session requesting your review.
- A session was submitted and feedback is awaiting generation.
Dismissing Items
Once you have addressed an item, click the × button next to it to dismiss it from the list. If you have multiple items, use the Dismiss All button in the toolbar.
Dismissed items are hidden but not deleted — your sessions and feedback remain in your history.
If you dismiss something by mistake, it will not reappear on the Needs Attention list, but you can still find the session in your full session history.
31Your Profile
Your profile stores basic information about you that helps personalise your coaching experience.
What Is in Your Profile
- Name and contact details — used for addressing you in feedback and emails.
- Skill level — beginner, intermediate, advanced, or as defined by your coach.
- Goals — what you are working toward.
- Notes from your coach — context your coach has recorded about your game or development.
Updating Your Profile
Click your name or avatar in the top navigation, then select Profile. Edit your details and save. Some fields may be locked if your coach manages them directly.
Keep your profile goals up to date. The coaching AI references your stated goals when generating feedback — so if your goal has changed, update it so the AI focuses on what matters now.
32Files Your Coach Shares
Your coach can share files directly with you through the platform — training plans, drill sheets, video analysis reports, course notes, or any document relevant to your development.
Accessing Shared Files
Shared files appear in the Files section of your dashboard or profile. Click any file to download it.
Files shared by your coach are private to you — other clients cannot see files shared with you.
What Types of Files Coaches Share
- PDF training plans and drill descriptions.
- Video clips with annotations.
- Spreadsheets for tracking practice repetitions.
- PowerPoint presentations from group sessions.
If you need a specific resource, ask your coach and they can upload it directly to your account.
33User Troubleshooting
34User FAQ
⚙️ Coach & Admin Guide
Everything you need to install, configure, and manage the ReplicAI•tor Coaching System — from initial setup to advanced configuration and troubleshooting.
1System Requirements
WordPress & PHP
| Option Key | Default | Description |
|---|---|---|
WordPress | 5.8+ | Fully tested on 6.x; earlier versions may work but are not supported |
PHP | 7.4+ (8.1 recommended) | 8.x improves performance significantly |
MySQL / MariaDB | 5.7+ / 10.4+ | Plugin creates 7 custom tables on activation |
PHP Memory Limit | 256 MB minimum | 512 MB recommended; set in wp-config.php or php.ini |
Max Execution Time | 120 s minimum | Set to 300 s for video processing reliability |
Upload Max Filesize | 64 MB minimum | 256 MB recommended for HD video |
SiteGround Shared Hosting Notes
- Nginx
proxy_read_timeoutis approximately 60 s. The plugin uses a heartbeat mechanism to keep long-running requests alive. - Mod_security can block large POST bodies. If 403 errors appear on video uploads, ask SiteGround support to whitelist the relevant endpoint or reduce your chunk size.
- OPcache must be manually cleared after every PHP file deployment via the SiteGround Site Tools dashboard.
- SSH access is available on Growth plans and higher — strongly recommended for deployment.
Browser Support (Admin)
Chrome 100+, Firefox 100+, Edge 100+, Safari 16+. Internet Explorer is not supported.
Running ReplicAI•tor on a shared hosting plan with memory below 256 MB or execution time below 120 s will cause intermittent failures. Contact your host to increase limits before going live.
2Installation
- Download the
ai-coachplugin ZIP from your delivery or repository. - Log in to WordPress Admin → Plugins → Add New → Upload Plugin.
- Upload the ZIP and click Install Now, then Activate.
- Navigate to AI Coach → Settings and enter your API keys (see API Keys section).
- The plugin automatically creates all required database tables on first activation.
- Add the
[ai_coach]shortcode to a page for users, and[ai_coach_dashboard]to a page for coach access. - Set page visibility and membership restrictions via PMPro (see PMPro Integration).
File Structure (Critical — Do Not Modify)
| Location | Contains |
|---|---|
ai-coach.php | Plugin root — bootstrap, activation hooks, shortcode registration only |
/includes/ | All PHP logic files (settings, AJAX handlers, API clients, DB helpers) |
/assets/ | All JS and CSS files — never regenerate; use surgical edits only |
/assets/assistants.json | Coach→OpenAI Assistant ID mapping file |
JavaScript files in /assets/ are sacred. Never regenerate them wholesale. Binary-mode surgical edits only to prevent emoji/line-ending corruption. Known checksums: ai-coach.js=5a206d2d, ai-coach-upload.js=02b7f10c, ai-coach-init.js=9310889d, ai-coach-rendering.js=dfe414d6, ai-coach-dashboard.js=7ce00b31.
Post-Installation Checklist
- Clear OPcache after activation.
- Verify all 7 database tables were created:
wp_aicoach_sessions,wp_aicoach_logs,wp_aicoach_videos,wp_aicoach_special_dates,wp_aicoach_experts,wp_aicoach_expert_files,wp_aicoach_expert_prompt_history. - Test a sample submission before inviting clients.
3API Keys
OpenAI (Required)
The plugin requires an OpenAI API key for all core AI functions: GPT-4 Vision coaching, Whisper transcription, image generation, and the Responses API.
- Log in to platform.openai.com.
- Navigate to API Keys and create a new secret key.
- Copy the key immediately — it is only shown once.
- In WordPress: AI Coach → Settings → API Keys → paste into the OpenAI field.
Store your OpenAI key securely. It grants full API access to your account. Never commit it to version control or paste it in a public location.
ElevenLabs (Optional — Required for Voice)
Required for audio narration. Without it, coaching text is delivered in text only.
- Obtain your API key from elevenlabs.io → Profile → API Key.
- The option key in the database is
aicoach_elevenlabs_key(stored base64-encoded). - Enter it in AI Coach → Settings → Voice Settings.
The option key is aicoach_elevenlabs_key, NOT aicoach_elevenlabs_api_key. Using the wrong key name will silently break voice generation.
D-ID (Optional — Required for Video Avatars)
Required if using video avatar (talking head) coaching responses. Uses the V3 Pro Clips API.
- Obtain credentials from d-id.com.
- Configure the presenter ID (not agent ID) in coach settings.
- When no presenter is configured, the system falls back to V2 API automatically.
4PMPro Integration
ReplicAI•tor uses Paid Memberships Pro (PMPro) to gate features by membership level. This is how you enforce your pricing tiers — Bronze, Silver, Gold, Academy, etc.
What PMPro Controls
- Which users can access which shortcode pages.
- Session limits (how many AI coaching sessions per billing period).
- Access to premium features: diagrams, dual-voice, video avatars.
- Human feedback request eligibility.
Setup Overview
- Install and activate PMPro (free plugin at wordpress.org/plugins/paid-memberships-pro).
- Create membership levels that match your pricing tiers.
- Restrict your coaching pages to the appropriate levels via PMPro page settings.
- Map features to levels in AI Coach → Settings → Premium Features.
The Session Limits feature requires PMPro to be active and configured. Session limits cannot be enforced without PMPro level detection.
Membership Level IDs
Each PMPro level has a numeric ID. The plugin uses these IDs when checking user permissions. You will reference these IDs when configuring feature gating in the AI Coach settings.
Test every feature gate with a test user account at each membership level before going live. Feature gating logic can have edge cases — especially for users on multiple levels or free trials.
5Admin Settings Overview
All plugin settings are accessible under WordPress Admin → AI Coach. The menu has the following sub-pages:
| Sub-Page | What You Configure |
|---|---|
| Settings | API keys, general options, system mode, voice, diagrams, proactive email |
| Coaches | Coach profiles, personality, voice assignment, focus areas, assistant mapping |
| Experts / Knowledge | Expert profiles, Vector Store configuration, file uploads |
| Videos | Explainer video library management |
| Metrics | Report card metric definitions |
| Premium Features | PMPro level → feature mapping |
| Quick Prompts | Per-coach chip prompt management |
| Special Dates | Calendar-based proactive coaching events |
| Users / Clients | User role assignment, skill scoping, notes |
Work through settings top to bottom on a new installation. Many later settings depend on API keys and coach configuration being correct first.
6General Settings
Found at AI Coach → Settings → General. These are the core configuration options:
| Option Key | Default | Description |
|---|---|---|
aicoach_openai_key | (empty) | Your OpenAI API secret key |
aicoach_elevenlabs_key | (empty) | ElevenLabs API key (base64-encoded in DB) |
aicoach_did_key | (empty) | D-ID API key |
aicoach_system_mode | sport | Operating mode: sport | consultant | lead_gen |
aicoach_default_language | en | Default language for coaching output |
aicoach_enable_diagrams | 1 | Enable AI diagram generation (1=yes, 0=no) |
aicoach_enable_voice | 1 | Enable ElevenLabs voice narration |
aicoach_enable_pose | 0 | Enable stick-figure pose overlay globally |
aicoach_enable_dual_voice | 0 | Enable dual-voice coaching |
aicoach_proactive_enabled | 0 | Enable proactive coaching emails |
aicoach_proactive_frequency | 7 | Days between proactive emails |
aicoach_proactive_inactive_days | 14 | Days of inactivity before triggering |
aicoach_from_email | (site email) | From address for all coaching emails |
aicoach_from_name | (site name) | From name for all coaching emails |
After changing API keys, clear OPcache and test a live submission. Cached PHP can serve the old key for several minutes.
7System Modes
The plugin operates in one of three modes, set via aicoach_system_mode. The mode controls which UI elements and features are available.
| Mode | Best For | Key Features |
|---|---|---|
| sport | Sports coaching (golf, baseball, fitness) | Video/pose analysis, report card scores, focus areas |
| consultant | Business coaching, sales, public speaking | Framework Builder, KPI tracking, document analysis |
| lead_gen | Marketing funnels, free trial demos | Token-based access, no account required, spam protection |
Sport Mode
The default mode. Optimised for physical performance coaching with video upload, pose overlay, and metric scoring.
Consultant Mode
Enables the Framework Builder tool and KPI Tracking features. Configuration stored in aicoach_framework_config WP option. Designed for coaches who evaluate strategy, process, and business performance rather than physical technique.
Lead Gen Mode
Allows visitors without accounts to access a limited coaching experience. Access is controlled by a token stored in a browser cookie. Includes spam protection to prevent abuse. Useful for trial experiences or marketing landing pages.
Changing system mode mid-deployment can affect existing users. Test on a staging site before switching modes on a live production site.
8Coach Configuration
Coaches are configured via AI Coach → Coaches, stored in the aicoach_coaches WordPress option as a keyed array. Each coach entry can contain:
| Option Key | Default | Description |
|---|---|---|
name | (required) | Display name shown to clients |
slug | (required) | URL-safe identifier used in shortcodes and JS |
bio | (empty) | Short bio shown on coach cards |
photo_url | (empty) | URL to coach profile photo |
voice_id | (empty) | ElevenLabs Voice ID for this coach |
personality | (empty) | AI personality prompt — defines tone, style, and coaching philosophy |
specialty | (empty) | Coach's area of expertise |
assistant_id | (empty) | Expert slug mapping for this coach (can also be defined in assistants.json) |
focus_areas | [] | Array of focus area keys this coach handles |
enable_pose | 0 | Enable pose overlay for this coach specifically |
enable_diagrams | 1 | Enable diagram generation for this coach |
The personality field is the most important coaching configuration. It defines how the AI communicates. Be specific: describe tone (encouraging vs direct), language level, what the coach emphasises, and phrases they commonly use.
Avoid using "Dr." titles or clinical diagnostic language in personality prompts. OpenAI's content filter may refuse responses when prompts sound medical. Use "specialist" framing and softened language instead.
9The assistants.json File
The /assets/assistants.json file maps coach slugs to their built-in AI expert configurations. The plugin reads this file to route each coaching session to the correct expert profile and knowledge base.
Flat Format (Single Voice per Coach)
{
"golf_coach": "golf_expert",
"sales_coach": "sales_expert"
}
Per-Voice Object Format (Dual Voice)
{
"golf_coach": {
"voice1": "golf_expert_primary",
"voice2": "golf_expert_secondary"
}
}
When dual-voice is enabled for a coach, the per-voice object format must be used. Each voice maps to its own expert profile with its own knowledge base and personality prompt.
Creating Expert Profiles (Built-in)
Expert profiles are created and managed entirely within the plugin — no external platforms or third-party IDs required.
- Go to AI Coach → Experts / Knowledge → Add Expert in the WordPress admin.
- Enter the expert name, slug, and a detailed personality/system prompt that describes how this coach thinks and evaluates.
- Upload knowledge base documents (PDFs, Word files, text files) to the expert's knowledge store.
- The plugin indexes and stores this knowledge for retrieval during sessions.
- Copy the expert slug and add it to
assistants.jsonunder the appropriate coach key.
Everything stays within your WordPress installation. Your expert knowledge, personality prompts, and configuration are fully self-contained — no external assistant platforms needed.
10Expert Knowledge / Vector Stores
ReplicAI•tor uses a built-in vector knowledge store to give each coach a searchable knowledge base. When a user submits a session, the system performs a semantic search and injects the most relevant knowledge chunks into the AI prompt.
How It Works
- Upload documents (PDFs, Word files, text files) to the expert's Vector Store via AI Coach → Experts.
- OpenAI indexes the content and makes it searchable.
- On each submission, the plugin queries the knowledge store for relevant passages.
- The top results are injected into the prompt alongside the user's uploaded content.
What to Upload
- Your coaching methodology documents and frameworks.
- Drill descriptions and instructional content.
- Common errors and their corrections.
- FAQ answers you want the AI to reference.
- Any written content that reflects how you coach.
More is better for Vector Stores. Upload everything — your notes, articles, course materials. The AI will find what is relevant for each session automatically.
Database Tables
Expert data is stored in wp_aicoach_experts and wp_aicoach_expert_files. File upload history is tracked in wp_aicoach_expert_prompt_history.
11Voice / TTS Setup
Voice narration uses ElevenLabs. Each coach can have their own voice, creating a distinct audio identity for the coaching experience.
Getting a Voice ID
- Log in to elevenlabs.io.
- Browse the Voice Library or clone a custom voice.
- Copy the Voice ID from the voice settings page.
- Paste it into the coach's Voice ID field in WordPress: AI Coach → Coaches → [coach name].
Voice Cleaning
The function aicoach_clean_for_voice() in audio-functions.php strips markdown formatting, special characters, and structural markup before sending text to ElevenLabs. This ensures the audio sounds natural and does not read out asterisks, pound signs, or code formatting.
Test every voice with a sample coaching response before going live. Some ElevenLabs voices handle punctuation differently — a long pause after an em-dash, for example. Adjust your coach's writing style hints if audio sounds unnatural.
Dual-Voice Setup
To enable dual-voice, each coach needs two Voice IDs — one for Voice 1 and one for Voice 2. The AI coaching response uses VOICE1_SPOKEN_START/END and VOICE2_SPOKEN_START/END delimiter markers to separate which coach says what. The plugin splits on these markers and sends each portion to the corresponding ElevenLabs voice.
12Dual-Voice Admin Setup
Dual-voice coaching allows two AI coaches to deliver feedback in alternating voices — creating a dialogue-style coaching experience.
Requirements
- Two ElevenLabs Voice IDs configured for the coach.
- Per-voice
assistants.jsonformat (see assistants.json section). aicoach_enable_dual_voiceset to1in settings.
Prompt Delimiter Markers
The AI prompt must instruct the assistant to use these exact markers around spoken content:
VOICE1_SPOKEN_START
[Content for Voice 1]
VOICE1_SPOKEN_END
VOICE2_SPOKEN_START
[Content for Voice 2]
VOICE2_SPOKEN_END
The plugin's audio split function detects these markers, separates the text, and sends each portion to the appropriate ElevenLabs voice. Both audio clips are then concatenated for playback.
If the AI does not use the delimiter markers correctly, the dual-voice split will fail and the system will fall back to single-voice. This is typically caused by the assistant's system prompt not including clear delimiter instructions. Verify your assistant prompt includes explicit formatting requirements.
13Diagram Generation
ReplicAI•tor generates coaching diagrams using OpenAI gpt-image-2. Diagrams are created asynchronously after the main coaching text is delivered.
How It Works
- The coaching AI identifies a key concept that would benefit from visual illustration.
- A diagram description is embedded in the coaching text using a special marker.
- After the coaching response is saved, a background process sends the description to gpt-image-2.
- The generated image URL is saved to the session record (
diagram_statuscolumn). - The frontend polls for the image and displays it when ready.
Diagram Detection Regex
The system uses this regex to detect diagram markers in AI output:
#(0, 4)\s*(Diagram|Image|Visual|Illustration|Generated Image) Description:?\s*
Configuration
| Option Key | Default | Description |
|---|---|---|
aicoach_enable_diagrams | 1 | Master switch for diagram generation |
HTTP timeout | 180s | gpt-image-2 requires a 180-second HTTP timeout — do not reduce |
gpt-image-2 defaults to rich, full-colour illustrations. The system only requests line drawings / schematics when the word "schematic" or "wireframe" appears in the diagram description. For most coaching domains, the default colour style is preferred.
If diagrams are not appearing, check your server's HTTP timeout setting. A 60 s timeout (common on shared hosting) will cause gpt-image-2 requests to fail silently.
14[ai_coach] Shortcode
The [ai_coach] shortcode renders the main coaching interface for clients. Place it on any page that logged-in users should access for coaching sessions.
Basic Usage
Parameters
| Parameter | Default | Description |
|---|---|---|
coaches | (all coaches) | Comma-separated list of coach names or slugs to show on this page. Example: coaches="Greg Jameson, Jane Smith". Only these coaches appear in the selector. |
coach | (all coaches) | Shorthand for a single coach slug. Example: coach="golf_coach" |
mode | (global setting) | Override the system mode for this page only: sport | consultant | lead_gen. Useful for a public lead-gen page alongside a members-only sport/consultant page. |
language | en | Default language for this shortcode instance: en, es, fr, de, it, ja, zh, pt |
show_history | 1 | Show session history link (1) or hide it (0) |
show_scores | 1 | Show report card scores (1) or hide them (0) |
show_pose | (global) | Force pose overlay on (1) or off (0) for this page regardless of global setting |
Usage Examples
Basic — shows all configured coaches, uses global system mode.
Restricts this page to only Greg Jameson's coaching interface.
Lead generation landing page — no login required, limited free sessions, only Greg's coach shown.
Sports page showing two specific coaches with session history enabled.
Spanish-language consultant page, sales coach only, report card scores hidden.
For a powerful lead generation funnel: create a public page with [ai_coach mode="lead_gen" coaches="Your Name"] and a separate members-only page with the full [ai_coach]. Visitors get a genuine sample — members get the full coaching experience.
15[ai_coach_dashboard] Shortcode
The [ai_coach_dashboard] shortcode renders the full 7-tab coach/admin dashboard. Place it on a page restricted to coaches and admins via PMPro.
Basic Usage
Parameters
| Option Key | Default | Description |
|---|---|---|
role | coach | Minimum role to display the dashboard: coach | head_coach | admin |
Dashboard Tabs
- Home — Stats overview, Needs Attention panel, recent activity
- Clients — Client search, client cards, skill scoping, dual-coach avatar assignment
- Sessions — Session browser with filters, coach notes, email notification tools
- Videos — Explainer video library management
- Files — Share files with specific clients
- Quick Prompts — Per-coach chip prompt editor
- Settings — Key settings accessible from the dashboard view
Only place the dashboard shortcode on a page with proper membership restriction. Without access control, client data would be visible to all logged-in users.
16Full Shortcode Reference
| Shortcode | Purpose | Key Parameters |
|---|---|---|
[ai_coach] | Main coaching interface for clients | coaches, coach, mode, language, show_history, show_scores, show_pose |
[ai_coach_dashboard] | 7-tab coach/admin management dashboard | role |
[ai_coach_review] | Session review interface — display a specific past session | session_id (required) |
[ai_coach_profile] | User profile page — client views their own info and stats | (none — auto-detects current user) |
Use [ai_coach_profile] on a "My Account" style page so clients can update their goals and view their coaching history summary without accessing the full session browser.
17Dashboard Overview
The coach dashboard ([ai_coach_dashboard]) is the central management hub for coaches and administrators. It provides a real-time view of client activity, session data, and system configuration.
Access Levels
| Tab | Minimum Role | Notes |
|---|---|---|
| Home | assistant_coach | Read-only for assistant coaches |
| Clients | coach | Coaches only see their assigned clients |
| Sessions | coach | Filtered by coach's assigned clients |
| Videos | head_coach | Add/remove reference videos |
| Files | coach | Share files with own clients |
| Quick Prompts | coach | Edit prompts for assigned coaches only |
| Settings | admin | Full settings access — admins only |
Role assignment is managed via user meta aicoach_role. The five roles are: admin, head_coach, coach, assistant_coach, client.
18Dashboard — Home Tab
Stat Cards
The Home tab shows four summary stat cards at the top:
- Total Sessions (30d) — sessions submitted in the last 30 days.
- Active Clients — clients with at least one session in the last 30 days.
- Awaiting Feedback — sessions submitted but not yet reviewed by a human coach.
- Avg. Score — average overall report card score across recent sessions.
Needs Attention
Below the stat cards is the Needs Attention panel — a list of sessions that require coach action. Sessions appear here when:
- A client has not had a session in over 30 days.
- A client submitted a session but has not read the feedback.
- A session has been flagged for human review.
The toolbar shows the total item count. Individual items can be dismissed with the × button; the Dismiss All button clears the entire list. Dismissed status is stored in user meta aicoach_dismissed_attention_items.
Recent Activity
A chronological feed of recent session submissions across all your clients — with client name, coach used, session type, and timestamp.
19Dashboard — Clients Tab
Client Search
Use the search bar to filter clients by name or email. Results update in real time.
Client Cards
Each client appears as a card showing:
- Name and profile photo or initials avatar.
- Membership level.
- Number of sessions (total / last 30 days).
- Last session date.
- Assigned coaches (shown as overlapping 48px circular avatars with coloured gradient initials as fallback).
- Quick-action buttons: View Sessions, Add Note, Send Email.
Skill Scoping
You can scope a client to specific skills — restricting which focus areas they see in the coaching interface. This is useful for clients on a specific training plan where you do not want them working on areas outside their current stage. Set via the client card or the user detail view.
Dual-coach assignment is visible on client cards — two overlapping coach photos indicate the client works with both coaches. You can change assignments directly from the client card.
20Dashboard — Sessions Tab
Session Browser
The Sessions tab lists all sessions from your clients with the following filter options:
- Coach — filter by assigned coach.
- Focus Area — filter by what the client chose to focus on.
- Date Range — custom start and end dates.
- Status — all, awaiting review, reviewed, flagged.
Adding Coach Notes
Click any session to open the detail view. At the bottom you will find the Coach Notes field — a private area for your observations about the session that the client does not see. Notes are saved against the session in wp_aicoach_sessions.
Email Notifications
From a session detail view you can send the client a personalised follow-up email. The email can include a custom message, a link to the session, and any attachments.
Session email notifications are separate from the automated proactive coaching emails. These are manual, one-time messages triggered by the coach.
21Dashboard — Videos Tab
The Videos tab lets you manage the explainer video library — the pool of reference videos shown to clients in the Related Videos section after coaching feedback.
Adding a Video
- Click Add Video in the Videos tab.
- Enter a title, description, and the video URL (YouTube or Vimeo embed links supported).
- Add keywords — these are used to match videos to relevant coaching sessions.
- Optionally assign the video to a specific focus area.
- Click Save.
Keyword Strategy
The system matches your videos to sessions using keyword overlap. A video tagged with grip, setup, alignment will appear in sessions where the AI coaching text mentions any of those terms.
Use specific, coaching-relevant keywords — not generic terms. "Grip pressure" is more useful than "hands." Think about what words would appear in AI coaching feedback when this video would be relevant.
Database
Videos are stored in the wp_aicoach_videos table. See the Database Tables Reference section for full schema.
22Dashboard — Files Tab
The Files tab lets you upload and manage documents shared directly with specific clients.
Uploading a File to a Client
- Click Upload File in the Files tab.
- Select the client you want to share the file with.
- Choose the file from your computer (PDF, Word, images supported).
- Add an optional description.
- Click Upload.
The client will see the file in their own Files section and will receive an optional email notification.
File Access Control
Files are stored in a non-public directory and served through a secure WordPress endpoint. Clients can only access files shared with them — they cannot browse files shared with other clients.
File storage path and access control are handled by the plugin — do not place shared files in the WordPress uploads folder directly, as they would be publicly accessible by URL.
23Dashboard — Quick Prompts Tab
The Quick Prompts tab lets you manage the chip buttons shown to clients in the coaching interface.
Adding a Prompt
- Select the coach the prompt belongs to.
- Click Add Prompt.
- Enter the label (short — shown on the chip button) and the full prompt text.
- Click Save.
Storage
Prompts are stored in the WordPress option aicoach_chip_prompts as a per-coach array. The AJAX action for saving is aicoach_save_chip_prompts.
Quick Prompts are coach-specific. Each coach has their own set of chips. If a client is assigned to two coaches, they see that coach's chips when that coach is selected.
There is a known JavaScript timing guard on the client side: chip prompts will not render or memoize until window.AICoach is available. If prompts are not appearing after saving, clear OPcache and perform a hard browser refresh.
24Dashboard — Settings Tab
The Settings tab within the dashboard provides quick access to the most commonly changed settings without navigating away from the dashboard.
What Is Available Here
- Default coach for new clients.
- Proactive coaching email toggle and frequency.
- Session notification email address.
- Quick-access API key status (shows ✓ or ✗ — does not reveal the key value).
For deep configuration changes (adding coaches, changing system mode, uploading Vector Store files), always use the full AI Coach → Settings admin menu rather than the dashboard Settings tab.
25User Roles
ReplicAI•tor uses a custom role system stored in user meta aicoach_role. The five roles are:
| Role | Slug | Capabilities |
|---|---|---|
| Administrator | admin | Full access to all settings, all clients, all sessions, all configuration |
| Head Coach | head_coach | All coach capabilities plus: video library management, team settings, all client access |
| Coach | coach | Access own clients, view/add notes to sessions, manage own files and prompts |
| Assistant Coach | assistant_coach | Read-only access to assigned clients; can add notes but not change settings |
| Client | client | Submit sessions, view own history, receive coaching feedback |
Assigning Roles
Set via AI Coach → Users or by editing user meta directly. The meta key is aicoach_role.
Skill Scoping
Clients can be scoped to specific skills using the aicoach_assigned_skills user meta key. This restricts the focus areas available to that client in the coaching interface.
The aicoach_role meta key is separate from WordPress user roles (administrator, editor, etc.). A user can be a WordPress subscriber but an aicoach admin — always set both appropriately.
26Explainer Videos Library
The video library is managed via the Videos tab in the dashboard. The underlying data is stored in the wp_aicoach_videos table.
| Column | Type | Notes |
|---|---|---|
id | INT AUTO_INCREMENT | Primary key |
title | VARCHAR(255) | Video title shown to clients |
description | TEXT | Description shown below video |
video_url | VARCHAR(500) | YouTube or Vimeo URL |
keywords | TEXT | Comma-separated matching keywords |
focus_area | VARCHAR(100) | Optional focus area association |
coach_id | VARCHAR(100) | Coach slug this video belongs to (empty = all coaches) |
created_at | DATETIME | Upload timestamp |
display_order | INT | Manual sort order (lower = first) |
Aim for at least 3–5 videos per focus area so clients always see relevant content. A thin video library means clients frequently see no related videos, which reduces engagement.
27Report Card / Metrics Admin
Configure the scoring categories shown in client report cards via AI Coach → Metrics.
How Metrics Work
- You define the metric names, descriptions, and scoring scale (1–10 or 1–100).
- Metrics are stored in the
aicoach_metricsWordPress option. - The AI generates scores for each metric based on what it observed in the session.
- Per-session scores are stored as JSON in the
metrics_jsoncolumn ofwp_aicoach_sessions. - The overall composite score is stored in the
overall_scorecolumn.
Per-Focus-Area Metrics
Metrics can be configured globally (all sessions) or per focus area. When a client selects a focus area, the system uses the metrics defined for that area if available, falling back to global metrics otherwise.
Keep your metric list focused — 4 to 6 metrics is ideal. Too many metrics dilutes the impact and makes report cards harder to read. Choose the dimensions your coaching methodology most emphasises.
28Proactive Coaching Admin
Proactive coaching emails are sent automatically by a WordPress cron job. Configure via AI Coach → Settings → Proactive Coaching.
Key Options
| Option Key | Default | Description |
|---|---|---|
aicoach_proactive_enabled | 0 | Master on/off switch |
aicoach_proactive_frequency | 7 | Days between emails per client |
aicoach_proactive_inactive_days | 14 | Days of inactivity before triggering the first email |
aicoach_proactive_subject | (auto) | Email subject template — supports {name} token |
aicoach_proactive_prompt | (auto) | AI prompt used to generate the email body |
Cron Mechanics
The proactive email job runs daily via WP-Cron. It checks each active client against the frequency and inactivity settings. If a client qualifies, it generates a personalised AI message using their recent session history and sends it from the configured from address.
WP-Cron fires on page load by default. On low-traffic sites, it may not run reliably. For production use, disable the WordPress pseudo-cron (define('DISABLE_WP_CRON', true); in wp-config.php) and set up a real server cron job to hit wp-cron.php daily.
Write a warm, conversational proactive email prompt — not a generic reminder. The AI will personalise it further using the client's history, so your prompt sets the tone and structure.
29Special Dates Admin
Special date coaching is configured via AI Coach → Special Dates. Dates are stored in the wp_aicoach_special_dates table and fire inside the existing daily proactive coaching cron.
Special Date Record Fields
| Column | Type | Notes |
|---|---|---|
id | INT AUTO_INCREMENT | Primary key |
user_id | BIGINT | WordPress user ID (0 = applies to all clients) |
event_label | VARCHAR(255) | Name of the event (e.g., "Club Championship") |
event_date | DATE | The date of the event |
lead_days | INT | How many days before the event to start sending messages |
message_prompt | TEXT | Custom AI prompt for this event's messages |
recurrence | VARCHAR(50) | none | yearly — set to yearly for annual events like birthdays |
is_active | TINYINT(1) | 1 = active, 0 = disabled |
How They Fire
Each morning when the proactive cron runs, it checks for special dates within the lead_days window. If today falls within that window for an active date, it generates and sends the special date message instead of (or in addition to) the standard proactive email.
Special dates with recurrence=yearly will fire every year on the same date range — useful for tournament seasons, seasonal check-ins, or birthdays.
30Coach Client Files Admin
Files shared between coaches and clients are stored in a protected directory and served through WordPress — not directly accessible by URL.
Storage Path
Files are stored in the WordPress uploads directory under a subdirectory managed by the plugin. The exact path is not publicly known, which adds a layer of security.
Database
File metadata is tracked in a dedicated files table with columns for: file ID, coach ID, client ID, file name, file path, file type, upload timestamp, and client-visible description.
Access Control
- A client can only access files shared with their user ID.
- A coach can only manage files they uploaded.
- Admins and head coaches can access all files.
Do not move or rename the uploads subdirectory managed by the plugin. Doing so will break all existing file download links. If you need to migrate, use the plugin's built-in export/import tools (if available) or update the file paths in the database.
31Pose / Stick Figure Admin
The pose overlay uses TensorFlow.js MoveNet Lightning — a fast, 17-keypoint pose estimation model that runs entirely in the client's browser.
Enabling Pose Overlay
- Globally: Set
aicoach_enable_poseto1in General Settings. - Per Coach: Enable in the individual coach configuration.
- Per Focus Area: Check the Enable Pose Overlay checkbox on the relevant focus area.
Content Security Policy
MoveNet requires loading scripts from the TensorFlow CDN. If your site has a Content Security Policy (CSP) header, you must allowlist these domains:
https://cdn.jsdelivr.net
https://tfhub.dev
JS Conditional Enqueue
The TensorFlow.js and MoveNet scripts are only enqueued when pose overlay is active for the current page context — they are not loaded globally. This keeps page weight down for clients who do not need pose analysis.
Pose overlay adds the most value for full-body movement analysis (golf swings, baseball mechanics, fitness exercises). It is less useful for seated activities, close-up skills (putting, makeup), or text-only coaching domains.
32Lead Generation Mode
Lead gen mode (aicoach_system_mode=lead_gen) provides a limited AI coaching experience to visitors without requiring account creation — ideal for marketing funnels and product demos.
How It Works
- Visitors access the coaching interface via a page with
[ai_coach]. - On first use, the system generates a unique token stored in a browser cookie.
- Sessions are linked to this token rather than a WordPress user account.
- After a configured number of free sessions, the system prompts the visitor to register.
Spam Protection
Token-based rate limiting prevents a single visitor from abusing the free session limit by clearing cookies. The system uses a combination of IP address and browser fingerprint heuristics to identify repeat visitors.
Lead gen mode is most effective when paired with a clear CTA after the first session: "Want unlimited coaching? Create a free account." The AI coaching quality is a natural conversion hook.
Lead gen sessions do not benefit from session history continuity — since there is no user account, the AI cannot reference past sessions for context. This is intentional; the limited experience encourages conversion to a full account.
33Consultant Mode
Consultant mode is designed for coaches working in sales, business strategy, public speaking, and other non-physical domains. It replaces sports-specific UI elements with business-oriented tools.
Framework Builder
The Framework Builder lets coaches define structured evaluation frameworks — e.g., a 10-stage sales process or a 5-pillar business health model. Clients submit work (scripts, plans, recordings) and receive feedback mapped against the framework stages.
Frameworks are stored in the aicoach_framework_config WordPress option as a JSON structure defining stages, descriptions, and evaluation criteria.
KPI Tracking
Coaches can define KPIs (Key Performance Indicators) that are tracked across client sessions. The system extracts or requests KPI data with each submission and aggregates it over time — enabling trend analysis and progress coaching.
Consultant mode is mutually exclusive with sport mode. You cannot use pose overlay or sports-style report cards in consultant mode. If you need both, deploy two separate plugin instances on different WordPress sites.
34Quick Prompts Admin
Quick Prompts can be managed from two places: the coach dashboard (Quick Prompts tab) and the WordPress admin (AI Coach → Quick Prompts). Both interfaces write to the same option.
Storage
- Option key:
aicoach_chip_prompts - Structure: keyed array by coach slug, each containing an array of
{label, prompt}objects. - Save AJAX action:
aicoach_save_chip_prompts
Best Practices for Prompt Chips
- Labels: Keep to 2–4 words — they appear on small buttons.
- Prompt text: Write as if the client typed it. Include the context the AI needs: "Please analyze my full swing in this video, focusing on my backswing plane and transition timing."
- Limit: 6–8 chips is the practical maximum before the UI becomes cluttered.
Start with the 3–4 questions your clients ask most frequently. These make the biggest UX impact and reduce friction to getting a first session.
35Database Tables Reference
wp_aicoach_sessions
| Column | Type | Notes |
|---|---|---|
id | BIGINT AUTO_INCREMENT | Primary key |
user_id | BIGINT | WordPress user ID |
coach_id | VARCHAR(100) | Coach slug |
session_type | VARCHAR(50) | video | audio | image | document | text |
focus_area | VARCHAR(100) | Selected focus area slug |
language | VARCHAR(10) | Language code (en, es, fr, etc.) |
input_text | TEXT | Text prompt or description submitted |
file_path | VARCHAR(500) | Uploaded file path (if any) |
transcript | MEDIUMTEXT | Whisper transcript (can be very long — MEDIUMTEXT required) |
coaching_text | MEDIUMTEXT | Full AI coaching response |
audio_url | VARCHAR(500) | ElevenLabs audio file URL |
diagram_url | VARCHAR(500) | gpt-image-2 diagram URL |
diagram_status | VARCHAR(50) | pending | complete | failed |
metrics_json | TEXT | JSON object of per-metric scores |
overall_score | DECIMAL(5,2) | Composite report card score |
coach_notes | TEXT | Private coach notes (not visible to client) |
created_at | DATETIME | Session submission timestamp |
The transcript and coaching_text columns are MEDIUMTEXT (up to 16 MB). Do not change these to TEXT (65 KB limit) — long transcripts and rich coaching responses will exceed TEXT limits and be silently truncated.
wp_aicoach_logs
| Column | Type | Notes |
|---|---|---|
id | BIGINT AUTO_INCREMENT | Primary key |
session_id | BIGINT | Foreign key to wp_aicoach_sessions |
event_type | VARCHAR(100) | Event name (api_call, error, cron_run, etc.) |
message | TEXT | Log message or error detail |
created_at | DATETIME | Log entry timestamp |
wp_aicoach_videos
See Explainer Videos Library section for full schema.
wp_aicoach_special_dates
See Special Dates Admin section for full schema.
wp_aicoach_experts
| Column | Type | Notes |
|---|---|---|
id | INT AUTO_INCREMENT | Primary key |
name | VARCHAR(255) | Expert/coach name |
slug | VARCHAR(100) | URL-safe identifier |
knowledge_store_id | VARCHAR(255) | Internal knowledge store identifier for this expert |
description | TEXT | Description of this expert's knowledge base |
created_at | DATETIME | Creation timestamp |
wp_aicoach_expert_files
| Column | Type | Notes |
|---|---|---|
id | INT AUTO_INCREMENT | Primary key |
expert_id | INT | Foreign key to wp_aicoach_experts |
file_name | VARCHAR(255) | Original file name |
expert_file_id | VARCHAR(255) | Internal reference ID for the uploaded knowledge file |
file_size | BIGINT | File size in bytes |
uploaded_at | DATETIME | Upload timestamp |
wp_aicoach_expert_prompt_history
| Column | Type | Notes |
|---|---|---|
id | INT AUTO_INCREMENT | Primary key |
expert_id | INT | Foreign key to wp_aicoach_experts |
session_id | BIGINT | Associated session |
query_text | TEXT | The search query sent to the Vector Store |
result_chunks | MEDIUMTEXT | JSON array of knowledge chunks retrieved for this session |
created_at | DATETIME | Retrieval timestamp |
36WordPress Options Reference
All plugin options use the aicoach_ prefix. Here is a comprehensive reference:
| Option Key | Default | Description |
|---|---|---|
aicoach_openai_key | OpenAI API key | |
aicoach_elevenlabs_key | ElevenLabs API key (base64-encoded) | |
aicoach_did_key | D-ID API key | |
aicoach_system_mode | sport | sport | consultant | lead_gen |
aicoach_default_language | en | Default coaching language |
aicoach_coaches | [] | Serialised coach configuration array |
aicoach_default_model | gpt-4o | Model used for coaching (via aicoach_default_model() helper) |
aicoach_enable_diagrams | 1 | Enable diagram generation |
aicoach_enable_voice | 1 | Enable ElevenLabs voice |
aicoach_enable_pose | 0 | Enable pose overlay globally |
aicoach_enable_dual_voice | 0 | Enable dual-voice coaching |
aicoach_metrics | [] | Report card metric definitions |
aicoach_chip_prompts | [] | Per-coach quick prompt chips |
aicoach_proactive_enabled | 0 | Enable proactive emails |
aicoach_proactive_frequency | 7 | Days between proactive emails |
aicoach_proactive_inactive_days | 14 | Inactivity threshold for first email |
aicoach_proactive_subject | Email subject template | |
aicoach_proactive_prompt | AI prompt for email body generation | |
aicoach_from_email | (site email) | From email for all coaching emails |
aicoach_from_name | (site name) | From name for all coaching emails |
aicoach_framework_config | {} | Consultant mode framework definition (JSON) |
aicoach_session_limits | {} | PMPro level → session limit mapping |
All options are retrieved via standard WordPress get_option() / update_option(). The aicoach_default_model() helper function centralises model selection — always use this helper rather than hardcoding a model string.
37Deployment Checklist
New Installation
- Verify server meets all requirements (PHP 7.4+, 256 MB memory, 120 s execution time).
- Install and activate the plugin.
- Confirm all 7 database tables were created.
- Enter OpenAI API key and test with a sample text session.
- Configure at least one coach with a personality prompt.
- Create and upload
assistants.jsonwith valid OpenAI Assistant ID(s). - Add the
[ai_coach]shortcode to a client-facing page. - Test with a real user account at each membership level.
- Enable ElevenLabs voice and test audio generation.
- Enable diagram generation and test with a video submission.
After PHP File Deployment
- Run
php -lon all modified PHP files to check syntax. - Clear SiteGround OPcache via Site Tools → Speed → Caching.
- Test the affected functionality end-to-end.
After JS File Deployment
- Run
node --checkon modified JS files (inline script blocks). - Verify file checksums match expected values (see Installation section).
- Clear browser cache and perform a hard reload (Ctrl+Shift+R).
- Check browser console for JavaScript errors.
- Test the specific JS functionality changed.
Never deploy to production without testing on a staging environment first. The plugin modifies critical client-facing functionality — a broken deployment affects all active clients.