Use case

Website support assistant

A support assistant for an online store. It answers from the store's own docs and looks up prices with a tool on an MCP service.

What it does

  • Shipping, returns, warranty and sizing live in Markdown files that are indexed in Project Redis.
  • Prices come from a tool on an MCP service, so the assistant never guesses one.
  • Streams the reply as text while it speaks.

How it's built

This is the llm-store-support template. "Deploy this" creates a project with exactly these files, and you can edit them from there.

agent.ts
import { defineAgent } from "@voicethere/agent";
import { createLlmAgent } from "@voicethere/agent/llm";
import { openai } from "@voicethere/agent/llm/openai";
import config from "./voicethere.llm.json";
import systemPrompt from "./prompt.md";
import shipping from "./knowledge/shipping.md";
import returns from "./knowledge/returns.md";
import warranty from "./knowledge/warranty.md";
import sizing from "./knowledge/sizing.md";
import store from "./knowledge/store.md";
import products from "./knowledge/products.md";

// Needs Project Redis (the knowledge files are indexed there at start), a
// project service that runs the mcp-example-service image (prices come from
// its get_product_price tool), and the project secret AGENT_OPENROUTER_API_KEY,
// which serves both the chat model and the embeddings. To support your own
// store, replace the files in knowledge/ and point the service at your own MCP
// server (see README.md).
defineAgent(
  createLlmAgent({
    config,
    systemPrompt,
    providers: [openai],
    knowledge: {
      documents: [
        { id: "shipping", title: "Shipping", text: shipping },
        { id: "returns", title: "Returns", text: returns },
        { id: "warranty", title: "Warranty", text: warranty },
        { id: "sizing", title: "Sizing", text: sizing },
        { id: "store", title: "Store hours and contact", text: store },
        { id: "products", title: "Products", text: products },
      ],
    },
  }),
);
voicethere.llm.json
{
  "$schema": "./node_modules/@voicethere/agent/schema/voicethere.llm.schema.json",
  "version": 1,
  "provider": "openrouter",
  "model": "amazon/nova-micro-v1",
  "apiKeySecret": "AGENT_OPENROUTER_API_KEY",
  "maxOutputTokens": 1024,
  "greeting": {
    "text": "Hi, this is Kestrel Outdoor support. How can I help?",
    "interruptible": true
  },
  "bargeIn": { "mode": "project" },
  "history": { "turns": 20, "interruptionNote": true },
  "fillers": {
    "thinking": {
      "phrases": ["Okay.", "Right.", "Let me check."],
      "afterMs": 1500
    },
    "toolCall": {
      "phrases": ["Let me check that for you.", "One moment."]
    },
    "toolWait": {
      "phrases": ["Still checking, one moment.", "Almost there."],
      "afterMs": 4000
    },
    "interruptible": true
  },
  "toolChoice": "required-first-round",
  "tools": {
    "maxRounds": 4,
    "timeoutMs": 15000
  },
  "toolSources": [
    {
      "kind": "service",
      "path": "/mcp",
      "allow": ["list_products", "get_product_price"]
    }
  ],
  "knowledge": {
    "store": "redis",
    "topK": 3,
    "embeddings": {
      "provider": "openrouter",
      "model": "openai/text-embedding-3-small"
    },
    "redis": { "namespace": "store-support" }
  },
  "interruptPolicy": "cancel"
}

What it costs

8.4 credits per minute on VoiceThere, plus less than $0.001 per minute to the model vendor.

Measured on 2026-11-10 from a real demo session. See pricing.

Docs

← Back to showcase