How to run action.py?

I want to run the file action.py and get the message input from the user How to run? Please help me! Thank

you would run rasa run actions --actions actions in this example my file would be called actions.py in the root of the repo/project.

Let me know if you have any issues with testing this.

2 Likes

Thank you!

You are quite welcome, also that last actions would change if it was a file inside say a demo folder it would become demo.actions just as a FYI, so works like a module basically.

You can see that sort of setup on the demo bot we have GitHub - RasaHQ/rasa-demo: Sara - the Rasa Demo Bot: An example of a contextual AI assistant built with the open source Rasa Stack

1 Like

Yes, I did see github demos,I just learned rasa but when I used the command line: rasa train and used the rasa shell, the results didn’t seem right.