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

POST
1curl -X POST https://api.trykeet.com/v1/venmo/session \
2 -H "X-Account-Token: string" \
3 -H "Authorization: Bearer <token>"
Response
1{
2 "status": "ok",
3 "wsUrl": "string",
4 "postSignInUrl": "string"
5}

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()