# Get\_response() not always working

**URL:** https://community.openconversational.ai/t/get-response-not-always-working/8585
**Category:** Archive - Former Random Mycroft Category
**Created:** [April 26, 2020, 10:27pm UTC](https://community.openconversational.ai/t/get-response-not-always-working/8585 "2020-04-26T22:27:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Santiago\_de\_Arribas](https://community.openconversational.ai/user_avatar/community.openconversational.ai/santiago_de_arribas/32/2233_2.png) [@Santiago\_de\_Arribas](https://community.openconversational.ai/u/Santiago_de_Arribas)
#### Post date: [April 26, 2020, 10:27pm UTC](https://community.openconversational.ai/t/get-response-not-always-working/8585/1 "2020-04-26T22:27:10Z")

</div>

Hi!  
I have a skill that I need to have the user interact with and I’m using the get\_response() method to try save users responses. My problem is that sometimes this works and sometimes it doesn’t leading me to believe I’m not using it correctly. An example of how my code works is as follows:

```
@intent_handler(IntentBuilder('HelloWorld').require('Hello').require('World'))
def handle_hello_world(self, message):
   self.speak("Hello")
   name = self.get_response("Whats your name")
   if name = "john":
      self.speak("Hi john")
   else:
      self.speak("Hi stranger")

```

When I type a name into the mycroft-cli after the “Whats your name” dialogue, I sometimes get “I don’t understand” etc, while other times it picks me up perfectly.  
My Logs look like the following:

```
|Timeout occurred check responses
|Searching for john
|Removing event fallback-query.mycroftai:QuestionQueryTimeout

```

I’d to know how to better use the get\_responses() function to get more consistent results. All help is appreciated thank you!

---

<div class="post-metadata">

### Author: ![pcwii](https://community.openconversational.ai/user_avatar/community.openconversational.ai/pcwii/32/900_2.png) [@pcwii](https://community.openconversational.ai/u/pcwii)
#### Post date: [April 26, 2020, 11:43pm UTC](https://community.openconversational.ai/t/get-response-not-always-working/8585/2 "2020-04-26T23:43:40Z")

</div>

I have found when using the cli you need to ensure that mycroft is prepared to listen before sending the response. Under normal conversation mycroft would respond with a sound indicating it is listening but when using the cli if you don’t wait for that sound before sending the response it may get missed as the command line may respond with the get\_response question before it is ready to listen. Watch the cli window for something like this before sending the cli response

 ![image](https://community.openconversational.ai/uploads/default/original/2X/3/397581cd28e7f6565eae66249c46605e13b3d78c.png)

---

<div class="post-metadata">

### Author: ![Santiago\_de\_Arribas](https://community.openconversational.ai/user_avatar/community.openconversational.ai/santiago_de_arribas/32/2233_2.png) [@Santiago\_de\_Arribas](https://community.openconversational.ai/u/Santiago_de_Arribas)
#### Post date: [April 27, 2020, 3:52pm UTC](https://community.openconversational.ai/t/get-response-not-always-working/8585/3 "2020-04-27T15:52:39Z")

</div>

Sometimes I don’t see this pop up but when I do and I respond on cue, it works, thank you!
