Custom Automations

You can use playwright or puppeteer to take actions on your users behalf

If you want to write your own automations using playwright to act on your users behalf you can do that by connecting to the playwright instance over CDP.

Venmo is used here as an example but every integration offers the endpoint POST: /session to get a websocket url to connect via playwright or puppeteer.

Get a websocket url to connect to playwright

You can then use this wsUrl to connect to the playwright instance over CDP.

Connect to a playwright instance

1const browser = await chromium.connectOverCDP(wsUrl)
2const context = browser.contexts()[0]
3const page = await context.newPage()
4await page.goto("https://accounts.venmo.com")
5// Your other automations here...
6await browser.close()