I was running the chatbot as a nginx service and so debugging the code is not possible. What I did was to copy only the relevant files to a separate project, debug them in the IDE, and find out the issue.
The biggest issue was that the FormAction slot utterances were not being uttered. I realised that I hadn’t written them into the domain file. As soon as I added the utter_ask_SLOT utterances to the domain file, and trained it, the bot was correctly giving me the appropriate response.
I still cannot debug the nginx service however, I can write a bunch of app.logger.debug() statements to debug the flask app. I cannot debug the agent as that is running as a service.
Thanks for the reply anyways.