For a great tool and comprehensive solution, checkout this macro:
MACRO: [KMFAM] Favorite Actions and Macros by @DanThomas
Highly recommended.
But for a quick start:
- Create a macro in the Macro Group where you will most likely need to create new macros. Give it a clever name like "Typed String Trigger Template".
- When you want to create a new macro, select the above template macro, and press ⌘D
- Give new macro an appropriate title and carry on.