Trigger interaction by external function()

Is it possible to trigger an interaction created in webflow from a custom function? I would like to re-use the interaction from the templates we build in some external code.