[Help-ROS] Can I pass inputs and and get outputs from somewhere other than the cmdline?

Basically the title. I’m using the starter pack provided and added some changes and custom actions. I just need to integrate this chatbot with ROS, so I need to separate the input and output of the chatbot so I can make the user input through ROS and then pass it to rasa, and also to get the output from rasa and pass it to ROS.

could you use a REST middleman?

Yes, I used it and it worked. Thank you!