Get your Raccoon Passcode. This is used to identify the end user for which this request is being made for.
We recommend using Tail SDK to link and manage your end user accounts of different third party apps securely, it uses this passcode to inject user’s authentication context into the app if available in Run Sessions.
3
Install Raccoon AI SDK
Copy
npm i raccoonai
4
Make your first request
Copy
import { RaccoonAI } from 'raccoonai'const client = new RaccoonAI({secretKey: process.env.RACCOON_SECRET_KEY});(async () => { const response = await client.lam.run({ query: 'Find the price of iphone 16 on Amazon', raccoon_passcode: "<raccoon-passcode>" }) console.log(response)})()
5
Observe the session
Checkout the session live stream and recording Tasks page on the Platform or on the livestream_url returned in the response.