Wiki source code of KI Chatbot

Last modified by Anna Paul-Hasenfuss on 28.10.2026

Show last authors
1 {{display reference="LMS._Include Library.Allgemeine Infoseiten.Verfügbar mit Release 2026\.11\.x.WebHome"/}}
2
3 {{section}}
4 {{column width="60%"}}
5 [[image:KB_KI Chatbot.png||data-xwiki-image-style="img-icon" height="24" width="24"]] The **AI Chatbot **course module enables you to provide learners with an AI-powered chat assistant within the course itself. Learners can ask questions and receive real-time answers generated by a language model. The chatbot can also work with a set of knowledge resources (PDF materials) that you have provided, ensuring that the answers are based on your content.
6
7 {{gallery}}
8
9 [[image:Kursansicht - Chatbot mit Willkommenstext_de.png]]
10 [[image:Kursansicht - Beispiel Chatverlauf_de.png]]
11 [[image:Kursansicht - Beispiel Chatverlauf2_de.png]]
12 [[image:Kurseitor - Beispiel Konfiguration_de.png]]
13 [[image:Kurseitor - Beispiel Konfiguration2_de.png]]
14
15 {{/gallery}}
16 {{/column}}
17
18 {{column width="30%"}}
19 {{panel title="Content"}}
20 {{toc depth="3" start="2"/}}
21 {{/panel}}
22
23 {{panel title="Related Topics"}}
24 * [[How to assign an AI connection>>doc:LMS.Benutzerhandbuch OPAL.Meine Lernplattform.Meine Einstellungen.KI-Anbindung im Profil hinterlegen.WebHome]]
25 {{/panel}}
26
27
28 {{/column}}
29 {{/section}}
30
31
32
33 **Key functions:**
34
35 * Chatting with an AI language model (various providers/models can be configured)
36 * Answers are generated in real time and can be stopped at any time
37 * Optional: Responding to questions based solely on stored materials (RAG – knowledge index)
38 * Welcome text to greet learners and explain the chatbot’s role
39 * Consent Statement (data protection) before first use
40 * Exportable chat history (TXT, JSON, PDF, Markdown – depending on the installation)
41 * Copyable single questions and answers
42 * Display of token usage and the used model
43
44 **For advanced users:**
45
46 * System prompt to control AI behaviour (e.g. role, tone of voice, restrictions)
47 * Knowledge index derived from PDF materials in the course folder
48 * Management of visibility and access via conditions
49 * Assignment of a personal AI connection (API key), including billing via the key owner
50
51
52
53
54 == Course element view for learners ==
55
56 Once the Consent Statement for the chatbot has been accepted, learners see the chat interface’s home page with the configured welcome text.
57
58 [[image:Kursansicht - Leerer Chat_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
59
60 === What learners can do ===
61
62 * Using the chatbot: asking questions, tracking answers, following up
63 * Exporting the chat history
64 * Copying individual questions and answers
65
66 Further information on these functions is available on the page [[Using the AI Chatbot>>doc:.Workflows.KI Chatbot verwenden.WebHome]].
67
68
69 == Course element view in the course editor ==
70
71 The H5P Content course element is integrated and configured via the course editor. The following sections are available:
72
73 * [[Title and description>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.KI Chatbot.Konfiguration .Titel und Beschreibung.WebHome]]
74 * [[Visibility>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.KI Chatbot.Konfiguration .Sichtbarkeit .WebHome]]
75 * [[Access>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.KI Chatbot.Konfiguration .Zugang .WebHome]]
76 * [[Configuration>>doc:.Konfiguration .Konfiguration.WebHome]]
77 * [[Knowledge and Data>>doc:.Konfiguration .Wissen und Daten.WebHome]]
78 * [[Conditions>>doc:.Konfiguration .Bedingungen.WebHome]]
79 * [[Multilingualism>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.KI Chatbot.Konfiguration .Mehrsprachigkeit .WebHome]]
80
81 [[image:Kurseitor - Leerer KB KI Chatbot_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
82
83
84 === Workflows ===
85
86 The following guides will help you to work with the **AI Chatbot**:
87
88 * [[Assign an AI connection to a profile>>doc:LMS.Benutzerhandbuch OPAL.Meine Lernplattform.Meine Einstellungen.KI-Anbindung im Profil hinterlegen.WebHome]] - setting up an AI connection from an available provider
89 * [[Assign an AI connection to a course element>>doc:.Konfiguration .Konfiguration.WebHome]] - select the connection you have set up and specify a model
90 * [[Add materials>>doc:.Konfiguration .Wissen und Daten.WebHome]] - assign PDF files from the course storage folder or upload new ones and index them
91 * [[Configure a system prompt and welcome text>>doc:.Konfiguration .Konfiguration.WebHome]] - define the AI behaviour and the welcome text
92
93
94
95 === Course element preview ===
96
97 The display of the embedded resource is the same for learners and course owners. If visibility or access restrictions have been applied, a preview is possible via the [[Learner view>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Lernendensicht.WebHome]].
98
99 [[image:Kursansicht - Vorschau in der Lernendensicht_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
100
101 ----
102
103 == Use cases ==
104
105 * **AI-powered learning assistant:** Answering questions about the course content based on a knowledge index drawn from lecture notes and slides.
106 * **Exercise and revision tool:** Learners ask questions on a topic and receive immediate feedback.
107 * **Provision of additional information:** The chatbot supplements the course material with explanations, examples or further details based on stored additional information.
108
109 This section contains examples of use cases for this course element. If you would like to help us by providing a relevant example from your own work experience, please send us an email to [[support@bps-system.de>>mailto:support@bps-system.de]] with the subject line ‘**Practical example for the manual**’ and a few brief details about the use case and the configuration you have chosen.