Return HTML from custom formAction

I have this custom ActionForm, at the end of submitting i want to call a rest api with the given slots, This restApi returns htmlk output. i want to return this html output as utter message. I couldnt find a way to do this. anyone knows how?

I would probably use a library like yattag to generate the HTML in the actions.py file itself.