Print API result as bot's answer

Hello Community!I have bot which gets answer from API(flask) and now in rasa x I want to print API’s return value as bot’s answer to user’s question.How to create this idea and what should I do?What files do I need?Can you list all things step by step please?