Skip to main content
AI Agents is currently in alpha. APIs may change.
Graphy AI Agents transform charts using natural language. Send a GraphConfig and a prompt, receive an updated GraphConfig ready to render.

Architecture

Agents are stateless. Each request contains the full context needed to process it—no sessions, no conversation history. This design simplifies integration:
  • No session management or cleanup
  • Requests are idempotent and cacheable
  • Easy to retry on failure
  • Works with any architecture (serverless, edge, traditional)

Available Agents

AgentEndpointSDK MethodDescription
Chart MakerPOST /api/v0/generategenerateGraph()Modify chart type, styling, data transformations

Prerequisites

Integration Options

TypeScript SDK — Full-featured client with streaming, retries, and type validation.
import { GraphyAiSdk } from '@graphysdk/ai';

const ai = new GraphyAiSdk({
  apiKey: 'your-api-key',
  baseUrl: 'https://agents.graphy.dev',
});

const result = await ai.generateGraph({
  config: myGraphConfig,
  userPrompt: 'Change to a stacked bar chart',
});
REST API — Direct HTTP integration for any language. Returns Server-Sent Events for streaming progress.
curl -N https://agents.graphy.dev/api/v0/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"config": {...}, "userPrompt": "Add a trend line"}'

Next Steps