The most powerful open source framework for creating intelligent AI agents. Declarative, React-native, with built-in routing, memory, and enterprise-grade features.
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>
);
};
AGX provides a complete toolkit for building production-ready AI agents with enterprise-grade features
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>
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>
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>
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" })} />
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>
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);
}}
/>
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.
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.
Compose complex agents from smaller, specialized sub-workflows and agent teams.
Schedule tasks with BullMQ or local file schedulers for time-based automation.
Works with OpenAI, Anthropic, Mistral, and more. Switch providers seamlessly.
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>
See how AGX handles complex, multi-channel customer support with intelligent routing and context management
Handles customer inquiries from WhatsApp, Gmail, and Stripe webhooks with intelligent routing to specialized agents.
Maintains conversation context with automatic summarization and retrieves relevant property information on demand.
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>
);
};
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're putting the finishing touches on AGX. Here's what you'll get when we launch:
Complete open source framework with full documentation, tutorials, and starter templates.
Buy, sell, and rent intelligent agents. Monetize your creations or find pre-built solutions for your needs.
Comprehensive guides, video tutorials, and real-world examples from beginner to advanced patterns.
Join our Discord, get direct support from core team, and connect with other builders.