medeco-search-chatbot
Operational guide and architecture for the medEco AI Voice & Audio Search Chatbot, including speech recognition, voice memo recording, clinical…
Skill by karthik-v-dev
Chalk Labs
Need help deploying medeco-search-chatbot?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/karthik-v-dev-medeco-search-chatbot
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/medeco-search-chatbot
What's inside
- Skill name
medeco-search-chatbot- Description
- Operational guide and architecture for the medEco AI Voice & Audio Search Chatbot, including speech recognition, voice memo recording, clinical symptom-to-tablet matching, conversational ordering, and WhatsApp order confirmation with live tracking.
- License
- MIT
- Instructions
- 63 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# medEco AI Search Chatbot Skill
## Overview
The `SearchChatbot` component (`src/components/SearchChatbot.tsx`) provides an intelligent, conversational search, clinical tablet recommendation, and order fulfillment interface. It is exclusively rendered after a user authenticates (`session !== null`).
## Capabilities
1. **Multi-Modal Input Processing**:
- **Speech Recognition**: Uses browser Web Speech API (`SpeechRecognition` / `webkitSpeechRecognition`) with `lang: 'en-IN'` to capture real-time spoken symptoms.
- **Voice Memo Recording**: Uses `navigator.mediaDevices.getUserMedia` and `MediaRecorder` to capture audio notes (WebM) with audio playback and duration timers.
- **Audio File Upload**: Accepts pre-recorded audio files (`.mp3`, `.wav`, `.m4a`, `.webm`, `.ogg`) via file input and extracts symptoms.
- **Text Query Filtering**: Natural language parsing of common symptoms and medicine names with interactive suggestion chips.
2. **Clinical Symptom-to-Medicine Matching Engine**:
- Matches clinical keywords against a predefined illness definition dictionary (`CLINICAL_ILLNESS_MAP`) covering fever, headaches, cold/flu, cough, acidity/GERD, abdominal spasms, diarrhea, allergies, diabetes, hypertension, vitamin deficiencies, and bacterial infections.
- Cross-references matching medicines in `getMedicines()` and retrieves live stock across all 4 pharmacy stores via `getBranchStocks()`.
3. **Conversational Ordering & Follow-Up Flow**:
- Following tablet recommendations, the AI directly asks the customer if they wish to proceed with an online prescription order.
- Interactive Action Chips:
- **"Proceed to Online Order"**: Pre-fills suggested tablets and clinical notes into `OnlineOrderModal` and opens it.
- **"Include Existing Illness"**: Prompts the customer for chronic conditions or secondary symptoms to ensure safe supportive therapy.
- **"Need Pharmacist Help"**: Instant helpline numbers and direct phone lines to all 4 nearest branches.
- **"Clear Chat"** / **"Close Chat"** buttons for quick conversation lifecycle control.
4. **WhatsApp Order Confirmation & Deep-Link Live Tracking**:
- Listens to `lastPlacedOrder` and automatically generates WhatsApp dispatch links:
- **Send to Customer Mobile** (`wa.me/91${customerMobile}?text=...`): itemized receipt, order total, delivery hub, and live tracking deep-link.
- **Alert Store Pharmacist** (`wa.me/91${branchPhone}?text=...`): instantly notifies dispensary staff with item breakdown and link to active SOP manager.
- **In-App Live Tracking**: Direct navigation button to view the active order on the 5-stage SOP timeline (`/?track=${order.id}&tab=customer_history`).
5. **Role-Based Privacy Boundary**:
- **Patient View**: Internal warehouse physical rack locations and box numbers are **strictly hidden**. Shows price (MRP), dosage advice, meal relation, stock availability, and a 1-tap "Add to Cart / Order" button.
- **Owner View**: Exposes exact physical shelf location (e.g. `Rack A, Shelf 2 [Box-04]`), cost price, batch number, and a direct "View on Rack" shortcut button.
6. **Patient Account Shortcuts**:
- Allows patients to ask *"My orders"* or *"Track order"* to review recent prescription orders.
- Allows patients to ask *"My reminders"* or *"My schedule"* to view active dosage reminders.
7. **Background Scroll Lock & Mobile Viewport Protection**:
- Calls `useModalScrollLock(isOpen && !isMinimized)` to freeze `<html>` and `<body>` background scrolling on both desktop and mobile whenever the chatbot is expanded.
- Employs mobile backdrop overlay (`fixed inset-0 z-45 bg-slate-900/60 md:hidden`) that absorbs background touches and permits tap-to-minimize.
- Floating launcher is placed comfortably at `bottom-20 right-4` on mobile to avoid overlapping the mobile bottom navigation bar.
## Props Interface
```typescript
interface SearchChatbotProps {
session: UserSession | null;
medicines: Medicine[];
branches: PharmacyBranch[];
onAddToCart?: (medicine: Medicine, quantity?: number) => void;
onNavigateToRack?: (rackId: string) => void;
onOpenOnlineOrder?: (prefillItems?: OnlineOrderItem[], notes?: string) => void;
onNavigateToTab?: (tab: string) => void;
isOpenExternal?: boolean;
onCloseExternal?: () => void;
lastPlacedOrder?: OnlineOrder | null;
}
```
## Testing & Verification
- Verify that the floating chatbot button appears only when logged in.
- Test speech recognition in Google Chrome or Microsoft Edge by clicking the microphone button.
- Test audio file upload with sample `.mp3` or `.wav` voice recording.
- Verify that warehouse rack numbers do not appear when logged in as a customer.
- Verify that opening the chatbot freezes background page scroll, and closing/minimizing restores scrolling.
- Verify that after tablet suggestion, follow-up actions ("Proceed to Online Order", "Include Existing Illness", "Need Help") appear.
- Verify that submitting an online order generates the WhatsApp dispatch card with customer and owner WhatsApp buttons and live tracking link.From karthik-v-dev/medEco, MIT.
More from karthik-v-dev/medEco
- 0.521score
medeco-multistore-dashboard
karthik-v-dev
Operational guide for medEco Multi-Store Dashboard, cross-branch inventory balancing, supplier stock consignments, and 5-stage online order SOP management.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-online-order-modal
karthik-v-dev
Operational guide for medEco Online Order Modal, prescription image upload, 8 km radius geofencing validation, and nearest branch auto-allocation.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-customer-directory
karthik-v-dev
Operational guide for medEco Customer Directory, branch-level patient management, mobile number registration lookup, and real-time security PIN resets.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-inventory-manager
karthik-v-dev
Operational guide for medEco Master Inventory Control, physical shelf/rack indexing, batch numbers, expiry dates, and low-stock replenishment alerts.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-billing-pos
karthik-v-dev
Operational guide for the medEco POS Billing system, cart management, GST taxation, discounts, physical rack recording, and printable invoice generation.
SkillBFreshness: BClaude Code +9 - 0.516score
medeco-reminder-manager
karthik-v-dev
Operational guide for medEco Medicine Reminders, daily dosage timing schedules, meal relations, and automated reminder alerts.
SkillBFreshness: BClaude Code +9 - 0.516score
medeco-medicine-finder
karthik-v-dev
Operational guide for the medEco Medicine Finder, multi-criteria search, substitute recommendation, category filtering, and direct cart actions.
SkillBFreshness: BClaude Code +9 - 0.516score
medeco-rack-layout
karthik-v-dev
Operational guide for medEco Visual Pharmacy Shelf & Rack Organizer, temperature zones, and physical warehouse bin storage.
SkillBFreshness: BClaude Code +9 - 0.513score
medeco-pharmacy-app
karthik-v-dev
Comprehensive development, architecture, and upgrade guide for medEco - the smart pharmacy medicine rack locator, POS billing with GST & discounts, customer…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/karthik-v-dev/medEco
- Website
- med-eco.vercel.app
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from karthik-v-dev
- 0.521score
medeco-multistore-dashboard
karthik-v-dev
Operational guide for medEco Multi-Store Dashboard, cross-branch inventory balancing, supplier stock consignments, and 5-stage online order SOP management.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-online-order-modal
karthik-v-dev
Operational guide for medEco Online Order Modal, prescription image upload, 8 km radius geofencing validation, and nearest branch auto-allocation.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-customer-directory
karthik-v-dev
Operational guide for medEco Customer Directory, branch-level patient management, mobile number registration lookup, and real-time security PIN resets.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-inventory-manager
karthik-v-dev
Operational guide for medEco Master Inventory Control, physical shelf/rack indexing, batch numbers, expiry dates, and low-stock replenishment alerts.
SkillBFreshness: BClaude Code +9 - 0.521score
medeco-billing-pos
karthik-v-dev
Operational guide for the medEco POS Billing system, cart management, GST taxation, discounts, physical rack recording, and printable invoice generation.
SkillBFreshness: BClaude Code +9 - 0.516score
medeco-reminder-manager
karthik-v-dev
Operational guide for medEco Medicine Reminders, daily dosage timing schedules, meal relations, and automated reminder alerts.
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get medeco-search-chatbot running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
medeco-search-chatbot skill. Agent Mart. https://agentmart.dev/skills/karthik-v-dev-medeco-search-chatbot (last updated 2026-10-24)