Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journey AI Fatigue and Score schemas #492

Merged
merged 11 commits into from
Sep 14, 2018
43 changes: 43 additions & 0 deletions extensions/adobe/experience/campaign/journeyaifatigue.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/campaign/journeyaifatigue",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Journey AI Fatigue",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while this is part of an Adobe extension - is the naming here too product and use specific?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will change the title to be less specific about Journey AI. Should I have to change the id ( journeyaifatigue ) as well?

"type": "object",
"description": "Journey AI fatigue score and level",
"definitions": {
"journeyaifatigue": {
"properties": {
"xdm:fatigueScore": {
"title": "Fatigue Score",
"description": "Fatigue score for the profile",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1
},
"xdm:fatigueLevel": {
"title": "Fatigue Level",
"description":
"Classification of profile into different buckets, based on fatigue score",
"type": "string",
"enum": ["low", "medium", "high"],
"meta:enum": {
"low": "Low",
"medium": "Medium",
"high": "High"
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/journeyaifatigue"
}
]
}
51 changes: 51 additions & 0 deletions extensions/adobe/experience/campaign/journeyaiscores.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"meta:license": [
"Copyright 2018 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/campaign/journeyaiscores",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Journey AI Scores",
"type": "object",
"description": "Journey AI scores for one channel",
"definitions": {
"journeyaiscores": {
"properties": {
"xdm:fatigue": {
"title": "Fatigue",
"description": "Fatigue score for the profile",
"$ref": "https://ns.adobe.com/experience/campaign/journeyaifatigue"
},
"xdm:openScoresBySendHourForWeek": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will customers understand this, because I do not.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just wanted to add some context about the scores ( that they for a week, 24x7 scores ). I think title and description can be used for that, and I will rename the fields as openScores and clickScores

"title": "Open Scores by send hour for week",
"description":
"Probability/score to open a message, assuming we send a message at that hour",
"type": "array",
"minItems": 168,
"maxItems": 168,
"items": {
"type": "number"
}
},
"xdm:clickScoresBySendHourForWeek": {
"title": "Click Scores by send hour for week",
"description":
"Probability/score to click on a link in the message, assuming we send a message at that hour",
"type": "array",
"minItems": 168,
"maxItems": 168,
"items": {
"type": "number"
}
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/journeyaiscores"
}
]
}