- Home
- Skills
- Workflow Automation
- AI Support Chatbot That Never Makes Up Prices
Works with the AI Agents you already use
AI Support Chatbot That Never Makes Up Prices
Build grounded, idempotent AI support agents that handle orders and Stripe webhooks without hallucinations or duplicates.
Free
AI Support Chatbot That Never Makes Up Prices
Example session with this skill installed
I need to build a customer support bot for my shop that handles orders via Telegram. It must use Stripe for payments and never hallucinate prices. Give me the core architecture and an intent schema.
- Read your context and instructions
- Compiled the ai support chatbot
I have outlined the architecture and the schema-validated intent parser required for a grounded support agent.
Grounded Agent Architecture
The system uses a "Model-Understand, Code-Decide" pattern. The LLM identifies the intent, but the business logic is handled by a state machine and validated API calls.
Intent Parser Schema (TypeScript/Zod)
import { z } from "zod";
const IntentSchema = z.object({
intent: z.enum([
"product",
"order",
"faq",
"track",
"cancel",
"human",
"other"
]),
query: z.string().optional(),
items: z.array(z.object({
productId: z.string(),
quantity: z.number().int().positive()
})).optional()
});
type Intent = z.infer<typeof IntentSchema>;
Core Implementation Components
| Component | Responsibility | Implementation Detail |
|---|---|---|
| Guardrails | Deterministic Regex | Intercepts "Order #123" or "YES/NO" before the LLM to save tokens. |
| Idempotency | Transactional Lock | Uses chat:{id}:cart:{v} as a unique key in the DB to prevent double-ordering. |
| Data Fetching | API Templates | Bot only fills Price: {{api.price}} instead of guessing the value. |
| Webhooks | Raw Body Check | Validates Stripe signatures on the raw buffer before JSON parsing. |
Next steps
- Define your
ShopInterfacemethods forsearchandcreateOrder. - Populate an evaluation file with 40 real user queries to test the Zod parser.
- Configure your Stripe webhook to store
event.idin aprocessed_eventstable.
Connects securely to your tools. The creator never sees your data.
About this skill
Chatbots that hallucinate prices or duplicate orders kill customer trust and drain margins. This skill provides the architecture and implementation patterns to build support agents that remain strictly grounded in your database and API.
What it does
- Intent parsing transforms messy user messages into schema-validated JSON using Zod or Pydantic.
- Deterministic guardrails handle greetings, order IDs, and confirmations before the LLM to reduce costs and errors.
- Idempotent ordering prevents duplicate charges and overselling via unique keys and database transactions.
- Webhook security verifies Stripe signatures on raw bodies and tracks event IDs to stop double-processing.
- Human handover detects frustration or explicit requests to pause the bot and alert a team member.
- Data-driven responses ensures the model only populates templates with real-time API data rather than generating facts.
How it works
- Define the interface for your shop API, covering search, order retrieval, and cancellation.
- Configure the state machine to manage chat flows from idle to order placement and handover.
- Implement the intent parser with a rule-based fallback for when the LLM fails validation.
- Deploy the evaluation script against a set of 40+ real customer messages to measure accuracy.
Frameworks & tools
Built for TypeScript or Python environments using Zod, Pydantic, Stripe, and SQL-based databases like PostgreSQL or SQLite. Works with Shopify, WooCommerce, or custom REST APIs.
Why this beats prompting it yourself
Prompting alone cannot guarantee stock accuracy or prevent duplicate Stripe events. This skill provides the infrastructure for state management and idempotency that a stateless LLM cannot perform.
Use cases
- Build a Telegram or WhatsApp shop assistant that takes orders without human intervention.
- Add an FAQ bot to a web chat that hands off to a person when the user gets frustrated.
- Fix a production chatbot that is currently hallucinating fake discount codes or policies.
- Secure a Stripe webhook integration against duplicate delivery events.
Known limitations
Requires a structured shop API and a database that supports transactions. Handover alerts require a separate notification channel like Slack or email.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.