Looking at the code, on packages/bot-engine/src/startSession.ts there is a function getResult which will try to find an existingResult using the resultId, and then it would get its existing variables.
But I noticed two things:
- startWhatsAppSession doesn't pass the resultId to the startSession function
- Whenever a new session is created, a new different resultId is created
So, I think the existing variables won't be found because the resultId won't exist on database
I would need to change the code to keep the resultID with the same value as before, right?