Prompt For User Input [1] is the easiest method and allows you to build a form fully within the KM's GUI.
Custom HTML Prompt [2] lets you make a full HTML/CSS/JS form. I have never had need of this, but in principle you can leverage any web browser tools such as jQuery and Bootstrap to make a complex form.
Check out the KM forums for examples. KM also allows you to fully integrate AppleScript and shell scripts, so you could do all sorts of other crazy workflows.
[1] https://wiki.keyboardmaestro.com/action/Prompt_for_User_Inpu...
[2] https://wiki.keyboardmaestro.com/action/Custom_HTML_Prompt
The macro: http://imgur.com/1oIhtJm.png
The prompt: https://imgur.com/esJt4gM.png
Keyboard Maestro macros consist of a trigger and an action. In the above example, I used the Typed String trigger to detect when "hhi" is typed then execute an action to create a prompt and paste the text with content from that prompt.