Produce message on rasa

Hello , I am new to rasa technology,I want to produce a message on rasa without of using rasa x or shell.I want to generate a message by using java or python API. Please share…Sorry if i asking something wrong.