C4C solution is fully customizable to meet your operational needs, this that said, the solution is ready to use as is without the need to make any changes.
The customizable elements and file names of the solution are listed below;
Questions - question.json
Algorithms - algorithm.json
Exceptions :- exceptions.json
...
Anchor | ||||
---|---|---|---|---|
|
Info |
---|
questions.jsonThe questions file contains two main elements that are the source for the algorithm file construction: questions and options. |
Questions
The questions file is just an inventory a list of all possible questions (and their possible answers) that may be asked to a user. They are not listed
Questions can be added in any particular order , as that's controlled as the actual flow of questions is determined by the algorithm. Currently (Feb 2021) the questions flow is as follows:
...
A simplified view of the algorithm
Full algorithm flow
Some of the questions can be omitted depending on the user's answers.
All the paths end in a contraceptive method recommendation.
Below is a simplified view of the structure of the question in a session.
...
A SIMPLIFIED VIEW OF THE ALGORITHM
The flow chart below is a more details overview of the algorithm's decision-making process, depending on the answer given by the client the algorithm will present the relevant follow-up question.
As you can see regardless of the answers given by the client, the algorithm will always reach at least one recommended method of contraception.
...
Options
Each question contains at least two options to be presented to the user as possible answers. Their choice determines the path to follow: which question to ask next, or presenting the final result in the form of family planning methods recommendation.
Additionally, the questions and their options (answers) are directly connected to POEditor terms, the service used for localization.
algorithm.json
The algorithm drives the logic of what question to ask next, based on the previous answer. All possible paths end with a family planning method list recommendation.
exceptions.json
The exceptions file restricts the methods to be returned based on various criteria. Currently, they include country, age, and breastfeeding.