{
  "objectives": {
    "return3d": {
      "metric": "retention",
      "event": "session_started",
      "unit": "user",
      "anchor": "event",
      "anchorEvent": "cart_updated",
      "fromSeconds": 86400,
      "untilSeconds": 259200
    },
    "revenue3d": {
      "metric": "revenue_per_user",
      "event": "purchase",
      "value": "amountMinor",
      "currency": "EUR",
      "unit": "user",
      "anchor": "event",
      "anchorEvent": "cart_updated",
      "untilSeconds": 259200
    }
  },
  "decisions": {
    "return_nudge": {
      "mode": "action",
      "trigger": {
        "event": "cart_updated",
        "delaySeconds": 86400,
        "cancelOn": [
          "purchase"
        ]
      },
      "eligibility": {
        "quietHours": {
          "from": "21:00",
          "until": "09:00",
          "timezone": "user"
        },
        "frequency": {
          "maximum": 2,
          "windowSeconds": 604800
        }
      },
      "actions": {
        "none": {
          "channel": "none"
        },
        "email_now": {
          "channel": "email",
          "template": "come_back",
          "delaySeconds": 0
        },
        "push_later": {
          "channel": "push",
          "template": "continue",
          "delaySeconds": 21600
        },
        "in_app_next_session": {
          "channel": "in_app",
          "template": "pick_up_where_you_left_off",
          "delaySeconds": 0,
          "delivery": "next_session"
        }
      },
      "optimize": {
        "return3d": 2,
        "revenue3d": {
          "weight": 1,
          "target": 10000
        }
      }
    }
  }
}
