Last active
February 13, 2022 12:38
-
-
Save cborodescu/a971888ae115b378f755b1e74869f890 to your computer and use it in GitHub Desktop.
REST API for User Intent Graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"user": "user_123", | |
"intents": [ | |
{ | |
"intent-type": "goals", | |
"value": [ | |
{ | |
"name": "product_view", | |
"probability": 0.56 | |
}, | |
{ | |
"name": "add_to_cart", | |
"probability": 0.32 | |
}, | |
{ | |
"name": "transaction", | |
"probability": 0.12 | |
}, | |
{ | |
"name": "cart_abandonment", | |
"probability": 0.42 | |
} | |
] | |
}, | |
{ | |
"intent-type": "metrics", | |
"value": [ | |
{ | |
"name": "next_order_value", | |
"value": 100 | |
}, | |
{ | |
"name": "session_duration", | |
"value": 125 | |
}, | |
{ | |
"name": "cognitive_load", | |
"value": 0.12 | |
} | |
] | |
}, | |
{ | |
"intent-type": "affinities", | |
"value": [ | |
{ | |
"name": "color", | |
"value": "red", | |
"probability": 0.56 | |
}, | |
{ | |
"name": "brand", | |
"value": "adidas", | |
"probability": 0.55 | |
}, | |
{ | |
"name": "category", | |
"value": "shoes", | |
"probability": 0.67 | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment