kmaruthi2002/universal-llm-skills/chatbot-and-conversational-apps
Claude Code and agent skill by kmaruthi2002/universal-llm-skills
- community
Checking that the SKILL.md file is still in the repository.
Design and build chatbots, virtual assistants and voice or messaging applications end to end: conversation design, choosing between scripted flows, intent classification and LLM-driven dialogue, conversation state and memory, turn-taking, clarification, fallback and escalation to humans, channel constraints (web chat widgets, SMS, WhatsApp and chat platforms like Slack/Teams/Discord, voice/IVR), safety, analytics and evaluation. Use when someone wants to build a chatbot, support bot, assistant, conversational interface, Slack/Discord/Teams bot, SMS or WhatsApp bot, voice assistant or phone bot, or to fix a bot that misunderstands users, loops, or hands off badly.
Install
npx vskill@latest install kmaruthi2002/universal-llm-skills/chatbot-and-conversational-appsSKILL.md
The same SKILL.md was published earlier as kmaruthi2002/universal-llm-skills/chatbot-and-conversational-apps.
Chatbot and Conversational Apps
A conversational app is a user interface where the user's input is unbounded and the interface must still behave predictably. That combination is the whole difficulty: users say anything, in any order, with typos, half-sentences and changes of mind, and the bot must still complete tasks, stay on topic, not make things up, and know when to stop and hand over to a person. Good conversational products are designed around the failures as much as the happy path.
Scope
Covers: product and conversation design for bots and assistants; architecture choice (scripted, intent-based, LLM-driven, hybrid); dialogue state and memory; turn-taking and response design; fallback and human escalation; channel-specific constraints; integration with back-end systems; safety and privacy; analytics and evaluation.
Defers to: llm-application-development for LLM app plumbing in general, prompt-engineering for writing the system prompt, rag-systems for grounding answers in documents, ai-agents-and-tool-use for tool-calling loops, llm-evaluation for building eval suites, ai-safety-and-guardrails for guardrail design, ux-writing for the words themselves, api-integrations-and-webhooks for channel webhooks.
Core principles
- Start from the jobs, not the technology. List the concrete tasks users come to do (check order status, reset a password, book a slot, ask policy questions) and how often. A bot that does five high-volume jobs well beats one that chats about everything and completes nothing. Why: conversational scope is invisible to users — they will try anything — so the design must make the bot's actual capabilities discoverable and dependable.
- Conversation is a UI, so it needs affordances. Users cannot see the menu in a text box. Tell them what the bot can do, offer suggestions or buttons where the channel supports them, and confirm what the bot understood before acting. Why: blank-box anxiety and misunderstood requests are the top causes of abandonment.
- Deterministic where it must be, generative where it helps. Use structured flows and code for anything that moves money, changes accounts, collects consent or must follow regulation. Use language models for understanding messy input, answering open questions from trusted sources, and phrasing. Why: generative models are excellent at language and unreliable at guarantees.
- State is explicit. Track what the bot knows about the conversation (goal, collected slots, confirmations, user identity, channel) in a data structure, not only implicitly in transcript text. Why: explicit state can be validated, persisted, resumed, handed to a human and debugged.
- Every path ends somewhere good. Each conversation either completes the task, hands off to a human with context, or tells the user clearly where to go next. Dead ends, loops and "I didn't understand that" repeated three times are design bugs.
- The channel shapes the conversation. A voice call, an SMS thread, a Slack thread and a web widget have different message lengths, latency expectations, rich-element support, identity signals and regulations. Design per channel; do not port a web widget's script to voice unchanged.
- Measure with real conversations. Transcripts, task completion and escalation reasons are the ground truth. Designers' imagined dialogues miss most of what users actually say.
Choosing the architecture
| Approach | How it works | Strengths | Weaknesses | Choose when | |
|---|---|---|---|---|---|
| Scripted / menu flows | Buttons, keywords, decision trees | Predictable, auditable, cheap, works on every channel | Brittle with free text; feels rigid | Few tasks, regulated steps, low-tech channels (SMS keywords, IVR menus) | |
| Intent + slot (NLU) | Classify utterance into intents, extract entities, drive a dialogue manager | Controllable, measurable per intent, fast | Needs training data per intent; out-of-scope handling is hard; long tail of phrasings | Moderate number of well-defined tasks, need for strict control, existing NLU platform | |
| LLM-driven | A model reads the conversation and decides responses, possibly calling tools | Handles messy language, open questions, long tail, natural phrasing | Can hallucinate, drift off-policy, be prompt-injected; latency and cost; harder to guarantee flows | Open-ended Q&A over documents, assistance tasks, broad and varied requests | |
| Hybrid (common default for new builds) | LLM for understanding and open answers; deterministic flows/tools for transactions and policy | Natural language with guarantees where they matter | More moving parts; must define the boundary clearly | Most production assistants with both Q&A and actions |
Hybrid patterns that work:
- LLM as router: the model classifies the request into a known task (or "open question" / "out of scope" / "human"), then a deterministic flow or a grounded answering path takes over.
- LLM as slot filler: a flow defines what must be collected; the model extracts slot values from free text and generates the next question; code validates values.
- Tools behind policy: the model may call tools, but tools enforce authorisation, validation and confirmation in code; the model never holds the authority.
- Grounded answering: answers to factual questions come only from retrieved, approved content, with the bot saying it does not know otherwise (see
rag-systems).
If the project already uses a bot platform or framework (e.g. a cloud conversational AI service, an open-source dialogue framework, a channel's own bot SDK), work within it; it likely owns state, channel adapters and analytics.
When not to build a chatbot
Say so when a conversation is the wrong interface:
- The task is a short, structured form (a chat that asks five fixed questions in order is a worse form).
- Users need to compare many options visually (tables, filters and galleries beat a chat transcript).
- The information is already easy to find and the real problem is navigation or search.
- There is no reliable back-end to act on, so the bot could only tell users to go elsewhere.
- The organisation cannot staff the escalation path or maintain the knowledge it draws on.
Often the best answer is a better page, search, or form plus a narrow bot for the remaining cases.
Platform vs custom build
| Factor | Lean on a bot platform/service | Lean on a custom build | |
|---|---|---|---|
| Channels | Many channels, standard features | One or two channels, unusual UX | |
| Team | Conversation designers, few engineers | Engineering-heavy team | |
| Control | Standard flows, built-in analytics and handoff acceptable | Need full control of model, data flow, hosting | |
| Compliance | Platform offers required certifications/residency | Data must stay in your infrastructure | |
| Lock-in tolerance | Acceptable | Low |
Either way, keep your conversation designs, test scenarios and knowledge content in a portable form so you can move.
Process
1. Define jobs, users and boundaries
- List tasks with estimated volume, value and risk. Pick a first set that covers a large share of volume at manageable risk.
- Write what is out of scope and how the bot responds to it.
- Identify users and context: authenticated or anonymous, first-time or repeat, emotional state (support contacts are often frustrated), accessibility needs, languages.
- Decide the human fallback: is there a team, what hours, what channel, what queue, what wait times. A bot without a real escalation path must say so honestly.
- Gather real data: historical chat logs, support tickets, call transcripts, search queries, FAQs. They reveal actual phrasing and task distribution. Handle them as personal data (see Safety).
2. Discover context
- Existing bot? Read its flows/intents, prompts, tool definitions, state schema, and recent transcripts before changing anything. Find the analytics on where conversations fail.
- Brand voice and UX-writing guidelines: follow them for persona and tone; do not invent a persona if one exists.
- Back-end systems: which APIs the bot must call, their auth model, rate limits and failure modes.
- Channel accounts and constraints: which numbers, workspaces, pages; approval requirements (e.g. message templates on some messaging platforms, sender registration for SMS in many countries).
- Compliance: recording consent for voice, opt-in/opt-out rules for SMS, data residency, sector rules (health, finance, children).
3. Design conversations
- Write sample dialogues for each task: happy path, missing info, wrong info, change of mind, user asks something else mid-task, user goes silent, user is angry, user asks for a human. Read them aloud — voice designers do this for every prompt; it helps text too.
- Define slots and validation: what must be known to complete each task, how each is validated, and how to re-ask without repeating the same sentence.
- Confirmation strategy by risk: implicit confirmation for low-risk ("Okay, showing orders from March."), explicit for anything consequential ("Cancel order 4412 for $38.20? Yes / No").
- Openings: say what the bot is (users have a right to know they are talking to a bot in many jurisdictions and it sets expectations), and what it can help with, briefly.
- Error and repair: escalate gradually — rephrase the question, offer options, then offer a human. Never repeat the identical failure message.
- Closings: confirm the outcome, give references (order numbers, ticket IDs), and ask if anything else is needed only when that is useful.
See references/conversation-design-patterns.md for detailed patterns on prompts, repair and confirmations.
4. Model state and memory
Separate kinds of memory, each with its own lifetime and privacy rules:
| Memory | Contents | Lifetime | Notes | |
|---|---|---|---|---|
| Turn context | The latest message and immediate history | Turn | What the model or NLU sees | |
| Dialogue state | Current task, filled slots, pending confirmation, step | Conversation | Structured; persisted so conversations survive restarts and channel delays | |
| Session/user profile | Identity, preferences, language, account links | Across conversations | Requires authentication; subject to consent and retention policy | |
| Long-term memory (LLM assistants) | Facts the user asked to remember, summaries | User-controlled | Let users see and delete it; never store sensitive data without clear consent | |
| Knowledge | Documents, policies, product data | Independent of user | Versioned; retrieved, not memorised |
Practical rules:
- Persist dialogue state keyed by conversation ID (and channel), not in process memory; channels deliver messages to whichever instance is up.
- For LLM conversations, manage the context window: keep the system instructions and current state fixed, summarise or trim older turns, and re-inject the structured state each turn rather than trusting the model to remember slots from far back.
- Define timeouts: when does a half-finished task expire? What does the bot say when the user returns a day later?
- Make state handoff-ready: a human agent should receive the task, collected slots, what the bot tried, and the transcript.
5. Build integrations and tools
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/chatbot-and-conversational-apps/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kmaruthi2002/universal-llm-skills/chatbot-and-conversational-apps)