Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

VoltAgent Feedback Templates

This example shows how to configure different feedback templates per agent so the Console can render thumbs, numeric sliders, and categorical options.

Agents

  • thumbs - boolean satisfaction signal (thumbs up/down)
  • rating - continuous 1-5 rating slider
  • issues - categorical issue type selection

Setup

  1. Install dependencies:
pnpm install
  1. Copy the env file and set your keys:
cp .env.example .env

Update OPENAI_API_KEY, VOLTAGENT_PUBLIC_KEY, and VOLTAGENT_SECRET_KEY in .env.

  1. Start the server:
pnpm dev

The server runs on http://localhost:3141 by default.

Usage

Send a message to any agent:

curl -X POST http://localhost:3141/agents/thumbs/chat \
  -H "Content-Type: application/json" \
  -d '{"input":"Give me a quick summary of VoltAgent."}'
curl -X POST http://localhost:3141/agents/rating/chat \
  -H "Content-Type: application/json" \
  -d '{"input":"Explain vector search in two sentences."}'
curl -X POST http://localhost:3141/agents/issues/chat \
  -H "Content-Type: application/json" \
  -d '{"input":"Draft a short welcome email."}'

Open the Console Observability Playground to test the feedback UI on each agent response.