AG Studio Launch Week 🚀🚀🚀 28 Sep - 2 Oct 2026 🚀🚀🚀 Join now

Vue Embedded AnalyticsAgent Quick Start

Version 3.0.0

The Studio Agent Framework lets users explore data and build or modify dashboards using natural language and an LLM supplied by your application. Connecting it to the OpenAI Responses API takes three steps.

It runs the agent loop in the browser against an example OpenAI adapter, which you copy into your app and adapt to your own provider. This is one of several approaches the Agent Framework supports; for the concepts behind it, see Harness, Agents and Tools.

1. Register the Module Copy Link

The Agent Framework is provided via the AgStudioAiModule which must be imported and registered:

import { AgStudioAiModule, AgStudioModuleRegistry } from 'ag-studio';

AgStudioModuleRegistry.registerModules([AgStudioAiModule]);

2. Connect a Provider Copy Link

To connect to your provider, you must provide an adapter that translates the Agent Framework request format to the format your chosen provider expects.

The example on this page includes an OpenAI adapter. AG Studio ships no adapters - copy this one as a starting point for your provider:

// Example adapter, not a shipped API. Copy it into your app and adapt it.
import { openaiAdapter } from 'ag-studio-harness/example-shared/openaiAdapter';

const adapter = openaiAdapter({
    endpoint: 'https://api.openai.com/v1/responses',
    key: MY_KEY,
});

This adapter calls the provider straight from the browser, which may expose your authentication key to your users. In production, route the LLM requests via your own application or an LLM proxy.

3. Configure the Harness Copy Link

Pass the adapter to createAiHarness and you get Studio's five agents, with the lead fronting the conversation:

<ag-studio
    :ai="ai"
    /* other studio properties ... */>
</ag-studio>

this.ai = ({ api }) => createAiHarness(api, { adapter });

That is the shortest form. To change the agents, their instructions or their tools, pass a builder instead - see Agent Configuration.

Example Copy Link

Open the dashboard, open the chat panel from the side panels, and choose one of the suggested prompts - or type a request of your own. Choose "Chart average highs" and you should see the lead agent inspect the schema, delegate to the page agent to place a widget, then to a widget agent to configure it:

Troubleshooting Copy Link

If you experience issues, work through these in order:

SymptomWhat to check
No chat panelThe module is not registered, or ai is not set.
Panel, but "AI is unavailable"primary names an agent that is not in agents.
A licence error in the consoleThe key does not include AI.
The agent replies but never actsThe adapter is not relaying tool calls - see Tool Calls.

Next Steps Copy Link