How to trigger different shortcuts based on which app is using the microphone?

Take a look at this thread:

I think this does what you want.

In that discussion, there are two different ways of getting BTT to run a terminal command to detect whether a meeting app is active, and if so, which one.