Skip to content

Core Features

SlideMind connects your e-learning modules to AI through two integration methods. Which one is used depends on the slide’s widget mode.

Every slide is configured with one of three modes:

ModeBehaviorIntegration methodUse case
Q&A (default)Single-turn: the learner sends one message and gets one response.JavaScript codeQuick feedback, quiz evaluation, one-off explanations
ChatMulti-turn conversation. Messages accumulate in a scrollable history.HTML WidgetTutoring sessions, guided exploration, Socratic dialogue
CaptureNo AI involved. Saves e-learning variables to learner memory silently.JavaScript codeCollecting learner data for use in later slides

Note: Capture mode requires a Pro or Agency plan.

In Q&A and Capture modes, SlideMind generates JavaScript code that you paste directly into your e-learning editor (Storyline trigger, Captivate action, etc.). The learner interacts with the editor’s own interface — SlideMind runs in the background.

How it works:

  1. The learner types in a text entry field in your e-learning module (e.g. a Storyline text entry bound to a userMessage variable).
  2. A trigger runs the SlideMind JavaScript code, which reads the variable, sends it to the SlideMind REST API on your WordPress server, and writes the AI response back to an editor variable (e.g. aiResponse).
  3. The e-learning module displays the response using its own text box.

The learner never sees an iframe, a widget, or anything outside the e-learning module. You have full control over the visual design.

For details on each authoring tool’s syntax and setup steps, see the Authoring Tool Guides.

For multi-turn conversations, SlideMind provides an HTML Widget — an HTML page hosted on your WordPress site, embedded as an iframe or web object in your e-learning module. The widget has its own conversation UI because e-learning editors can’t manage a scrollable message history natively.

The HTML Widget is required for Chat mode, and optionally available for Q&A mode if you prefer its built-in UI over designing your own in the editor.

  • Header — Displays the slide title (or a custom title). In Chat mode, a reset button lets the learner start over. The header can be hidden entirely via appearance settings.
  • Message area — User messages appear on the right (in the primary color), AI responses on the left. Errors are centered in red.
  • Typing indicator — An animated three-dot indicator appears while waiting for the AI response.
  • Input field — Auto-resizing textarea. Press Enter to send, Shift+Enter for a new line.
  • Themes — Light (default) and dark themes. Fully styled with CSS variables (--sm-*). Supports prefers-reduced-motion.
  • Appearance customization — Colors (accent, AI bubble, AI text), border radius, header visibility, and title are all customizable per slide or globally in Settings. A Customize widget button in the Integration Code card opens a modal with live preview.

When a slide uses Chat mode, you can configure:

OptionDescriptionDefault
Turn limitMaximum number of exchanges before the conversation closes. Set to 0 for unlimited.5
Closing messageText displayed when the turn limit is reached (e.g. “Thank you for this exchange!”).
Graceful closeWhen enabled, an instruction is injected into the system prompt on the last turn, asking the AI to naturally wrap up the conversation. A subtle banner (instead of an AI bubble) marks the end.Off

A cost projection below these options estimates the total cost of a full conversation based on the selected model’s pricing and the turn limit.

Enabled via SlideMind > Settings > Advanced > Widget consent. When active, an overlay appears before the learner can interact:

  • An information message explaining that messages will be sent to an AI provider
  • A “I understand, continue” button
  • Once accepted, the conversation becomes accessible

Useful for GDPR/Loi 25 compliance. You can disable it if your site already manages consent globally.

The widget URL accepts several parameters for customization:

ParameterDescriptionDefaultExample
sm_widgetActivates widget rendering (required)1
configSlide configuration ID (required)abc123
themeVisual themelightdark
colorAccent color — header, buttons, user bubbles (URL-encoded hex)#4f46e5%234f46e5
ai_colorAI bubble background color (URL-encoded hex)#f1f5f9 (light) / #1e293b (dark)%23e2e8f0
ai_text_colorAI bubble text color (URL-encoded hex)#1e293b (light) / #e2e8f0 (dark)%23334155
titleHeader titleSlide titleMy+Chat
headerShow or hide the header10
radiusBorder radius in pixels for bubbles and input128
sm_userLearner WordPress user ID (for memory features)042

All appearance parameters follow a cascade: URL parameter > slide-level override > global Settings default > hardcoded fallback. You can set defaults in SlideMind > Settings > Defaults, override per slide via the Customize widget button, and further override via URL parameters.

Example URL:

https://yoursite.com/?sm_widget=1&config=abc123&theme=dark&color=%23e11d48&title=Roleplay&header=0

The Sandbox is a testing environment where you can try your configurations live, see exactly what the AI receives, and debug issues — without affecting your published slides.

Go to SlideMind > Sandbox to access it.

Load an existing slide configuration and test it:

  1. Select a slide from the dropdown.
  2. The system prompt, model, temperature, max tokens, and variables are auto-filled from the saved configuration.
  3. Modify any value for testing — changes stay in the Sandbox and are not saved to the database.
  4. Type a test message and send it.

A collapsible prompt reference shows the full system prompt for quick review.

Build a configuration from scratch:

  1. Write a system prompt directly.
  2. Select a model from the dropdown.
  3. Add variables manually in the dynamic variable table (add/remove rows).
  4. Variables are auto-detected from {{placeholders}} in the prompt.

In this mode, the conversation history persists (stored as a WordPress transient for 24 hours, per user). You can test multi-turn interactions this way.

After each request, the debug panel shows:

FieldDescription
Original promptThe raw system prompt with {{variable}} placeholders
Rendered promptThe final prompt with all variables injected
Variables foundVariables detected in the prompt
Variables usedVariables that were successfully resolved
Variables missingVariables in the prompt that had no value
TokensPrompt tokens + completion tokens + total
Estimated costBased on the model’s pricing
Response timeIn milliseconds

Click any {{variable}} tag in the debug panel to see its resolved value in a modal.

  • AI prompt generation — The “Generate with AI” button works here too, so you can draft prompts without leaving the Sandbox.
  • Export configuration — Download the current Sandbox state as a JSON file.
  • Session management — The conversation persists for 24 hours. Sessions are cleaned up on logout.

Send the same prompt to 2-3 models simultaneously and compare them side by side.

AspectDetails
ModelsUp to 3 models in parallel
MetricsResponse quality, tokens used, cost, response time
ExportResults exportable as JSON

Compare cost, speed, and response quality in a single test to pick the right model for your use case.


Templates are reusable prompt configurations that save time when creating slides. Instead of writing a system prompt from scratch every time, pick a template and customize it.

Go to SlideMind > Templates to manage them.

SlideMind ships with 6 built-in templates, organized by widget mode:

Q&A mode (single-turn):

TemplateSlugDescription
Quiz FeedbackquizPersonalized, constructive feedback on quiz answers
Open Question Feedbackopen-questionShort, personalized feedback on a free-text response
Formative Evaluationformative-evalEvaluates knowledge and returns a score, feedback, and verdict

Chat mode (multi-turn):

TemplateSlugDefault turnsDescription
Socratic Tutorsocratic8Guides the learner through open-ended questions rather than giving answers directly
Roleplayroleplay10Interactive scenario simulations and role-based practice
Guided Explorationguided-exploration12Guides the learner through a topic via a structured conversation

Each template is tied to a widget mode. In the Wizard, only templates matching the selected mode (Q&A or Chat) are shown.

Default templates cannot be deleted, but they can be edited. Use the Reset button to restore a default template to its original state.

Click Add Template and fill in:

FieldDescription
TitleA descriptive name
SlugURL-friendly identifier (auto-generated from the title if left blank)
IconAn emoji (selected via emoji picker)
DescriptionWhat this template does — shown as a tooltip in the Wizard
System promptThe reusable prompt, with {{variable}} placeholders
VariablesAuto-detected from the prompt
TemperatureSuggested temperature for this template
Max tokensSuggested max tokens

Mark up to 6 templates as favorites by clicking the star icon. All 6 default templates are favorited out of the box. Favorites get special treatment in the Wizard:

  • Favorites are displayed as clickable cards with their emoji, title, and description.
  • Non-favorites appear in a dropdown labeled “Other templates”.
  • If no favorites are set, all templates are shown as cards (backward-compatible).
  • Only templates matching the current widget mode (Q&A or Chat) are displayed.

Manage favorites in the template list or in SlideMind > Settings.

Share templates between sites or with other users:

  • Export — Downloads the template as a JSON file (format version sm_template_version: 1.1).
  • Import — Upload a JSON file. The schema is validated before creating the template.

Template JSON format:

{
"sm_template_version": "1.1",
"name": "My Template",
"slug": "my-template",
"description": "What this template does",
"icon": "🎓",
"interaction_type": "socratic",
"system_prompt": "You are a tutor helping {{learner_name}} learn about {{topic}}...",
"temperature": 0.7,
"max_tokens": 1024,
"variables": ["learner_name", "topic"]
}

After creating a slide configuration, the code generator produces ready-to-paste integration code for your e-learning editor.

The code generator appears in three places:

  1. Slide list page — Click the copy button on any slide row to copy the integration code directly.
  2. Slide edit page — In the “Integration code” card on the right sidebar.
  3. Wizard step 4 — After creating a configuration, the integration code is shown in the review.
  1. Select your authoring tool — Storyline, Captivate, Lectora, DominKnow, iSpring, or HTML Widget (iframe).
  2. Copy the code — Click the copy button. The code is ready to paste.
  3. Paste in your authoring tool — Follow the tool-specific instructions (see the Authoring Tool Guides).

The generated code is a short bootstrap snippet (~12 lines) that dynamically loads the SlideMind runtime (sm-slide.js) from your WordPress server. The runtime is an external JavaScript file that handles learner identification, memory management, API calls, and editor variable read/write.

var s = document.createElement('script');
s.src = 'https://yoursite.com/.../sm-slide.js?v=0.5.1';
s.onload = function() {
SlideMind.run({
configId: "abc123",
baseUrl: "https://yoursite.com/wp-json/slidemind/v2/",
mode: "qa",
editor: "storyline",
inputVar: "userMessage",
outputVar: "aiResponse"
});
};
document.head.appendChild(s);

The sm-slide.js runtime handles:

  • Learner identification — Automatic cascade: sm_user URL param > SCORM 2004 > SCORM 1.2 > xAPI actor > anonymous session (UUID in localStorage).
  • MemorySM_Memory.save() and SM_Memory.load() singleton, initialized automatically.
  • Chat request — XHR POST to /wp-json/slidemind/v2/chat with message, variables, and learner identity. Handles both plain text and structured JSON responses.
  • Editor adapters — Runtime variable read/write for each authoring tool (Storyline, Captivate, Lectora, DominKnow, iSpring).
  • Captivate polling — Automatic retry until cpAPIInterface is available (up to 10 seconds).
ModeGenerated code
Q&ABootstrap snippet that loads sm-slide.js with mode: "qa". Reads the input variable, sends to API, writes the response variable (and any return variables).
ChatAlways generates an HTML Widget embed (iframe), regardless of the selected editor. Multi-turn conversations require the widget’s built-in UI.
CaptureBootstrap snippet with mode: "capture". Saves the listed memoryVars to learner memory. No AI request. The HTML Widget option is disabled because the iframe can’t access the editor’s variables (see why).

The code generator lets you customize:

  • Editor — Which e-learning tool you’re using (determines the runtime adapter used by sm-slide.js)
  • Variable mapping — The names of the editor variables for input and response. SlideMind auto-generates unique names per slide (e.g. userMsg_s3_quizFeedback, aiResp_s3_quizFeedback) to avoid conflicts when a project contains multiple slides. You can rename them in the slide edit page; a warning appears if a name is already used by another slide in the same course.
  • Widget appearance — Click the Customize widget button (below the copy button) to open the appearance modal with live preview. Settings are saved per slide and injected into the generated widget URL. See URL parameters for the full list of customizable properties.

For details on each authoring tool’s syntax and setup steps, see the Authoring Tool Guides.


The Wizard is a guided 4-step process for creating a new slide configuration. Non-technical users can follow it step by step; experienced users can move through it quickly.

Go to SlideMind > Add to launch the Wizard.

The Wizard is covered in detail in the Getting Started guide. Below is a summary of each step.

Set up where the slide lives (course, module) and how it behaves (Q&A, Chat, or Capture).

  • Select an existing course and module from the dropdowns, or leave them empty to create an independent slide.
  • The mode selector uses radio cards with icons and descriptions for clarity.

Choose the LLM model, temperature, and max tokens.

  • Skipped automatically in Capture mode.
  • Models are grouped by provider (Anthropic, OpenAI, Google, Meta, etc.) with estimated cost per interaction.
  • Pre-filled from your defaults in SlideMind > Settings.

Write or generate the system prompt.

  • Template selector — Pick a template to start from. Only templates matching the selected mode (Q&A or Chat) are shown. Favorites appear as cards, others in a dropdown.
  • Variable bar — Clickable variable tags (system variables in blue, custom in green). Click to insert.
  • @mention autocompletion — Type @ in the prompt editor for variable suggestions (powered by Tribute.js).
  • Generate with AI — Opens a modal where you describe your pedagogical objectives, and an AI drafts the system prompt for you.

Response example — An optional field where you provide a concrete example of a good AI response. This helps the AI match the desired format, tone, and detail level. See Response Example.

Mode-specific sections:

  • Chat — Turn limit, closing message, graceful close toggle, cumulative cost projection.
  • Q&A — Return variables (name + type: text, number, boolean, enum).
  • Capture — Variable definitions (memory key, scope, editor variable name) instead of the prompt editor.

Advanced options (collapsible, all modes):

  • Auto-save exchange (Q&A/Chat) — Save the learner’s input and/or the AI response to memory. See Auto-save exchange.
  • Capture variables (Q&A/Chat) — Capture e-learning editor variables to memory alongside the AI interaction.
  • Internal notes — Admin-only notes, never sent to the AI.

Review the complete configuration and test it live before saving.

  • Summary — Full configuration at a glance.
  • Prompt preview — Rendered prompt with test variable values (Q&A/Chat).
  • Capture summary — Variables to be captured (Capture).
  • Test — Send a test message to the AI with debug info (Q&A/Chat).
  • Create — Save the configuration and go to the slide edit page.

Let an AI draft your system prompt based on your pedagogical objectives. This is useful when you’re not sure how to phrase instructions for the AI.

  • Wizard step 3 — “Generate with AI” button below the prompt editor
  • Slide edit page — Same button in the prompt section
  • Sandbox — Available in conversation mode

Click Generate with AI to open the generation modal. Fill in the fields:

FieldMax lengthExample
Interaction type100 chars”Socratic tutor”
Subject200 chars”Non-violent communication”
Learning objective300 chars”Identify the 4 steps of NVC”
Tone100 chars”Warm and encouraging”
Learner level50 chars”Beginner”
AI modelDropdown (defaults to your settings)
Available variablesMax 50Multi-select from detected variables

Click Generate. The AI produces a complete system prompt using the selected variables, and inserts it into the prompt editor. You can then edit it freely.

Prompt generation is limited to 10 requests per minute per user.


Every slide has an Internal notes field (in the Advanced options section of the Wizard, or directly on the slide edit page). Notes are visible only to administrators — they are never sent to the AI or shown to learners.

Use them for reminders, context about why a slide was configured a certain way, or coordination notes between team members.