Отслеживайте свое последнее намерение, передавая его в атрибутах сеанса.
def yesIntent(intent,session):
last_intent = session['attributes']['current_intent']
if last_intent == "intent1":
speech_output="this is response to intent 1"
*Rest of the code*
elif last_intent == "intent2" :
speech_output = "This is reponse to intent 2"
*Rest of the code*