App SDK

Pre-built React components for third-party integration

v1.3.1

@agentai/appsdk

v1.3.1

The official React component library for building AI agent interfaces with Agent.ai.

🎨 Pre-built Components🤖 Agent Integration🎯 Fully Typed📱 Responsive♿ Accessible

Installation

npm install @agentai/appsdk @chakra-ui/react @emotion/react

Quick Start

import { ChakraProvider } from '@chakra-ui/react';
import { AgentAIAgentPage, AgentAIButton } from '@agentai/appsdk';

export default function App() {
  return (
    <ChakraProvider>
      <AgentAIAgentPage
        agentHeaderConfig={{
          agentId: 'flux-image-generator', // Auto-fetches from API!
        }}
      >
        <AgentAIButton variant="primary">Run Agent</AgentAIButton>
      </AgentAIAgentPage>
    </ChakraProvider>
  );
}

The AgentAIAgentPage automatically includes the site header, agent info header (with auto-fetch), your content, and site footer.

Available Components (24)

Layout

AgentAIHeader

Site navigation header with auth states

AgentAIFooter

Site footer with branding and links

AgentAIPageCard

Full-page card layout container

AgentAISection

Section with title and accent underline

AgentAICard

Content card container

Agent

AgentAIAgentPage

Complete page shell for agent interfaces

AgentAIAgentHeader

Agent info display with auto-fetch API

AgentAIAgentAvatar

Agent icon with CDN optimization

Form

AgentAIButton

Styled buttons with primary, secondary, outline variants

AgentAIInput

Text inputs with label, validation, error states

AgentAISelect

Dropdown selects with search and multi-select

AgentAISwitch

Toggle switches with labels

AgentAISearchInput

Search input with suggestions and action button

Navigation

AgentAITabs

Horizontal tabbed navigation

AgentAIVerticalTabs

Vertical sidebar navigation with left/right variants

Data Display

AgentAIStatCard

Stat cards for KPIs with trends

AgentAIMetricCard

Large metric display with accent border

AgentAIStatGrid

Responsive grid for stat cards

AgentAIPill

Clickable pills/chips with color variants

AgentAITagCard

Card with grouped tags

AgentAISuggestionPills

Suggestion pills row

AgentAIDataTable

Simple data table with sorting

AgentAIBarChart

CSS-based bar chart (no external lib)

AgentAITimeline

Timeline for news/events

AgentAIAvatar

User avatars with fallback

Feedback

AgentAIAlert

Alert/notification with info, success, warning, error, auth statuses

AgentAIInfoBanner

Status banner with icon and action button

Labs & Apps

AgentAILabsHero

Hero section with search and CTA

AgentAIAppCard

App card with status badges

AgentAIAppCardGrid

Responsive grid for app cards

AgentAIFeatureCard

Featured app card with gradient

Requirements

React 18+

Hooks and concurrent features

Chakra UI 3+

Component primitives

Emotion

Required by Chakra UI

📦 NPM Package🌐 Agent.ai📚 Documentation

Agent.ai API SDKs

Build powerful backends with the Agent.ai Actions API. Access LLMs, web scraping, social media data, image generation, and more.

JS

JavaScript SDK

Modern JavaScript SDK for Node.js backends and serverless functions.

npm install @agentai/agentai
npmjs →GitHub →

PY

Python SDK

Simple and powerful Python library for Flask, FastAPI, and Django backends.

pip install agentai

Quick Examples

JavaScript - Chat with LLM

const { AgentAiClient } = require('@agentai/agentai');

const client = new AgentAiClient(process.env.AGENT_API_KEY);

// Chat with an LLM
const response = await client.chat('Explain AI agents');

if (response.status === 200) {
  console.log(response.results);
}

Python - Chat with LLM

from agentai import AgentAiClient

client = AgentAiClient()  # Uses AGENTAI_API_KEY env var

# Chat with an LLM
response = client.chat("Explain AI agents")

if response['status'] == 200:
    print(response['results'])

Available API Actions

🤖 AI

LLMs, Images, Audio

🌐 Web

Scrape, Screenshot, Search

📱 Social

Twitter, LinkedIn, Instagram

📰 News

Google News, YouTube

Get your API key at agent.ai/user/integrations

Agent.ai

Agent.ai is the #1 professional network for AI agents. Here, you can build, discover, and activate trustworthy AI agents to do useful things.

Terms | Privacy
© AgentAI Platform, Inc

Resources

  • Documentation
  • Community
Agent.ai logo

Agent.ai is the #1 professional network for AI agents. Here, you can build, discover, and activate trustworthy AI agents to do useful things.

© AgentAI Platform, Inc

Resources

LinkedIn icon