In the project I’m working on, I have replaced rasa-nlu with a custom Interpreter subclass which returns a json in rasa nlu format. Now I want the chatbot to run the custom action form, when the intent is detected.
excerpt of my code:
endpoint = EndpointConfig(url="http://localhost:5055/webhook") agent = Agent.load('chatbot/model/dialogue', interpreter=interpreter, action_endpoint=endpoint) response = agent.handle_text(chat_text)
I ran the action endpoint local server and it registered my form action.
My FormAction returns a custom string message and I have also used a dispatcher to utter the same custom message.
When I run it, the nlu works fine and the agent is initialized without issues but there is no response and also NO debug / error messages.
I ran the examples and in the formbot example the rasa process starts, form action is activated and is run but in my code there is no error, no warning and no output.
Please tell me how to debug Agent and why I’m not getting any logging messages.
Update: I created a mock json that is to be sent to the action server with required entities and slots filled and POSTed it using Postman and the action correctly called the API and returned a response. So clearly the issue is occurring within the Agent.
Also, agent.is_ready() returns -> True
Update2: I was running the python chatbot as a service using nginx. So I was unable to debug without changing all the file paths etc. So I copied the project, removed all but essentials and the interpreter and rasa agent logic and debugged it. It ran correctly, sent a request to action server and received correct response. However, when I run the same code through the service, I get no response from the agent and the action server has nothing indicating the form action was called/executed like it did when debugging.