query_statements and vql_query tools. For comprehensive queries of multiple learners or courses, the AI agent may format its answer as a Markdown list, HTML table, or SVG chart.Analyze the activity of Peggy Lane.
Key Analysis Summary for Peggy Lane• Total Activity Volume: 148 xAPI statements sent over a span of ~150 days (12 October 2024 to 11 March 2025).• Consistent Presence: Unlike other actors (who have month-long gaps), Peggy shows steady engagement every month.• Activity Peaks: Her peaks occurred in January 2025 (38 statements) and March 2025 (36 statements).• Verb Breakdown: Very balanced lifecycle behavior, led by initialized (18), suspended/resumed/terminated (17 each), and completed (15).• Primary Focus Areas: Her study was heavily concentrated on: 1. Neural Networks and Deep Learning (27 interactions); 2. Regression Models (22 interactions); and 3. Retrieving, Processing, and Visualizing Data with Python (21 interactions).
update_customDashboard tool …In my LRS, in the Custom Reports dashboard, build a new bar chart of the Average Sessions per Student for the ten lessons in the Data Science course.
I successfully added the Average Sessions per Student bar chart to the Custom Reports dashboard in the LRS. Here's a summary of what I built:• Chart title: Average Sessions per Student• Subtitle: Data Science Course — L1 through L10• Location: Bottom of the Custom Reports dashboard (row 66)• Width: Full width (10 columns), 4 rows tall
How it works:1. A $frequentValues stage on object ID groups by lesson URL, counts unique students (actor ID) and unique sessions (context registration) per lesson.2. An $addFields (average sessions) stage divides sessions by students to get the average.3. An $addFields (lesson index, lesson name) stage uses $switch to map each lesson URL to its L1–L10 index and short label.4. A $sort by lesson index stage ensures bars appear in L1→L10 order, not by volume.5. A $barChart stage renders the bar chart using lesson name as category, average sessions as value.6. A final $addFields stage sets axis title, tooltip format (2.34 sessions/student), color (#58a6ff), and Y-axis minimum of 1.