I’ve been testing a very simple version of the assistant and something I’ve noticed is that if I keep giving the same query, it responds with a response to that query plus all the previous responses to previous versions of the same query. I’m not sure if this is an issue on Thunkable’s end, or DialogFlow’s end, or if there’s something I don’t understand here.
Here’s what I did:
Made a DialogFlow account, copied the “Easter Eggs” prebuilt agent (one of the simplest ones, no API calls, just responses). Then I clicked on “default welcome intent” and added some “training phrases” like “hi” “hello” “hey” etc. There were already four responses there: hi, hello, good day, and greetings.
I made an app (modeled off of this one) with the following code:
When I test it, it works like this:
I say “hello” when it’s listening, and it responds with one of the response phrases (for instance “good day”). Then the next time I give it a query, it will respond with the previous response “good day” as well as a new response. Then the third time I try it it responds with 3 responses. I tried this a bunch of times, it keeps going and going; I went until it was giving me 10 responses to one “hello” query.
Is this a bug? Am I missing something? Right now I’m stuck because I can’t seem to even get around it effectively; if I try to add a variable in local storage to only save the last “value”, then it won’t speak anything at all.