scrimba
Learn AI Agents
Agent Setup
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Agent Setup
Expand for more info
index.js
run
preview
console
import OpenAI from "openai"

export const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
dangerouslyAllowBrowser: true
})

/**
* Goal - build an agent that can get the current weather at my current location
* and give me some localized ideas of activities I can do.
*/

Console
/index.html
-3:35