Data stores
Data Stores can be used to store any kind of data related to your engagement strategy that doesn't fit elsewhere. The data can be in any format, but it's most commonly used to store JSON data.
Data stores can be edited manually through the administration panel or accessed and edited through the APIs, making them ideal for storing user preferences or other engagement-related data.
Introduction
Data stores serve as flexible containers for storing structured data that can enhance your gamification strategy. They provide a powerful way to extend Mambo's core functionality with custom logic and data structures.
Important fields
There are several key fields for data stores which are important to understand:
- Type: Used to group related data stores. The type can be used to retrieve all related data stores via the APIs and to filter the table of data stores.
- Owned By: Indicates the user who owns the data store (if any). This is useful when creating data stores associated with specific users, such as in the duels and challenges example.
- Associated Users: Allows you to link multiple users to the data store. This is useful when creating data stores associated with a group of users, such as participants in a challenge.
- Time stamp: Defines a time stamp for the data store. This is particularly useful when you want to fetch data stores sorted by time.
Use cases
Data stores can be used to implement a variety of engagement mechanics. Here are some common use cases:
- Spin the wheel and treasure chest - Create chance-based reward mini-games
- User duels and challenges - Set up competitions between users
- Quizzes - Create knowledge tests with rewards
Each of these implementations uses data stores in conjunction with other Mambo features to create engaging experiences for your users.