Creating an auto-listener / digital assistant?

Does anyone have any ideas for how you might make an auto-listener similar to digital assistants like Siri and Alexa?

I tried putting this block in a loop:

image

But it only recognizes my speech if I speak immediately. Within the loop, I can get it to work once. And if I speak immediately after it finishes, it works again but as soon as I pause, it no longer works after that.

Here are those blocks: