I use custom code to load a webchat JS and it appears in production only.
I also have a workflow activating some functions of the aforementioned JS through an SDK on element click.
It doesn’t work, but I have no clue why.
Logs in workflow are useless since the workflow env doesn’t know the JS at all.
I tried to use Chrome inspect tools, but the console doesn’t help.
There is still some confusion about using workflow for the instance vs workflow for the component (especially on static collection pages), but nonetheless it works!