# Use Cases

#### 1. E-commerce

**Product Detail Extraction**

```json
{
    "prompt": "Extract product information using these exact keys: productName, brand, currentPrice, originalPrice, discount (calculate if both prices present), availability (in stock/out of stock), variants (array of size/color combinations), specifications (key-value pairs), features (array), shipping (object with methods and prices)"
}
```

**Product Comparison**

```json
{
    "prompt": "Compare all products on the page using this structure: products (array), each with: name, price, key_features (array), pros (array), cons (array), best_for (string describing ideal use case). Add a comparison_summary highlighting key differences."
}
```

**Review Analysis**

```json
{
    "prompt": "Analyze product reviews and provide: averageRating, totalReviews, sentimentBreakdown (positive/negative/neutral counts), commonPros (array), commonCons (array), featureSentiment (how different features are rated), recommendationRate (percentage who recommend)"
}
```

#### 2. Content Analysis

**Article Summarization**

```json
{
    "prompt": "Analyze this article and provide: title, author, publishDate, summary (150 words max), mainPoints (array), conclusions (array), tone (formal/informal), targetAudience, expertiseLevel (beginner/intermediate/advanced), keyTerms (array with definitions)"
}
```

**Technical Documentation**

```json
{
    "prompt": "Extract from this technical documentation: apiEndpoints (array with method, path, parameters, responses), authenticationMethods (array), errorCodes (array with code, message, solution), examples (array of code snippets with language and description)"
}
```

**News Analysis**

```json
{
    "prompt": "Analyze this news article for: mainTopic, eventDate, location, keyPeople (array with roles), organizations (array), quotes (array with speaker and context), statistics (array), sources (array), bias (object analyzing potential biases)"
}
```

#### 3. Research and Analysis

**Academic Paper Analysis**

```json
{
    "prompt": "Extract from this research paper: title, authors (array), abstract, methodology, keyFindings (array), conclusions (array), references (array), statisticalSignificance (any mentioned p-values or confidence intervals), limitations (array)"
}
```

**Market Research**

```json
{
    "prompt": "Analyze this market report for: marketSize, growthRate, keyPlayers (array with market share), trends (array), opportunities (array), threats (array), segmentAnalysis (breakdown by market segments), forecast (future projections)"
}
```

#### 4. Real Estate

**Property Listing Analysis**

```json
{
    "prompt": "Extract property details: price, location (object with address components), propertyType, size (square footage), bedrooms, bathrooms, features (array), amenities (array), nearbyServices (array), taxes, utilities, photos (array with descriptions), contactInfo"
}
```

**Market Comparison**

```json
{
    "prompt": "Compare properties on this page: create array of properties, each with standardized metrics (price per sqft, total rooms, condition, etc.). Add marketAnalysis object with priceRange, averagePrice, commonFeatures, uniqueFeatures"
}
```

#### 5. Job Listings

**Job Description Analysis**

```json
{
    "prompt": "Extract job details: title, company, location (remote/hybrid/onsite), salary (if listed), requirements (array), responsibilities (array), benefits (array), requiredSkills (array), preferredSkills (array), experienceLevel, educationRequirements, applicationDeadline"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yetanotherapi.com/llm-web-scraper/use-cases.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
