Add Note to Contact in Cardhop (Mac)

I want to be able to select a few lines of text in Drafts and have a Drafts action use that text to look up a contact in Cardhop, then add a note to the Notes section of that contact. I cannot figure out how to make it work.

I have a nifty Keyboard Maestro action that can parse a few lines of text to add a note to a Cardhop contact. I can launch it from KM, and I created a Shortcut that launches it, as well as a BetterTouchTool action to launch it. But, if I launch it from a Drafts action, the first step of the macro – copy selected text – fails, because Drafts goes out of focus.

Any ideas how I can best fix this – Or better yet, do it much more simply within Drafts Actions? Thanks in advance.

I don’t know if that’s possible. I’m not a Cardhop user, but it looks like their integration points only support sending text to parse as a new contact, at least based on the docs I could find

Just chiming in, I’ve run into similar issues with Drafts losing focus when triggering external macros. One workaround that sometimes helps is using a delay at the start of the KM macro, giving Drafts time to finish its action before KM tries to copy. Not perfect, but might be worth a try. Would love to hear if anyone has found a more direct integration with Cardhop too.