To Targeted audience

We will provide a SDK to allow admin to add properties to each respondent data.

Here is the way we are storing the data

{
    "appID":"699115713490740",
    "respondentID":"1276358755731356",
    "surveysTaken":[],
    "attribute": {
        "first_name":"John",
        "last_name":"Doe"
    },
    "tag": {
        "favorite_brands":[
            "Nike", "Adidas"
        ]
    },
    "event": {
        "dollar_spent":201,
        "signup":"2017-10-30T17:22:44.598+0000"
    }
}

I want to be able to send message according to attribute:

"attribute" is || is not || XXX

When a new task will be created I will add some information relative to the tag, event and attribute.

"filters":{
    "list":[
       {"filter":"attribute", "name":"first_name", "type": "string"}
    ],
    "respondents" : ["userID"],
    "answeredQuestions" : [
        {
            "question":"Question Value",
            "answer":"answer value"
        }
    ],
    "surveysTaken" : [ ],
    "facebookUserData":{
        "gender":"male"
    },
    "attribute":{
        "first_name":{
            "operator": "=",
            "value": "John"
        },
        "age":{
            "operator":">",
            "value":12
        }
    },
    "tag":{
        "favorite_brands":{
            "operator":"OR",
            "value":["Nike", "Puma"]
        }
    },
    "event": {
        "signup":{
            "operator":"<",
            "value":"2017-10-30T18:22:44.598+0000"
        },
        "dollar_spent":{
            "operator":"=",
            "value":201
        }
    }

}

Details for the tag filter

Tag permet de stocker des listes pour un user à la manières de tag sur des sites de e-commerce.

Operator Meaning
OR Contains any of "$value"
AND Contains all of "$value"
NOR Does not contains some of "$value"
NAND Does not contains all of "$value"

Details for the event filter

Event permet de stocker les derniers événements. d'incrémenter des variables, ...

Operator
< is less than (or anterior to if date) "$value"
= is equal to "$value"
> is greater than "$value"

Details for the attribute filter

Attribute est une variable qui est censée est figé pour l'utilisateur.

Operator
= Equal to
<> Different of
> > to (only for number)
< < to (only for number)
isDefined is defined
isNotDefined is not defined

I will create the front in order to create this new kind of task.

results matching ""

    No results matching ""