Moodle Plugins directory: AI tools for teachers - prompt generator | Moodle.org
AI tools for teachers - prompt generator
Empower your teachers with a dedicated, course-aware AI prompt builder! The AI for Teachers block allows educators to quickly generate highly structured, context-rich instructional prompts directly within their Moodle courses without needing to be "prompt engineers."
By connecting directly to your course data, the builder eliminates the need to manually type out redundant details. Teachers can use intuitive "Browse" buttons to instantly pull in course sections, learning competencies, and gradebook outcomes. The result? Highly accurate, ready-to-use prompts for creating lesson plans, quizzes, rubrics, and student activities.
✨ Key Features
- Course-Aware Context: The builder automatically prefills the subject name and provides "Browse" modals to seamlessly insert your specific Moodle course sections, activities, learning plan competencies, and gradebook outcomes.
- Real-Time Generation: As you select options or type (Student age, Class type, Audience, Language, etc.), the prompt updates instantly and natively.
- Multi-Provider AI Integration: Connect your institution's preferred AI provider to seamlessly send prompts and receive responses without ever leaving Moodle. Currently supports:
- OpenAI (ChatGPT)
- Google Gemini
- Anthropic Claude
- DeepSeek
- Custom OpenAI-compatible API (Any provider using the OpenAI standard!)
- Ollama (Run local models on your own server for total data privacy!)
- Quick Templates: Admins can define custom JSON-based prompt templates with placeholders (like {topic}, {audience}) for one-click highly specialized generation.
- Advanced Response Viewer: AI responses are returned in a beautifully formatted modal with 4 distinct view modes: Rich HTML (rendered), Text, Raw Markdown, and HTML Code.
- Smart "Copy" functionality: One-click copy preserves Rich Text formatting (like bullet points, bold text, and headers) so it pastes perfectly into Microsoft Word, Google Docs, or your Moodle text editor.
- Teacher-Only Access: Safely restricted to users with editing capabilities (editing teachers and managers by default)—students cannot access the block.
Custom Templates (JSON)
You can define your own prompt templates that appear in the dropdown menu. Use placeholders like {subject}, {topic}, {lesson}, {audience}, {outcomes}.
Example 1: Simple JSON
[
{
"title": "Glossary",
"prompt": "Create a list of 10 key terms for {subject}, topic: {topic}. Audience: {audience}."
},
{
"title": "Quick Quiz",
"prompt": "Create a multiple choice quiz (5 questions) for these outcomes: {outcomes}."
}
]
Example 2: Complex JSON (Pedagogical Plan)
Use \\n for new lines.
[
{
"title": "Detailed Lesson Plan",
"prompt": "Write a 5E lesson plan for {subject}.\\n\\nTopic: {topic}\\nOutcomes: {outcomes}"
}
]
Prilagođeni šabloni (JSON) - Srpski
Možete definisati sopstvene šablone koji se pojavljuju u padajućem meniju. Koristite placeholder-e kao što su {subject}, {topic}, {lesson}, {audience}, {outcomes}.
Primer 1: Jednostavan JSON (Kopiraj ovo za testiranje)
Ovo uvodi tri nova šablona u padajući meni: Listu pojmova, Brzi kviz i Osnovu za debatu.
[
{
"title": "Glosar pojmova",
"prompt": "Kreiraj listu od 10 ključnih pojmova i njihovih definicija za predmet {subject}, a konkretno za temu: {topic}. Objašnjenja moraju biti prilagođena uzrastu: {audience}."
},
{
"title": "Brzi test (Multiple Choice)",
"prompt": "Napravi kratak test višestrukog izbora (5 pitanja, svako sa 4 ponuđena odgovora i označenim tačnim rešenjem) koji pokriva sledeće ishode učenja: {outcomes}."
},
{
"title": "Tema za debatu",
"prompt": "Na osnovu lekcije '{lesson}', osmisli jednu provokativnu tvrdnju za debatu u učionici. Napiši po tri jake teze 'ZA' i tri teze 'PROTIV'."
}
]
💡 Primer 2: Napredni, kompleksni JSON (Kompletan pedagoški plan)
U ovom primeru prikazujemo kako se koristi \\n za pravljenje novih redova unutar prompta kako bi instruisali AI da napravi kompleksniji dokument.
[
{
"title": "Detaljan plan časa (5ES model)",
"prompt": "Kao stručnjak za metodiku nastave, napiši detaljan plan časa za predmet {subject} koristeći 5E model (Engage, Explore, Explain, Elaborate, Evaluate).\\n\\nTema: {topic}\\nLekcija: {lesson}\\nUzrast: {audience}\\nCiljevi: {outcomes}\\nTip časa: {style}\\nJezik za generisanje: {language}\\n\\nPlan treba da sadrži vremensku raspodelu za čas od 45 minuta i konkretne instrukcije za svaku od 5E faza."
},
{
"title": "Diferencirani zadaci (3 nivoa težine)",
"prompt": "Kreiraj set vežbanja za temu '{topic}' (Lekcija: {lesson}), dizajniran za uzrast '{audience}'.\\nZahtevam 3 zadatka:\\n1. Osnovni nivo (reprodukcija znanja)\\n2. Srednji nivo (primena na novom primeru)\\n3. Napredni nivo (kritičko razmišljanje ili kreiranje nečeg novog)\\n\\nFokusiraj se pre svega na ostvarivanje ovog ishoda: {outcomes}"
}
]
Šta se dešava u praksi?
Ako administrator kopira ovaj drugi primer u polje Predefined templates (JSON) i sačuva postavke, nastavnik će videti "Detaljan plan časa (5ES model)" u dropdown-u.
Ako nastavnik prethodno unese "Biologija" u polje Predmet i klikne na ovaj šablon, textarea za prompt će se trenutno osvežiti i {subject} će zameniti rečju "Biologija". Nastavnik onda samo pritisne "Send to AI" – štedeći sebi kucanje složenih struktura!
🔗 Pair it with our TinyMCE Editor Plugin!
Are you looking for a quick AI shortcut directly inside your Moodle text editor for on-the-fly content generation?
Be sure to check out our companion plugin: Tiny AI Prompt Generator! It brings powerful AI capabilities directly into the standard Moodle TinyMCE toolbar.
⚙️ Setup & Configuration
- Install the plugin from the Moodle plugins directory or place the folder in
blocks/aipromptgen. - Add the block to any course page or the Teacher Dashboard.
- Optional: To enable the "Send to AI" functionality, enter your API keys (or your local Ollama endpoint) by navigating to Site administration → Plugins → Blocks → AI for Teachers.
The plugin is a product of Erasmus project:
KA220-VET - Cooperation partnerships in vocational education and training
Project Title: AI tools for VET schools
© 2025 AI4Teachers | Boban Blagojević
Comments