Design conversational AI chatbots including intent recognition, slot filling, dialogue flow, and response generation. Use this skill when the user needs to build a chatbot, design conversation flows, implement intent classification, or improve chatbot accuracy — even if they say 'build a chatbot', 'our bot doesn't understand users', 'design a FAQ bot', or 'improve our chatbot's responses'.
npx skills add https://github.com/asgard-ai-platform/skills --skill cs-chatbot-design
IRON LAW: Intent First, Response Second
A chatbot must UNDERSTAND what the user wants (intent) before crafting
a response. Building response templates without intent classification
produces a keyword-matching FAQ, not a chatbot.
Flow: User message → Intent classification → Slot extraction → Response
| Stage | What It Does | Example |
|-------|-------------|---------|
| Intent Classification | Identify what the user wants to do | "What time do you close?" → intent: check_hours |
| Entity/Slot Extraction | Extract key information from the message | "Book a table for 4 on Friday" → slots: {party_size: 4, date: Friday} |
| Dialogue Management | Decide the next action (ask for missing info, confirm, execute) | Missing slot time → ask "What time would you like?" |
| Response Generation | Produce the reply | "I've booked a table for 4 on Friday at 7pm. See you then!" |
fallback intent for unrecognized inputsorder_status, order_cancel, order_modify under "Order Management"| Pattern | When to Use | Example |
|---------|-----------|---------|
| Single-turn | Simple Q&A, no context needed | "What are your hours?" → respond immediately |
| Multi-turn (slot filling) | Need multiple pieces of info | "Book a table" → ask party size → ask date → ask time → confirm |
| Branching | Different paths based on user's answer | "Do you have an account?" → Yes: login flow / No: registration flow |
| Confirmation | Before executing actions | "I'll cancel order #12345. Is that correct?" |
| Handoff | Bot can't handle the request | "Let me connect you with a human agent" |
| Metric | Definition | Target |
|--------|-----------|--------|
| Intent accuracy | % correctly classified intents | > 85% |
| Containment rate | % resolved without human handoff | > 60-70% |
| CSAT | Customer satisfaction score | > 4.0/5 |
| Fallback rate | % triggering fallback/unknown intent | < 15% |
| Resolution time | Average time to resolve | < 2 minutes |
# Chatbot Design: {Use Case}
## Intent Catalog
| Intent | Description | Example Utterances | Priority |
|--------|-----------|-------------------|---------|
| {intent} | {what it means} | "{example 1}", "{example 2}" | H/M/L |
## Dialogue Flows
### {Flow Name}
1. User: {trigger utterance}
2. Bot: {response + slot question if needed}
3. User: {provides info}
4. Bot: {confirmation or action}
## Fallback Strategy
- After 1 miss: rephrase + suggest options
- After 2 misses: offer human handoff
## Metrics Targets
| Metric | Target |
|--------|--------|
| Intent accuracy | > {X%} |
| Containment | > {X%} |
references/nlu-training.mdCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Replace with description of the skill and when Claude should use it.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Use when creating new skills, editing existing skills, or verifying skills work before deployment
Take asgard-ai-platform/cs-chatbot-design from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.