AI Prompt Reflection Component
The AI Prompt Reflection component is a powerful tool that helps learners engage with AI assistants like ChatGPT and Claude to deepen their understanding of course content.Features
- Context-Aware: Automatically captures page context and content
- Multi-AI Support: Works with both ChatGPT and Claude
- Customizable Questions: Pre-configured reflection questions
- Easy Integration: Simple component that can be embedded anywhere
Usage
Customization Options
cardTitle: Title displayed on the cardquestion: The reflection question to ask the AIchatgptButtonText: Text for the ChatGPT buttonclaudeButtonText: Text for the Claude buttonclassName: Additional CSS classescontext: Custom context instead of auto-detected page content
How It Works
- Context Detection: Automatically extracts page title and content
- Prompt Generation: Creates a comprehensive prompt with context
- AI Integration: Opens the selected AI tool with the generated prompt
- Fallback Support: Provides clipboard copy if direct opening fails
Best Practice: Use this component at the end of lessons to encourage
learners to reflect on the material and explore practical applications with AI
assistance.
