Rasa: Hi everyone,
First of all, I’m new to Rasa.
I want to build a chatbot that takes inputs such as a String and replies to it, all directly in a local python file. With the command ,rasa init’’ I was able to get all the files with the sample intents/stories etc. But how do I send a message to Rasa and receive a response?
In the documentation I found the following (Agent)
- from rasa.core.agent import Agent
- from rasa.core.interpreter import RasaNLUInterpreter
- agent = Agent.load(“examples/restaurantbot/models/current”)
- await agent.handle_text(“hello”)
I pointed the Agent.load to ("models), as that’s where my model.tar.gz has been saved after running the ,rasa train’’ command. However, when I run this in my local python file, it returns ,None’’. If I run ,rasa shell’’ I communicate via the command line, I get the expected response (“Hey! How are you?”)
Could someone please advise what is missing here? I noticed that the second import rasa.core.interpreter is unused, so I already suspect that might be related to my problem.
Some ,starter help’’ would be much appreciated.
Thanks in advance & with best regards,