# Potential issue/bug with repeating response values in the Assistant

**URL:** <https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514>\
**Category:** Questions about Thunkable X\
**Created:** [May 25, 2018, 12:35am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514 "2018-05-25T00:35:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ginny](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ginny/32/13741_2.png) [@ginny](https://community.thunkable.com/u/ginny)\
**Post date:** [May 25, 2018, 12:35am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/1 "2018-05-25T00:35:06Z")

</div>

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:

1. 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.

2. I made an app ([modeled off of this one](http://community.thunkable.com/t/medium-sample-app-a-digital-version-of-dad-powered-by-dialogflow/19723)) with the following code:

 ![02%20PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/da8db161edd12be65e49ac3daf2c1a07f8944329.png)

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.

---

<div class="post-metadata">

**Author:** ![ginny](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ginny/32/13741_2.png) [@ginny](https://community.thunkable.com/u/ginny)\
**Post date:** [May 31, 2018, 12:49am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/2 "2018-05-31T00:49:45Z")

</div>

Here is a sharable version of the app described above:  
[https://x.thunkable.com/copy/ed991de8125c88331ee35e4074dffa0d](https://x.thunkable.com/copy/ed991de8125c88331ee35e4074dffa0d)  
It is missing the Client Access token though, so you will have to supply your own.

I would very much appreciate any insight anyone has into this problem.

On testing it a little more, I’ve noticed that this problem persists even if I change queries. So if my first query is “hello” and my second query is “what is the meaning of life?” I will get two responses, not one, for the second query.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [May 31, 2018, 5:14am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/3 "2018-05-31T05:14:16Z")

</div>

Hi,

Easter-Eggs too works well!

I looked at your example on my iOS 10.3 and 11.3. I have one answer every time in Label1 and everything works well. In the assistant I have.

![assistant](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a243e9a36468f40bfa4d6f4f0815631baec65f1.png)

---

<div class="post-metadata">

**Author:** ![ginny](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ginny/32/13741_2.png) [@ginny](https://community.thunkable.com/u/ginny)\
**Post date:** [June 2, 2018, 3:02am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/4 "2018-06-02T03:02:48Z")

</div>

The label is fine (it is just for debugging purposes); I also only get one response there. It’s the text to speech module that speaks multiple answers after one query.

I am using 11.4 but I only just upgraded and I’m pretty sure it was doing this on 11.3 too.

I also have multiple training phrases for the default Welcome intent, but I don’t think that should make any difference. I have also tried the other intents (including the default intent and my own intents) as well and they do the same thing.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 2, 2018, 5:10am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/5 "2018-06-02T05:10:13Z")

</div>

I’m sorry, I did not understand. When I started the project, Speak did not work for me and I thought that there was a problem with Assistant. Now I’ll check it.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 2, 2018, 5:31am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/6 "2018-06-02T05:31:47Z")

</div>

Interestingly, on my iOS 11.3 Text\_to\_Speech.Speak in the assistant’s block does not work at all.

---

<div class="post-metadata">

**Author:** ![ginny](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ginny/32/13741_2.png) [@ginny](https://community.thunkable.com/u/ginny)\
**Post date:** [June 2, 2018, 5:58am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/7 "2018-06-02T05:58:07Z")

</div>

Huh. It ought to work; I’m sure I was using 11.3 8 days ago when I first posted.  
Have you allowed access to the app for the microphone and (maybe?) the speech recognizer? Do you have default responses for any query given? I’m assuming though that if you get a response in the label you probably have all that worked out.

I dunno how much you’ve played with this, but another thing to try is to use the “query” block instead of the “start listening” block; then you don’t have to worry about the microphone.

Also, it looks like in my current iteration of this I have a “stop listening” block _before_ the text to speech block; not sure if that would make a difference but might be worth a shot.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 2, 2018, 6:21am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/8 "2018-06-02T06:21:35Z")

</div>

Yes, I have everything on and Text\_To\_Speech works separately. I add it to the assistant block, overload Thunkable Live - Text\_To\_Speech does not work. It did not work and 8 days ago. I updated the firmware on iOS 11.4, reinstalled Thunkable Live - Text\_To\_Speech in the assistant’s block does not work. It works separately, but only after rebooting Thunkable Live after it was pulled from the assistant’s unit.

And in the block Assistant.Query Text\_To\_Speech works.

---

<div class="post-metadata">

**Author:** ![cheese\_cake](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@cheese\_cake](https://community.thunkable.com/u/cheese_cake)\
**Post date:** [September 19, 2018, 11:21am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/9 "2018-09-19T11:21:37Z")

</div>

same thing happens to me also, it’s keep repeating the word and pick another variant of answer. Did you manage to solve this by the way?

---

<div class="post-metadata">

**Author:** ![Techbot](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/techbot/32/11087_2.png) [@Techbot](https://community.thunkable.com/u/Techbot)\
**Post date:** [September 21, 2018, 5:06pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/10 "2018-09-21T17:06:39Z")

</div>

I’ve got a way simpler version of your coding. My assistant answers correctly each time, but she repeats the answer 2-3 times each time I ask a question. ![Capture](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/50e5f72c9f011fc13990acde3826633dd5ae8b24.PNG)

---

<div class="post-metadata">

**Author:** ![cheese\_cake](https://avatars.discourse-cdn.com/v4/letter/c/8491ac/32.png) [@cheese\_cake](https://community.thunkable.com/u/cheese_cake)\
**Post date:** [September 22, 2018, 1:50am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/11 "2018-09-22T01:50:06Z")

</div>

yup that thing happened to me, so it is bugged?

---

<div class="post-metadata">

**Author:** ![Techbot](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/techbot/32/11087_2.png) [@Techbot](https://community.thunkable.com/u/Techbot)\
**Post date:** [October 13, 2018, 4:14am UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/12 "2018-10-13T04:14:09Z")

</div>

Has anyone gotten this to work without repeating itself?

---

<div class="post-metadata">

**Author:** ![Techbot](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/techbot/32/11087_2.png) [@Techbot](https://community.thunkable.com/u/Techbot)\
**Post date:** [October 17, 2018, 8:21pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/13 "2018-10-17T20:21:11Z")

</div>

Going on 5 months with this issue ☹ _bump_

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 18, 2018, 4:45pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/14 "2018-10-18T16:45:01Z")

</div>

Yes, it would be great to get some feedback from the Thunkable team on this issue, or at least acknowledge that it exists.

@Mark, is the team aware of this issue? Seems like it is holding people back from using the Assistant component.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [October 18, 2018, 5:57pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/15 "2018-10-18T17:57:55Z")

</div>

> [@Kyle\_Williams](#):
>
> Yes, it would be great to get some feedback from the Thunkable team on this issue, or at least acknowledge that it exists.
> 
> @Mark, is the team aware of this issue?

Consider it acknowledged. And it is on our bug queue.

-Mark

---

<div class="post-metadata">

**Author:** ![Kyle\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/b2d939/32.png) [@Kyle\_Williams](https://community.thunkable.com/u/Kyle_Williams)\
**Post date:** [October 18, 2018, 6:12pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/16 "2018-10-18T18:12:25Z")

</div>

Thanks for the reply, Mark.

This workaround seems to fix the issue in my app for the moment:

 ![tts_workaround](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f87b610d29f5bf0ce7ce3b4998e9db379c109b2.png)

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [October 18, 2018, 6:34pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/17 "2018-10-18T18:34:03Z")

</div>

> [@Kyle\_Williams](#):
>
> This workaround seems to fix the issue in my app for the moment:

Thanks, Kyle!

-Mark

---

<div class="post-metadata">

**Author:** ![Techbot](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/techbot/32/11087_2.png) [@Techbot](https://community.thunkable.com/u/Techbot)\
**Post date:** [October 29, 2018, 8:50pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/18 "2018-10-29T20:50:22Z")

</div>

Hmmm. I tried that workaround and couldn’t get it to work. I placed a Label on my main screen so I could see the value returned by the Assistant. My Dialogflow agent returns only 1 of my programmed responses, and I can see it in the Label, but she SPEAKS all the responses I have in my Intent, sometimes even repeating the first one a couple of times

---

<div class="post-metadata">

**Author:** ![Techbot](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/techbot/32/11087_2.png) [@Techbot](https://community.thunkable.com/u/Techbot)\
**Post date:** [December 22, 2018, 10:02pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/19 "2018-12-22T22:02:14Z")

</div>

Any headway on this feature?

---

<div class="post-metadata">

**Author:** ![javier.sahuquillokwu](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@javier.sahuquillokwu](https://community.thunkable.com/u/javier.sahuquillokwu)\
**Post date:** [April 12, 2020, 8:20pm UTC](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514/20 "2020-04-12T20:20:08Z")

</div>

Hi, I am getting the same error event if workaround is applied.  
My experience:

- if I send one query to dialogflow without speech recognition, it works
- if speech recognition is used, response message is repeated 2 times

Is this issue going to be solved?

[Next page](https://community.thunkable.com/t/potential-issue-bug-with-repeating-response-values-in-the-assistant/28514.md?page=2)
