import { UtopianLabs } from "utopianlabs";
export default defineComponent({
props: {
utopian_labs: {
type: "app",
app: "utopian_labs",
}
},
async run({ steps, $ }) {
const utopianLabs = new UtopianLabs({ apiKey: this.utopian_labs.$auth.api_key });
return await utopianLabs.agents.runs.create({
agent: "r1",
lead: {
company: {
website: "https://pipedream.com",
},
},
});
},
})
Utopian Labs uses API keys for authentication. When you connect your Utopian Labs account, Pipedream securely stores the keys so you can easily authenticate to Utopian Labs APIs in both code and no-code steps.