are you looking for templates ? what are you trying to achieve with macros ?
https://docs.logseq.com/#/page/templates
:editor/input will write the string to the block
:backward-pos is a way to move the caret x characters backwards to wait for user input at the correct location once a macros has been entered, I don’t have links to docs, but you should into the examples in config.edn