questions.json
Note |
---|
Please note the order in which questions are asked in a session is controlled by the algorithm.json file, it is not the order in which the questions are listed in the questions.json file. |
Info |
---|
DEFINITIONS & TERMINOLOGIES Options: A list of possible answers the client can pick from for their answer to a question. |
to the client in the ChatBot or WebApp is controlled by the algorithm.json file, this means you can add a new question to the end of the file even if it is to be asked 1st, 2nd, 3rd or other position in the session.
The wording of individual questions is controlled by what is written in POEditor. Strings on this file are related to a term in POEditor, the tool used for translations and localisation.
...
To Please note C4C is built using POEditor which facilities language translations, this is required even if you do not use the option, to learn more about the C4C multilingual feature, click here.
Each question is defined by a keyword in double quotes and can have one or more options.
...
The file is written using JSON notation. To learn more about the basic notation used in JSON, click here.code
"factor1": { {
"options": { {
"Effectiveness": "",
"Privacy": "",
"FewSideEffects": "" }
}
}
The following tables present the terms (keywords) available for the algorithm file:
...
Keyword | Translation |
---|---|
gender | How do you identify yourself? It helps me to better meet your needs. |
futurePregnancy | Do you want to be pregnant in the future? |
breastFeeding | Are you breastfeeding a baby less than 6 months old? |
age | How old are you? |
factor1 | I'll give you some options to choose from. Tell me which one is most important to you when considering contraception. |
factor2 | And which of the following three options is the most important to you? |
factors2vs1 | Compared to '{{FACTOR_1}}', how important is '{{FACTOR_2}}'? |
factor3 | Finally, which of the following three options is most important to you? |
factors3vs12 | Compared to '{{FACTOR_1}}' AND '{{FACTOR_2}}', how important is '{{FACTOR_3}}'? |
...
Keyword | Translation |
---|---|
Sterilization | Sterilization |
IUD | IUD |
IUD | IUD |
Implant | Implant |
Injectables | Injectables |
POP | Progesterone Pills |
COP | Combined Pills |
EC | EC |
Condoms | Condoms |
Cyclebeads | Cyclebeads |
Factor 1
Keyword | Translation |
---|---|
Effectiveness | Efficient method |
Privacy | Discrete method |
FewSideEffects | Method with few side effects |
...