Skip to content

Gami API

Gami API is a backend service that provides the gamification layer for GamiBot. It enhances Learning Management Systems like Moodle with conversational gamification features, enabling users to earn XP and badges through course interactions.


Key Features

Conversational Modes

The API supports three interaction modes:

ModeDescription
ClarifyAsk questions about topics
QuizTake quizzes to test knowledge and earn XP
SummarizeGet summaries of course topics

Gamification System

XP Tracking

Users earn XP based on their quiz performance:

Quiz ScoreXP Earned
0-200 XP
21-405 XP
41-6010 XP
61-8015 XP
81-10020 XP

Topic Progress

Quiz performance also advances topic progress:

  • 61-80 Score: +20% progress
  • 81-100 Score: +40% progress
  • Topics marked Completed at 100%

Badges

Automated badges reward various achievements:

BadgeConditionLevels
Sabes tudoQuiz Score ≥ 901x, 3x, 7x
Diamante brutoQuiz Score 60-891x, 3x, 7x
AcumuladorTotal Course XP100, 200, 300 XP
Corta palavrasSummarize conversations3, 7, 11
QuizzólogoQuiz conversations3, 7, 11
Analista de matériaClarify conversations3, 7, 11
Sempre na conversaTotal conversations5, 10, 20

User Statistics

For each course enrollment, the system tracks:

  • Total XP - Sum of all XP earned
  • Badges - List of badges and current progress
  • Topic Completions - Progress % for each topic
  • Engagement Stats - Conversation counts by mode and time spent

Next Steps

Released under the MIT License.