Skip to content

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:

  1. search_drug("lisinopril") — finds 5 matches (Lisinopril, Zestril, Qbrelis, etc.), user selects Lisinopril
  2. get_drug_options("lisinopril") — returns 14 options across 6 dosage strengths, Generic-first then Brand. Default: Lisinopril 20MG Tablet
  3. get_drug_prices(ndc, qty=30) — prices from 4 pharmacies, Albertsons cheapest at $9.74
  4. get_coupon(key) — coupon with BIN/PCN/Group/Member ID

Example output:

Lisinopril 20MG Tablet (Generic) prices:

PharmacyPrice
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_drugget_drug_optionsget_drug_pricesget_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:

  1. search_drug("Lipitor") — single match, no disambiguation needed
  2. get_drug_options("lipitor", dosage="10mg") — shows both generic (Atorvastatin) and brand (Lipitor) at 10MG, generic listed first
  3. get_drug_prices(ndc, qty=30) — prices for generic Atorvastatin

Example output:

Lipitor's generic equivalent is Atorvastatin — same active ingredient, much cheaper:

PharmacyPrice
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_drugget_drug_optionsget_drug_prices


Disambiguation — Multiple Drug Matches

User prompt: "I need a coupon for insulin. Can you help me find the best price?"

What happens:

  1. search_drug("insulin") — 5 matches with needs_disambiguation: true
  2. User selects "Insulin Lispro"
  3. get_drug_options("insulin-lispro") — shows generic Vial + brand variants (Admelog, Humalog, Humalog Kwikpen)
  4. get_drug_prices(ndc, qty=1) — Walgreens cheapest at $2.00
  5. get_coupon(key) — coupon retrieved

Example output:

I found several types of insulin. Which one are you looking for?

  1. Insulin Syringe
  2. Insulin Lispro Prot & Lispro
  3. Insulin Lispro (1 Unit Dial)
  4. Insulin Lispro
  5. Insulin Glargine-yfgn

User selects Insulin Lispro

Generic Insulin Lispro 10ML Vial:

PharmacyPrice
Walgreens$2.00
Albertsons$2.61
Walmart$4.90
CVS$21.15

Tools used: search_drugget_drug_optionsget_drug_pricesget_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:

  1. Steps 1-2 skipped — user provided the NDC directly
  2. get_drug_prices("29300039710", qty=30) — prices from 4 pharmacies
  3. get_coupon(key) — coupon for cheapest pharmacy

Example output:

Amlodipine 5MG Tablet prices:

PharmacyPrice
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_pricesget_coupon (only 2 steps)


Explore Dosage Options

User prompt: "I'm prescribed Omeprazole. What dosage options are available?"

What happens:

  1. search_drug("omeprazole") — 5 matches, user selects "Omeprazole"
  2. 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:

NameDosageFormDefault Qty
Omeprazole10MGCapsule Delayed Release30
Omeprazole20MGCapsule Delayed Release30
Omeprazole40MGCapsule Delayed Release30
Omeprazole20MGTablet Delayed Release90
Prilosec2.5MGPacket1
First-omeprazole150ML of 2MG/MLBottle1

Want me to look up prices for a specific option?

Tools used: search_drugget_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:

Step 1 — Select your drug

Dosage & Quantity Selection

Step 2 — Choose dosage and quantity

Price Comparison

Step 3 — Compare pharmacy prices

Discount Coupon Card

Step 4 — Your coupon details


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.

Powered by SaveHealth