# VerifiedX Vercel AI SDK single-agent support starter

Protect a high-impact refund action in a single-agent Vercel AI SDK workflow without rebuilding the UI or tool loop.

This starter mirrors a real single-agent support flow:

- the agent looks up the support case
- the agent checks refund risk on the order
- the same agent attempts the refund
- VerifiedX blocks the refund because identity and fraud checks do not justify it
- the agent keeps the case moving by queueing a fraud review

## Run it

```bash
npm install
npx @verifiedx-core/sdk doctor
```

Set env:

```bash
export OPENAI_API_KEY=...
export VERIFIEDX_API_KEY=...
export VERIFIEDX_BASE_URL=https://api.verifiedx.me
```

Run:

```bash
npm start
```

What to check:

- `artifacts/scenario_report.json`
- `artifacts/verifiedx_diagnostics.jsonl`

You should see the support case lookup, refund risk lookup, a blocked refund attempt, and a queued review that keeps the case moving.
