Biz Agent Hub Developer Docs
Welcome to the Biz Agent Hub API documentation. This guide will help you integrate our AI agents into your applications.
Get your first AI agent running with just a few API calls. No complex setup required.
Sign up for a free account to get your API key
Generate your API key from the dashboard
npm install biz-agent-hub
# or
yarn add biz-agent-hubHere's a simple example to get you started with the Support Agent:
import { BizAgentHub } from 'biz-agent-hub';
const userId = 'your_user_id';
const apiKey = 'your_api_key';
const client = new BizAgentHub(userId, apiKey);
async function run() {
const response = await client.supportAgent.query({
message: 'Hello Support Agent!',
file: undefined, // Optional: a File object (browser) or compatible type
sessionId: undefined // Optional: reuse a session ID for conversation continuity
});
console.log('Support Agent response:', response);
}
run().catch(console.error);