{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "_namespaces": {
      "schema": "https://schema.org/",
      "custom": "https://w3id.org/ixo/yoma/yo-agent/"
    },
    "title": "Yo! Your Life, Your Goals",
    "description": "A short chat about your life, what you are aiming for and what gets in the way. Answer in your own words. There is airtime for you at the end.",
    "showQuestionNumbers": "off",
    "questionErrorLocation": "bottom",
    "showProgressBar": "top",
    "progressBarType": "pages",
    "requiredText": "*",
    "pagePrevText": "Back",
    "pageNextText": "Next",
    "completeText": "Review and send",
    "pages": [
      {
        "name": "welcome",
        "navigationTitle": "Welcome",
        "elements": [
          {
            "type": "html",
            "name": "custom:welcomeIntroText",
            "html": "<h2>Hey, welcome to Yo!</h2><p>We want to hear about <b>you</b>: your days, your goals and what makes things hard.</p><p>Answer in your own words, in any language. There are no right or wrong answers. You can skip any question you are not comfortable with.</p><p>It takes about 10 minutes. When you finish, you check your answers and agree to send them. Then we send you airtime.</p><p>We will never ask for your PIN, password or money.</p>"
          },
          {
            "type": "radiogroup",
            "name": "custom:canStartSurvey",
            "title": "Can I ask you a few questions about your life?",
            "isRequired": true,
            "validators": [
              {
                "type": "expression",
                "text": "No problem. You can close this now. Nothing will be sent.",
                "expression": "{custom:canStartSurvey} = 'yes'"
              }
            ],
            "choices": [
              {
                "value": "yes",
                "text": "Yes, let's go"
              },
              {
                "value": "no",
                "text": "Not now"
              }
            ]
          }
        ]
      },
      {
        "name": "about_you",
        "navigationTitle": "About you",
        "elements": [
          {
            "type": "text",
            "name": "schema:knowsLanguage",
            "title": "Which language would you like to chat in?"
          },
          {
            "type": "text",
            "name": "custom:ageInWords",
            "title": "How old are you?"
          },
          {
            "type": "text",
            "name": "custom:homePlace",
            "title": "Where do you live?",
            "description": "Your town, township or village, and the province. No street address."
          },
          {
            "type": "comment",
            "name": "custom:dailyLife",
            "title": "Tell me about a normal day for you right now. What keeps you busy?",
            "maxLength": 1000
          }
        ]
      },
      {
        "name": "your_goals",
        "navigationTitle": "Your goals",
        "elements": [
          {
            "type": "comment",
            "name": "custom:aspiration",
            "title": "If things go well, what will you be doing a year from now?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "custom:aspirationWhy",
            "title": "Why does that matter to you?",
            "maxLength": 1000
          }
        ]
      },
      {
        "name": "whats_in_the_way",
        "navigationTitle": "What's in the way",
        "elements": [
          {
            "type": "comment",
            "name": "custom:barriers",
            "title": "What makes it hard to get there?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "custom:mostHelpfulChange",
            "title": "If one thing could change tomorrow to help you, what would it be?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "custom:supportSoFar",
            "title": "Who or what has helped you most so far?",
            "maxLength": 1000
          }
        ]
      },
      {
        "name": "getting_paid",
        "navigationTitle": "Getting paid",
        "elements": [
          {
            "type": "html",
            "name": "custom:moneyIntroText",
            "html": "<p>These questions help build safer, cheaper ways for young people to get paid. We never ask for account numbers, PINs or passwords.</p>"
          },
          {
            "type": "comment",
            "name": "custom:moneyIn",
            "title": "How does money usually reach you?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "custom:preferredPayment",
            "title": "When someone pays you, how do you like to get the money? Why?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "custom:paymentExperience",
            "title": "Has anything gone wrong when you were getting paid or paying for something? What happened?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "custom:phoneAndData",
            "title": "How do you use your phone to find opportunities? What does data cost you?",
            "maxLength": 1000
          }
        ]
      },
      {
        "name": "last_word",
        "navigationTitle": "Last word",
        "elements": [
          {
            "type": "comment",
            "name": "custom:aiExperience",
            "title": "Have you used an AI chat like this one before? What did you use it for?",
            "maxLength": 1000
          },
          {
            "type": "comment",
            "name": "schema:text",
            "title": "What do you want government, companies and programmes to know about young people like you?",
            "maxLength": 1500
          },
          {
            "type": "html",
            "name": "custom:nextStepText",
            "html": "<p>Thank you! Next you see a summary of your answers. If it is right, tap to agree and send it.</p><p>To get your airtime, we then do a quick check that it is really you: a photo of your ID and a selfie in your phone's browser. The photos are not kept. We only keep a record that the check passed.</p>"
          }
        ]
      }
    ]
  }
}
