Continuing conversation with external API questions

Hi, I have created a custom API which interfaces with the Infermedica API which in turns given a question or response, returns another question to which we can answer? For example, if the conversation is like: User: I have a headache. Bot: Do you have a severe headache? (Generated automatically by external API)

Now how can I continue the conversation and answer this question in flow as the questions keep coming from the API till the user is satisfied. Also I have no control over what question will be asked by the bot using the Infermedica API.

Is there any way to tackle this problem?

Were you able to solve this problem?