OpenParable
Skip to content
← Back to skills

Webmd Drug Reviews

Research
webmd-drug-reviews

Webmd Drug Reviews is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Query the WebMD Drug Reviews dataset (~362 k patient reviews, 2007–2020). Use whenever the user asks about patient-reported drug effectiveness, ease of use, satisfaction ratings, side effects, or reviews for a specific drug or medical condition.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/webmd/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/webmd-drug-reviews, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

WebMD Drug Reviews Query Skill

Search patient reviews by drug name or medical condition. Auto-fallback: if no drug matches, searches conditions.

Input ExampleMatch Logic
Lipitorsubstring on Drug column
High Blood Pressuresubstring on Condition column
any texttry Drug first → fall back to Condition

API

FunctionInputReturns
load_reviews(path)CSV path (default DATA_PATH)list[dict]
search(rows, entity)single entity stringlist[dict]
search_by_drug(rows, drug)drug name stringlist[dict]
search_by_condition(rows, cond)condition stringlist[dict]
search_batch(rows, entities)list of entity stringsdict[str, list[dict]]
summarize(hits, entity)matched rows + labelcompact text (counts, avg ratings, top conditions/drugs)
to_json(hits)matched rowslist[dict]

Usage

See if __name__ == "__main__" block in 10_WebMD_Drug_Reviews.py for runnable examples covering: single drug lookup, single condition lookup, batch search, and JSON output.

Data

  • Source: webmd.csv (Kaggle – rohanharode07/webmd-drug-reviews-dataset)
  • Columns: Drug, Condition, Reviews, Side, Age, Sex, Effectiveness, EaseofUse, Satisfaction
  • Ratings: 1-5 star scale for Effectiveness, EaseofUse, Satisfaction
  • Path: DATA_PATH variable in 10_WebMD_Drug_Reviews.py (resources_metadata/drug_review/WebMDDrugReviews/webmd.csv)