Please provide snippets but I shall attempt to answer the question to the best of my ability.
If you are referring to the programmable chat function, I would also need to see the language you are using, although:
Create a variable, after asking the question, assign the variable to read the input, here's a basic example in VB.NET:
Dim ans As String
Console.WriteLine("Question")
ans = Console.ReadLine()
if (ans = "y")
{
Console.WriteLine("Different Question depending on the scenario")
}
if (ans = "n")
{
Console.WriteLine("Next Question")
Recursion()
/* Recursion the question that both y/n will both have*\
}