Rules
Rules are the simplest form of intelligence that the DataSapien Platform provides. Rules are constructed with a condition
using MeData Definitions and an action
to be performed when this condition is met.
Rules are the first intelligence layer built on top of MeData and they are defined and maintained in Orchestrator and evaluated on-edge by the DataSapien Mobile SDK. THe strength of rules lies in their reliability, accuracy and certainty, with zero hallucinations. Fantastic for guiding well defined outcomes and providing guardrails for GenAI.
Rule Condition
A Rule condition is a (possibly nested) logic combination of MeData value assertions. MeData value assertions are exactly same as Segment Definitions: select a MeData Definition, select a value assertion operator (EQUALS; LESS_THEN etc) in accordance with its data type and provide a value.
Different from Segment Definitions that allow creating a single MeData value assertion; Rules allow for using nested logical combination of them. For example:
[
"Gender" EQUALS "Male"]
AND
(
[
"Age" GREATER_THEN 35]
OR
[
"Age" LESS_THAN 18]
)
Rule conditions can use multi-level nested and complex Data value assertions.
Rule Actions
DataSapien Mobile SDK periodically checks and fetches Rules from the backend, similar to the way it performs checks for MeData Definitions.
Rules are evaluated on-edge by the Mobile SDK and when/if their MeData based condition is met, the action specified by the Rule is executed. Action can be:
- Displaying a local notification on user device
- Sending a "Signal" to Orchestrator which allows further processing
- Executing a script with possibility of triggering on-edge intelligence
- Calling host application by invoking registered callback which allows host application to act accordingly