Google Assistant connector - run_app.py error: sanic.exceptions.NotFound: Requested URL / not found

Dear users,

Currently I’m trying to create a connector for RASA and the Google Assistant. According to the tutorial the run_app.py file should look like the following:

from rasa.core.agent import Agent from rasa.core.interpreter import RasaNLUInterpreter from ga_connector import GoogleConnector from rasa.utils.endpoints import EndpointConfig from rasa.core.channels import RestInput action_endpoint = EndpointConfig(url=“http://localhost:5055”) nlu_interpreter = RasaNLUInterpreter(’.PathtoNLUmodel’) agent = Agent.load(’.PathtoCore’, interpreter = nlu_interpreter, action_endpoint=action_endpoint) input_channel = GoogleConnector() agent.handle_channels([input_channel], 5004)

When I try to run run_app.py, I get the following error in the CLI: " raise NotFound(“Requested URL {} not found”.format(url)) sanic.exceptions.NotFound: Requested URL / not found"

Does anyone know what the problem is?

Thanks!

Update: Rasa version 1.0.6

Hi there,

We are working on updating this tutorial to the latest rasa versions!

1 Like

Hi @erohmensing

when this update is completed?

I wait for it

We will let you know :slight_smile:

Hi @erohmensing, Is it going to take long? Could someone please suggest an alternate option for speech to text (and text to speech) conversion meanwhile to be integrated with rasa? on-premise is preferred.

Hi, the blog tutorial about connecting rasa to google assistant has updated. It works well in rasa 1.0.

@deeppark sorry I didn’t come back to this thread to let you know. @paraparata is right, it’s been updated! Another STT you might be interested in is Mozilla Deepspeech.

I just tested it and it’s working like a charm. Thanks a lot @paraparata and @erohmensing for confirming.

1 Like

Thank @Juste, she did all the work of updating it! :heart:

1 Like

Thanks @Juste :slight_smile:

2 Likes

Hi @Juste and @erohmensing, I see an issue with ga_connector.py, it only sends single utterance at a time to google assistant and all other utterances are ignored. I have scenarios where I need to utter multiple messages like “sure can do” and then send actual message. but I see ga_connector.py only uses first message and send it to assistant. Also buttons aren’t working either.

Hey @deeppark. The current state of the connector is definitely simple and there are lots of things that could be improved. Would you be up for making a contribution to it? Feel free to open a PR with your suggestions and improving it. It would be a great way to become a Rasa contributor :slight_smile:

1 Like

Sure. I’ll give it a try.

1 Like