How to launch an activity when responding to a interaction?

Upon receiving an interaction event through the gateway, after a player pressed a button (with a custom ID), how can one respond to the said interaction by launching the corresponding activity of an app?
Was this page helpful?