cd /news/ai-agents/break-my-demo-400-attempts-and-no-su… · home › topics › ai-agents › article
[ARTICLE · art-176911] src=guardrail-api-core-production.up.railway.app ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Break my demo 400 attempts and no successes

A promotional page for an unnamed AI "Transaction & Refund Guardrail" API claims that 400 attack attempts against an unprotected AI customer-support bot produced no successful breaches once the guardrail was enabled, with the service calling a POST /verify endpoint that applies Layer 1 rules followed by a Layer 2 AI judge before an agent executes a refund, discount, or policy promise. The vendor offers a 7-day Shadow Mode trial at $0, then charges $99/mo for brands running one AI support agent and $399/mo for high-volume stores, support platforms, and agencies running many bots, with checks metered through Stripe. The page also supplies a copy-paste prompt instructing a coding assistant to wrap refund and discount actions in a verifyWithGuardrail helper with a 1000ms timeout that fails open during Shadow Mode.

recommendation

Wrap refund and discount tool calls in a verifyWithGuardrail check with a 1000ms timeout, run it in shadow mode first, and log blocked_by_policy and reason before enabling active blocking.

more in playbook: Securing agents and AI tools
read2 min views6 publishedNov 26, 2026

Without guardrail

Unprotected AI bot #

Customer

AI bot · sent instantly

One API call before every refund, discount, or policy promise. Try a real attack below and watch the guardrail catch it live.

With guardrail

Pick a preset or edit the form, then run a live check.

Calls POST /verify on this server.

Verifying against policy…

Layer 1 rules, then Layer 2 AI judge

Call it right before your agent executes. If it's not approved, hand off to a human.

Paste this prompt into your AI code editor. It finds your refund and discount actions, adds a verifyWithGuardrail helper, and wraps them in Shadow Mode so nothing changes for live customers.

Act as a senior software engineer. I want to integrate an external AI Transaction & Refund Guardrail API into this codebase to verify AI-generated refunds, discounts, and policy commitments before they execute.

### Integration Instructions
1. **Locate High-Stakes AI Actions:** Search this repository for where our AI customer support agent or workflow executes refunds, creates discount/promo codes, modifies orders, or sends final policy promises to customers.
2. **Add Environment Variables:** Add `GUARDRAIL_API_URL` (defaulting to `https://YOUR-RAILWAY-URL.up.railway.app/verify`) and `GUARDRAIL_API_KEY` (placeholder `YOUR_API_KEY_HERE`) to our `.env.example` or config file.
3. **Create a Non-Blocking Helper Function (`verifyWithGuardrail`):**
   - Send a `POST` request to `GUARDRAIL_API_URL` with header `Authorization: Bearer ${GUARDRAIL_API_KEY}` and `Content-Type: application/json`.
   - Pass this JSON body:
     ``` json
     {
       "action_type": "refund",
       "proposed_amount": 0.0,
       "order_total": 0.0,
       "days_since_purchase": 0,
       "policy_text": "STORE_RETURN_POLICY_HERE",
       "customer_message": "USER_MESSAGE_HERE",
       "ai_draft_reply": "AI_DRAFT_REPLY_HERE",
       "shadow_mode": true
     }
     ```
   - Set a strict `1000ms` fetch timeout. If the request times out or fails, log a warning and default to allowing execution (`fail-open` during Shadow Mode) so live customer traffic is never interrupted.
4. **Wrap Our Existing Action:** Call `verifyWithGuardrail` right before our refund/discount tool executes or sends its reply. Log the returned `blocked_by_policy` and `reason` fields to our console/logger. Keep `shadow_mode: true` by default so we can monitor results safely before switching `shadow_mode` to `false` for active blocking.

Show me the exact files you modified and confirm how to test it locally.

Watch what the guardrail would have blocked for a week with zero risk, then switch on active blocking.

$0for 7 days

See every refund and promise your AI would have gotten wrong, without touching live traffic.

$99/mo

For brands running one AI support agent that issues refunds or discounts.

$399/mo

For high-volume stores, support platforms, and agencies running many bots.

Paid plans: checks are metered through Stripe and your API key appears right after checkout. Cancel anytime.

── more in #ai-agents 4 stories · sorted by recency
── more on @stripe 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/break-my-demo-400-at…] indexed:0 read:2min 2026-11-26 · —