agents.as
Preview MDXLD as an AI agent interface
agent.as - AI Agent Interface
Preview and interact with MDXLD documents as AI agents through agent.as.
What is agent.as?
agent.as renders MDXLD documents with $type: Agent as interactive AI agent interfaces. It provides a conversational UI for agents to interact with users, execute actions, and manage state.
Basic Example
---
$type: Agent
$id: https://agents.do/customer-support
name: Customer Support Agent
model: claude-sonnet-4.5
capabilities:
- answer_questions
- lookup_orders
- process_refunds
personality: friendly, helpful, professional
---
# Customer Support Agent
I can help you with orders, refunds, and product questions.Renders at: https://agent.as/customer-support
Features
- Conversational UI: Chat interface with message history
- Action Execution: Agents can call functions and APIs
- State Management: Persistent conversation state
- Tool Integration: Connect to external tools and services
- Multi-modal: Text, images, files, and structured data
- Streaming: Real-time token streaming
- Context: Maintain context across conversations
Agent Configuration
---
$type: Agent
name: Sales Agent
model: gpt-5
systemPrompt: |
You are a helpful sales agent for Acme Corp.
Help customers find the right products.
tools:
- search_products
- check_inventory
- create_quote
maxTokens: 2000
temperature: 0.7
---Preview URL
All agents deployed to agent.as are accessible at:
Where {slug} is derived from the document's filename or $id.
Try It
Create an agent and preview instantly:
# Create agent MDXLD file
cat > support-agent.mdx << 'EOF'
---
$type: Agent
name: Support Bot
model: claude-sonnet-4.5
---
# Support Bot
How can I help you today?
EOF
# Deploy to preview
mdxe deploy support-agent.mdx --preview agent.as
# Opens: https://agent.as/support-bot