Usage Examples
Real-world scenarios showing how SaveHealth works in AI conversations, with screenshots of the interactive UI.
End-to-End: Generic Drug Coupon
User prompt: "I need a discount coupon for Lisinopril 20mg. Find me the cheapest price and coupon code."
What happens:
search_drug("lisinopril")— finds 5 matches (Lisinopril, Zestril, Qbrelis, etc.), user selects Lisinoprilget_drug_options("lisinopril")— returns 14 options across 6 dosage strengths, Generic-first then Brand. Default: Lisinopril 20MG Tabletget_drug_prices(ndc, qty=30)— prices from 4 pharmacies, Albertsons cheapest at $9.74get_coupon(key)— coupon with BIN/PCN/Group/Member ID
Example output:
Lisinopril 20MG Tablet (Generic) prices:
Pharmacy Price Albertsons $9.74 Walgreens $9.79 Walmart $15.52 CVS $18.93 Your coupon for Albertsons:
- BIN: 011867 | PCN: HT | Group: LABH001 | Member ID: MC2D0DCCD0
Tools used: search_drug → get_drug_options → get_drug_prices → get_coupon
Brand Name Search — Discover the Generic Alternative
User prompt: "I have a prescription for Lipitor (10mg, quantity 30). Can you show me prices at different pharmacies?"
What happens:
search_drug("Lipitor")— single match, no disambiguation neededget_drug_options("lipitor", dosage="10mg")— shows both generic (Atorvastatin) and brand (Lipitor) at 10MG, generic listed firstget_drug_prices(ndc, qty=30)— prices for generic Atorvastatin
Example output:
Lipitor's generic equivalent is Atorvastatin — same active ingredient, much cheaper:
Pharmacy Price Walmart $3.45 Walgreens $9.81 Albertsons $15.01 CVS $18.72 That's a 5.4x price difference between Walmart and CVS!
Tools used: search_drug → get_drug_options → get_drug_prices
Disambiguation — Multiple Drug Matches
User prompt: "I need a coupon for insulin. Can you help me find the best price?"
What happens:
search_drug("insulin")— 5 matches withneeds_disambiguation: true- User selects "Insulin Lispro"
get_drug_options("insulin-lispro")— shows generic Vial + brand variants (Admelog, Humalog, Humalog Kwikpen)get_drug_prices(ndc, qty=1)— Walgreens cheapest at $2.00get_coupon(key)— coupon retrieved
Example output:
I found several types of insulin. Which one are you looking for?
- Insulin Syringe
- Insulin Lispro Prot & Lispro
- Insulin Lispro (1 Unit Dial)
- Insulin Lispro
- Insulin Glargine-yfgn
User selects Insulin Lispro
Generic Insulin Lispro 10ML Vial:
Pharmacy Price Walgreens $2.00 Albertsons $2.61 Walmart $4.90 CVS $21.15
Tools used: search_drug → get_drug_options → get_drug_prices → get_coupon
NDC-Direct Lookup — Skip Search and Options
User prompt: "I have my prescription bottle here. The NDC is 29300039710 for Amlodipine 5mg, quantity 30. Can you get me prices and a coupon?"
What happens:
- Steps 1-2 skipped — user provided the NDC directly
get_drug_prices("29300039710", qty=30)— prices from 4 pharmaciesget_coupon(key)— coupon for cheapest pharmacy
Example output:
Amlodipine 5MG Tablet prices:
Pharmacy Price Walgreens $9.34 Albertsons $9.62 Walmart $15.11 CVS $18.72 Your coupon for Walgreens:
- BIN: 019876 | PCN: CHIPPO | Group: LHX | Member ID: MC808A990B
Tools used: get_drug_prices → get_coupon (only 2 steps)
Explore Dosage Options
User prompt: "I'm prescribed Omeprazole. What dosage options are available?"
What happens:
search_drug("omeprazole")— 5 matches, user selects "Omeprazole"get_drug_options("omeprazole")— 25 options across 10MG/20MG/40MG Capsules, Tablets, Packets (Prilosec), and liquid forms
Example output:
Omeprazole is available in 25 options:
Name Dosage Form Default Qty Omeprazole 10MG Capsule Delayed Release 30 Omeprazole 20MG Capsule Delayed Release 30 Omeprazole 40MG Capsule Delayed Release 30 Omeprazole 20MG Tablet Delayed Release 90 Prilosec 2.5MG Packet 1 First-omeprazole 150ML of 2MG/ML Bottle 1 Want me to look up prices for a specific option?
Tools used: search_drug → get_drug_options
Interactive UI Walkthrough
When used in ChatGPT, SaveHealth displays an interactive UI widget alongside the conversation. Here's what each step looks like:
Drug Search

Dosage & Quantity Selection

Price Comparison

Discount Coupon Card

Workflow Summary
User asks about a drug
│
▼
┌─────────────────────────┐
│ search_drug │ Step 1: Find the drug
│ (fuzzy name search) │
└────────┬────────────────┘
│
┌────┴─────┐
│ Single │ Multiple
│ match │ matches
▼ ▼
proceed ask user
│ to choose
│ │
▼ ▼
┌─────────────────────────┐
│ get_drug_options │ Step 2: Pick dosage/form/qty
│ (Generic first, Brand │
│ second, default marked) │
└────────┬────────────────┘
│
▼
┌─────────────────────────┐
│ get_drug_prices │ Step 3: Compare pharmacy prices
│ (sorted cheapest first) │
└────────┬────────────────┘
│
▼
┌─────────────────────────┐
│ get_coupon │ Step 4: Get coupon details
│ (BIN, PCN, Group, ID) │
└─────────────────────────┘INFO
Users who already have an NDC code skip directly to Step 3 (get_drug_prices).
For detailed workflow diagrams, see the Workflows documentation.
