Produce message without using rasa x or rasa shell

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.