import { Client, Agent } from "@scoopika/client";

const client = new Client("API_URL"); // Replace with your Scoopika API route
const agent = new Agent("AGENT_ID", client);

An Agent instance enables you to interact with individual agents. What are agents

Arguments

id
string
required

The agent ID. your agent ID is shown under its name in the platform, just click it to copy.

client
Client
required

An instance of the Scoopika Client class that you previously initialized.

Reference to Client instance

import { Client, Agent } from "@scoopika/client";

const client = new Client("API_URL"); // Replace with your Scoopika API route
const agent = new Agent("AGENT_ID", client);