The combination of Keyboard Mastro and Roam Reserach and omnifocus

I am using Roam Research and Omnifocus.
How can I use keyboard mastro to add some tasks to Roam Research when I start to execute it in Omnifocus?