API Documentation

Biz Agent Hub Developer Docs

v1.0

Navigation

Getting Started

Welcome to the Biz Agent Hub API documentation. This guide will help you integrate our AI agents into your applications.

Quick Start in 5 Minutes

Get your first AI agent running with just a few API calls. No complex setup required.

Prerequisites

Biz Agent Hub Account

Sign up for a free account to get your API key

API Key

Generate your API key from the dashboard

Installation

bash
npm install biz-agent-hub
# or
yarn add biz-agent-hub

Your First API Call

Here's a simple example to get you started with the Support Agent:

javascript
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);