A generic, plug-and-play template for creating AI-powered interactive chat simulations for any learning domain - from sales training to technical troubleshooting, customer service to medical consultations.
- Open the Template: Open
index.htmlin your web browser - Choose Scenario: Select from automatically loaded scenarios (Sales, Technical, Customer Service)
- Configure AI (Optional): Enter your AI endpoint and API key for enhanced features
- Start Learning: Begin the interactive simulation with pre-assessment and conversation phases!
interactive-chat-simulation-template/
โโโ index.html # Main template application (auto-loads scenarios)
โโโ README.md # This file
โโโ GETTING_STARTED.md # Quick start guide
โโโ docs/
โ โโโ Interactive_Chat_Simulation_Guide.md # Comprehensive setup guide
โ โโโ Quick_Scenario_Reference.md # Quick reference for creating scenarios
โโโ example_scenarios/
โโโ sales_training.json # Enterprise software sales simulation
โโโ technical_troubleshooting.json # Network troubleshooting lab
โโโ customer_service.json # Customer service training
โโโ network_automation.json # Network automation sales (legacy)
- Any Domain: Sales, technical support, healthcare, education, customer service
- Any Role: Practice conversations from any professional perspective
- Structured Learning: Phase-based progression with clear objectives
- AI-Powered Feedback: Automated analysis and coaching after each phase
- โ
Auto-Loading Scenarios: Automatically loads JSON scenarios from
example_scenarios/ - โ Pre-Assessment: Strategic approach selection before conversations
- โ Phase-Based Conversations: 3-5 structured phases per scenario
- โ AIpersona Interactions: Dynamic AI character responses
- โ AIcoach Feedback: Real-time coaching and performance analysis
- โ Response Limits: Focused interactions (3-5 exchanges per phase)
- โ Progress Tracking: Visual progress indicators
- โ Generic Interface: Works with any scenario type
- Copy one of the files from
example_scenarios/ - Modify the content for your specific use case
- Save in the
example_scenarios/directory - Refresh the page to automatically load your scenario
- Follow the format in
docs/Quick_Scenario_Reference.md - Use the comprehensive guide in
docs/Interactive_Chat_Simulation_Guide.md - Include required
pre_assessmentandai_modenodes - Test thoroughly with your target AI model
- Enterprise Sales: Complex B2B software sales conversations
- Customer Service: Handle difficult customer situations
- Negotiation: Practice deal-making and conflict resolution
- Management: Leadership and team interaction scenarios
- IT Support: Troubleshoot system and network issues
- Software Development: Code reviews and technical discussions
- System Administration: Handle operational challenges
- Engineering: Problem-solving and design conversations
- Patient Consultations: Practice bedside manner and history taking
- Diagnostic Interviews: Symptom assessment and evaluation
- Medical Education: Clinical reasoning and communication
- Emergency Response: High-pressure medical scenarios
- Interview Preparation: Job interview practice
- Language Learning: Conversational practice in target languages
- Presentation Skills: Q&A and audience interaction
- Academic Discussions: Thesis defense and peer review
- OpenAI GPT-3.5/GPT-4: Excellent performance and consistency
- Red Hat Granite: Good for enterprise environments (granite-3-3-8b-instruct)
- Anthropic Claude: Excellent for nuanced conversations
- Local Models: Varies by model - test thoroughly
- Endpoint: OpenAI-compatible API endpoint
- Authentication: API key or bearer token
- Model: Specific model name (e.g., "gpt-3.5-turbo", "granite-3-3-8b-instruct")
- Read
docs/Quick_Scenario_Reference.mdfor immediate scenario creation - Review the example scenarios in
example_scenarios/for inspiration
- Consult
docs/Interactive_Chat_Simulation_Guide.mdfor comprehensive guidance - Learn about AI prompt engineering, success criteria design, and deployment options
- Automatically loads JSON scenarios from
example_scenarios/directory - Normalizes different JSON formats to common structure
- Supports multiple scenario types (sales, technical, customer service, etc.)
- Learners choose strategic approach before conversations
- Choices influence AIpersona behavior throughout the scenario
- Sets context for the learning experience
- Learners progress through structured conversation phases with AIpersona
- AI responds dynamically based on phase-specific prompts and chosen approach
- Response limits keep conversations focused and productive
- AIcoach analyzes learner responses against success criteria
- Provides confidence levels (High/Medium/Low) and specific feedback
- Offers suggestions for improvement and alternative approaches
- Phase-by-phase coaching and analysis
- Final comprehensive performance summary
- Option to retry phases or restart scenarios
- Single HTML file - no server required
- Automatically loads scenarios from JSON files
- Users configure their own AI connections (optional)
- Perfect for individual use or small teams
- Package as SCORM for learning management systems
- Integrate with course gradebooks and completion tracking
- Centralized configuration management
- Custom backend to hide API keys from users
- Centralized scenario library management
- User progress tracking and analytics
- Enhanced security and compliance
- Conversations are sent to configured AI endpoints
- No data is stored locally by the template
- Users control their own AI service connections
- Use enterprise AI endpoints for sensitive training content
- Review AI service privacy policies and data handling
- Consider local AI models for highly confidential scenarios
This template is designed to be extended and customized. Consider:
- Creating Scenario Libraries: Build collections for specific industries or skills
- UI Enhancements: Customize the interface for specific use cases
- Integration Development: Build connectors for popular LMS platforms
- AI Model Optimization: Develop model-specific prompt templates
This template is provided as-is for educational and training purposes. Customize and adapt as needed for your specific use cases.
- Scenarios Not Loading: Check JSON format and ensure files are in
example_scenarios/directory - AI Connection Fails: Verify endpoint URL, API key, and model name
- Responses Too Long: Adjust AI prompts to specify shorter responses
- Inconsistent Character: Add more specific behavioral guidelines to AI prompts
- Poor Analysis Quality: Use lower temperature settings for evaluation responses
- Review the comprehensive guide in
docs/Interactive_Chat_Simulation_Guide.md - Check example scenarios for proper formatting
- Ensure JSON files include required
pre_assessmentandai_modenodes - Test with built-in scenarios first to verify functionality
Ready to create engaging, interactive learning experiences? Open index.html and start with the built-in scenarios, then create your own using the provided examples and documentation!