Can you talk more about what data you used to build you AI
As for how the AI itself specifically works, given the data it has on the stated symptoms (Fever, Sore Throat, Chills, etc), it has based on prior data a best guess of the top conditions correlated with those symptoms.
Then, it asks a question that can help inform its calculations, which has simple boolean answers (True this symptom exists, False it does not exist). Then, the ranking of conditions updates, and the API responds with the next symptom it is curious about to drive towards a smarter diagnosis.
[edited for grammar]