Set up an account
Create an account here.Create a project
Start by creating AgentView project:my-agentview-project/ dir. Go to the project:
agent.ts.
Set up environment variables
Before you start, you need to set up environment variables. Go to your org Dashboard to theAPI Keys tab and generate a development API key.
Here’s what your .env file should look like:
VITE_AGENTVIEW_ORGANIZATION_ID- your organization id, you can find it in Organization Details tab.AGENTVIEW_API_KEY- paste your development API key.OPENAI_API_KEY- your OpenAI API key (it’s needed since demo is using Responses API)
Run Chat Endpoint
Let’s run the chat endpoint:localhost:3000.
It’s a simple Hono HTTP server computing AI responses using OpenAI Responses API and AgentView SDK.
Test
Let’s test the chat endpoint:SESSION_ID and USER_TOKEN from the previous response):
422 error, as the input is not a string. AgentView handles the validation and provides a correct HTTP status code.
Run Studio
Let’s run the studio:localhost:1989.
After you log in you you can:
- browse sessions, you should see the sessions we just created via curl
- create new playground sessions
- invite teammates
- comment on sessions, mention others, leave like/dislike default scores.