Build Agents with JSX

The most powerful open source framework for creating intelligent AI agents. Declarative, React-native, with built-in routing, memory, and enterprise-grade features.

🚀 Coming Soon - Get Early Access

From Idea to Agent in Minutes

Write your AI agent logic in familiar JSX syntax

import { Workflow, Agent, State, Routes, Trigger } from "@agx/actors";
import { ChatOpenAI } from "@agx/providers";
import { WhatsApp } from "@agx/triggers";

const CustomerSupportAgent = () => {
  return (
    <Workflow 
      id="customer_support" 
      name="Customer Support Agent"
      description="AI-powered customer support"
    >
      <State>
        <StateField name="customer_query" type="string" />
        <StateField name="customer_mood" type="string" />
        <StateField name="resolution_status" type="string" />
      </State>

      <Trigger 
        id="whatsapp_trigger" 
        trigger={WhatsApp({ phoneNumberId: "your-id" })} 
      />

      <Agent
        id="support_agent"
        name="Sarah"
        role="Customer Support Specialist"
        model={ChatOpenAI("gpt-4")}
      >
        You are a friendly customer support agent. 
        Help customers with their inquiries professionally.
      </Agent>

      <Routes>
        <Route from="whatsapp_trigger" to="support_agent" />
      </Routes>
    </Workflow>
  );
};

Everything You Need to Build Intelligent Agents

AGX provides a complete toolkit for building production-ready AI agents with enterprise-grade features

JSX-Native

Build agents using familiar JSX syntax. Leverage React's component model for modular, reusable agent logic.

<Agent
  id="sales_agent"
  name="Alex"
  role="Sales Representative"
  model={ChatOpenAI("gpt-4")}
>
  You are a helpful sales agent.
  Focus on understanding customer needs.
</Agent>

Smart Routing

Intelligent flow control with conditional routing, parallel execution, and dynamic workflow adaptation.

<Routes>
  <Route 
    from="user_input" 
    to="sales_agent"
    condition="intent === 'purchase'"
  />
  <Route 
    from="user_input" 
    to="support_agent"
    condition="intent === 'help'"
  />
</Routes>

Advanced Memory

Built-in short-term and long-term memory with automatic context management and conversation summarization.

<Memory store={MongoDBStore()}>
  <MemoryField 
    name="conversation_history" 
    type="longterm"
  />
  <MemoryField 
    name="user_preferences" 
    type="persistent"
  />
</Memory>

Multi-Channel Triggers

Connect to WhatsApp, Gmail, Stripe, Telegram, and more. Handle multiple input sources seamlessly.

<Trigger id="whatsapp" 
  trigger={WhatsApp({ phoneId: "123" })} />
<Trigger id="gmail" 
  trigger={Gmail({ labels: ["Support"] })} />
<Trigger id="stripe" 
  trigger={Stripe({ webhook: "payment" })} />

Persistent State

Declarative state management with type-safe fields, automatic persistence, and cross-session continuity.

<State>
  <StateField 
    name="customer_id" 
    type="string" 
    required
  />
  <StateField 
    name="order_total" 
    type="number" 
    default={0}
  />
</State>

Custom Components

Create reusable custom components and extend the framework with your own specialized agent behaviors.

<Custom
  id="email_validator"
  processor={async (input) => {
    return validateEmail(input.email);
  }}
/>
100% Open Source

Built by Developers,
for Developers

AGX is completely open source and community-driven. Fork it, contribute to it, extend it. No vendor lock-in, no hidden fees, no limitations on your creativity.

MIT Licensed
Community Driven
No Vendor Lock-in
Self-Hostable
Agent Marketplace

Monetize Your
AI Creations

The first marketplace where developers can buy, sell, and rent intelligent agents. Turn your agent expertise into revenue or find pre-built solutions for your projects.

Sell Your Agents
Buy Ready Solutions
Rent by Usage
Secure Transactions

Enterprise-Ready Features

Production-Scale Architecture

Sub-Workflows & Teams

Compose complex agents from smaller, specialized sub-workflows and agent teams.

Built-in Scheduling

Schedule tasks with BullMQ or local file schedulers for time-based automation.

Multi-Provider Support

Works with OpenAI, Anthropic, Mistral, and more. Switch providers seamlessly.

RAG Integration

Built-in Retrieval Augmented Generation with vector stores and chunking strategies.

<Workflow id="complex_agent">
  <Memory store={MongoDBStore()}>
    <MemoryField name="conversation_history" />
    <MemoryField name="user_preferences" />
  </Memory>

  <RagStore 
    store={VectorStore()} 
    chunking="paragraph"
    embeddings={OpenAIEmbeddings()}
  />

  <SubWorkflow
    id="customer_care"
    workflow={CustomerCareWorkflow}
  />

  <Team>
    <Agent id="researcher" role="Research Specialist" />
    <Agent id="writer" role="Content Writer" />
    <Agent id="reviewer" role="Quality Reviewer" />
  </Team>

  <Scheduler 
    id="daily_reports"
    cron="0 9 * * *"
    task={generateDailyReport}
  />
</Workflow>

Real-World Example: Airbnb Support Agent

See how AGX handles complex, multi-channel customer support with intelligent routing and context management

🏠 Multi-Channel Support

Handles customer inquiries from WhatsApp, Gmail, and Stripe webhooks with intelligent routing to specialized agents.

🧠 Context-Aware Responses

Maintains conversation context with automatic summarization and retrieves relevant property information on demand.

🔄 Intelligent Workflows

Routes customers to welcome agents, customer care, or payment collection based on the trigger source and context.

const AirbnbSupportAgent = () => {
  return (
    <Workflow
      id="airbnb_support"
      name="Airbnb Support Agent"
      contextManager={Summarization({
        model: ChatOpenAI("gpt-4o-mini"),
        maxMessages: 50
      })}
    >
      <State>
        <StateField name="guest_first_name" type="string" />
        <StateField name="airbnb_property_id" type="string" />
        <StateField name="current_user_query" type="string" />
        <StateField name="user_language" type="string" default="en" />
      </State>

      <Trigger id="whatsapp" trigger={WhatsApp({
        phoneNumberId: process.env.WHATSAPP_PHONE_NUMBER_ID
      })} />
      
      <Trigger id="gmail" trigger={GmailTrigger({
        labels: ["Bookings"]
      })} />
      
      <Trigger id="stripe" trigger={StripeTrigger({
        secretKey: process.env.STRIPE_SECRET_KEY
      })} />

      <SubWorkflow
        id="customer_care"
        name="Marcus"
        role="Customer Care Agent"
        workflow={CustomerCareAgent}
      />
      
      <SubWorkflow
        id="welcome_agent"
        workflow={WelcomeAgent}
      />

      <Routes>
        <Route from="whatsapp" to="customer_care" />
        <Route from="gmail" to="welcome_agent" />
        <Route from="stripe" to="payment_collection" />
      </Routes>
    </Workflow>
  );
};

Be the First to Build with AGX

Join thousands of developers waiting for early access to the most powerful open source agent framework. Get notified when AGX launches with exclusive beta access, plus early access to our Agent Marketplace.

We respect your privacy. No spam, unsubscribe anytime.
Early access beta
Exclusive tutorials
Developer community

What to Expect

We're putting the finishing touches on AGX. Here's what you'll get when we launch:

Framework Launch

Complete open source framework with full documentation, tutorials, and starter templates.

Agent Marketplace

Buy, sell, and rent intelligent agents. Monetize your creations or find pre-built solutions for your needs.

Learning Hub

Comprehensive guides, video tutorials, and real-world examples from beginner to advanced patterns.

Community

Join our Discord, get direct support from core team, and connect with other builders.

Expected Launch: September 2025