Puppeteer with browserstack

Describe the problem/error/question

I’m stuck with my technology choice to have browserstack and puppeteer in order to validate my website’ behavior.

But I wans’t able to find how to setup using browserstack as a browser, anyone has any idea?

I already have a puppeteer script that I can run in puppeteer node, just need an external browser to run it from remote network.

Hmm never used browserstack, but here’s a suggestion;
You could have a separate puppeteer container running on a server.
In my case, I installed a playwright container, this is the best way I have found to run browser automations without API limitations. I basically exposed a port which n8n can communicate with using a POST request. I have several scripts running in the playwright container. With this, I am able to initiate test cases with headless set to true.