-
Params example for state types: IN_LIST
and IN_ALL
{
"forward": 2
}
-
Params example for state type: IN_FILTER
Options:
- cond: indicates the field and the operation to check, dateTrunc and datePart both cannot be sent
- forward: indicates the id of the next journey state if condition is applied
If field is date type, to check with today, follow birthday example.
Operators:
- lt -> lower than
- gt -> greater than
- eq -> equal to
- gte -> greater or equal to
- lte -> less or equal to
- neq -> not equal to
{
"cond": {
"age" : {
"gt": 30
},
"birthday": {
"useActualDate": {
"active": true,
"offset": "PT0S",
"operator": "eq"
},
"datePart": [
"day",
"month"
]}
},
},
"forward": 2
}
-
Params example for state type: IN_CUSTOM_EVENT
{
"eventName": "test_event",
"forward": 2
}
-
Params example for state type ACTION_PUSH_SEND
Options:
- action: indicates the action to do, in the example send a push
- forward: indicates the id of the next journey state
{
"action": {
"campaignId" : 1
},
"forward": 3
}
-
Params example for state type FLOW_PUSH_CLICK
Notes
- timeout.time: formatted with ISO_8601 Time_intervals
{
"click": {
"campaignId": 1,
"forward": 5
},
"timeout": {
"time": "P5D",
"forward": 4
}
}
-
Params example for state type FLOW_SMS
Notes
- timeout.time: formatted with ISO_8601 Time_intervals
{
"click": [
"url": "google.es",
"urlMatchMode": "CONTAINS",
"forward": 5
],
"timeout": {
"time": "P5D",
"forward": 4
}
}
-
Params example for state type FLOW_FILTER
Notes
- Conditions (
cond
) has the same format as the one used in the IN_FILTER state
- If field is date type, to check with today, follow birthday example.
{
"filter": [
{
"cond": {
"age": {
"gt": 30
},
"hair": {
"eq": "bold"
}
},
"forward": 5
},
{
"cond": {
"birthday": {
"useActualDate": {
"active": true,
"offset": "PT0S",
"operator": "eq"
},
"datePart": [
"day",
"month"
]}
},
"hair": {
"eq": "long hair"
}
},
"forward": 8
},
]
}
-
Params example for state type FLOW_RANDOM
Notes
- weight: Optional parameter. If not indicated, the customers for each branch will be distributed proportionally.
{
"random":[
{
"forward":5,
"weight":0.2
},
{
"forward":6,
"weigth":0.8
}
]
}
-
Params example for state type FLOW_CUSTOM_EVENT
{
"customEvent": {
"eventName": "test_event_name",
"forward": 5,
},
"timeout" : {
"time" : "P5D",
"forward": 4,
}
}
-
Params example for state type FLOW_BEST_PATH
{
"mode": "BEST_CHANNEL|BEST_OPTION|TEST_AB"
"path": [
{
"forward": 5
},
{
"forward": 6
}
]
}
- timeout.time: formatted with ISO_8601 Time_intervals
{
"sent": [
forward: 5,
],
"timeout": {
"time": "P5D",
"forward": 4
}
}