# Basic Text

This guide provides examples of basic text prompts for the LLM Web Scraper API. These prompts are ideal when you want more natural, flexible output without strict structure requirements.

### Article Analysis

#### News Article Analysis

```json
{
    "url": "https://example.com/news-article",
    "prompt": "Analyze this news article and provide: the main story topic, key events described, important people mentioned, locations involved, and any significant statistics or numbers cited. Also note any bias or perspective in the reporting."
}
```

Example Response:

```json
{
    "mainTopic": "Global Climate Summit 2024",
    "keyEvents": [
        "Agreement signed by 195 countries",
        "New emissions targets set for 2030",
        "$100B climate fund established"
    ],
    "keyPeople": [
        {
            "name": "Dr. Sarah Chen",
            "role": "UN Climate Chief",
            "significance": "Led negotiations"
        },
        {
            "name": "John Smith",
            "role": "EU Climate Commissioner",
            "significance": "Proposed funding mechanism"
        }
    ],
    "locations": [
        {
            "place": "Geneva, Switzerland",
            "context": "Summit location"
        },
        {
            "place": "Pacific Islands",
            "context": "Most affected region discussed"
        }
    ],
    "statistics": [
        {
            "value": "45% reduction",
            "context": "Proposed emissions cut by 2030"
        },
        {
            "value": "$100 billion",
            "context": "Annual climate fund size"
        }
    ],
    "reportingPerspective": "Generally neutral with emphasis on urgency of climate action"
}
```

#### Blog Post Analysis

```json
{
    "url": "https://example.com/blog-post",
    "prompt": "Analyze this blog post and extract: the main topic, key arguments or points made, any examples or case studies used, the author's conclusions, and the overall tone. Also identify any calls to action or reader recommendations."
}
```

Example Response:

```json
{
    "mainTopic": "Remote Work Productivity",
    "keyPoints": [
        "Remote work increases productivity by reducing distractions",
        "Digital tools enable effective collaboration",
        "Work-life balance improves employee retention"
    ],
    "caseStudies": [
        {
            "company": "TechCorp Inc",
            "outcome": "37% productivity increase after remote transition",
            "keyLearnings": [
                "Clear communication protocols needed",
                "Regular virtual team meetings essential"
            ]
        }
    ],
    "conclusions": [
        "Remote work is here to stay",
        "Success requires proper tools and policies",
        "Hybrid models likely to become standard"
    ],
    "tone": "Optimistic and practical",
    "callsToAction": [
        "Assess your team's remote work readiness",
        "Invest in collaboration tools",
        "Develop clear remote work policies"
    ]
}
```

### Product Review Analysis

#### Single Product Review

```json
{
    "url": "https://example.com/product-review",
    "prompt": "Analyze this product review and extract: the overall verdict, main pros and cons, key features discussed, any performance metrics mentioned, value for money assessment, and comparison with competitors. Also note any specific use cases or scenarios mentioned."
}
```

Example Response:

```json
{
    "overallVerdict": "Excellent premium smartphone with outstanding camera",
    "rating": 4.5,
    "pros": [
        "Exceptional camera quality",
        "All-day battery life",
        "Premium build quality"
    ],
    "cons": [
        "High price point",
        "No expandable storage",
        "Average charging speed"
    ],
    "keyFeatures": [
        {
            "feature": "Camera System",
            "details": "48MP main, 12MP ultra-wide",
            "performance": "Outstanding in low light"
        },
        {
            "feature": "Battery",
            "details": "4500mAh",
            "performance": "15-18 hours typical use"
        }
    ],
    "valueAssessment": "Premium priced but justified for photography enthusiasts",
    "competitorComparison": [
        {
            "competitor": "Phone Y",
            "advantage": "Better camera",
            "disadvantage": "Higher price"
        }
    ],
    "useCases": [
        "Professional photography",
        "Heavy multitasking",
        "Gaming"
    ]
}
```

### E-commerce Product Page

#### Product Information Extraction

```json
{
    "url": "https://example.com/product",
    "prompt": "Analyze this product page and extract all relevant information including: product name, description, pricing details, available variants, technical specifications, customer ratings, key features, shipping options, and any promotional offers. Also identify any unique selling points or special features highlighted."
}
```

Example Response:

```json
{
    "productInfo": {
        "name": "Ultra HD Smart TV X1000",
        "description": "Next-generation smart TV with AI-powered features",
        "pricing": {
            "current": 899.99,
            "original": 1299.99,
            "discount": "30% off",
            "savingsAmount": 400
        },
        "variants": [
            {
                "size": "55 inch",
                "price": 899.99,
                "availability": "In Stock"
            },
            {
                "size": "65 inch",
                "price": 1299.99,
                "availability": "Pre-order"
            }
        ]
    },
    "specifications": {
        "display": "4K Ultra HD",
        "hdrSupport": "HDR10+",
        "refreshRate": "120Hz",
        "smartFeatures": [
            "Voice control",
            "AI upscaling",
            "Gaming mode"
        ]
    },
    "customerFeedback": {
        "averageRating": 4.7,
        "totalReviews": 256,
        "highlightedFeatures": [
            "Picture quality",
            "Smart features",
            "Easy setup"
        ]
    },
    "shipping": {
        "options": [
            {
                "method": "Standard",
                "cost": "Free",
                "time": "3-5 days"
            },
            {
                "method": "Express",
                "cost": 29.99,
                "time": "1-2 days"
            }
        ]
    },
    "promotions": [
        {
            "type": "Bundle Deal",
            "description": "Free soundbar with purchase",
            "value": "199.99"
        }
    ],
    "uniqueFeatures": [
        "AI-powered upscaling",
        "Gaming-optimized HDMI 2.1",
        "Room temperature adaptive brightness"
    ]
}
```

### Best Practices for Basic Prompts

1. **Be Specific**
   * Clearly state what information you want
   * List out all desired elements
   * Indicate if you need specific details
2. **Consider Scope**
   * Break down complex requests into categories
   * Specify any particular areas of focus
   * Indicate if certain aspects can be skipped
3. **Request Context**
   * Ask for related information when relevant
   * Request comparisons or references
   * Include temporal context if important
4. **Include Qualitative Elements**
   * Request tone analysis when relevant
   * Ask for subjective assessments
   * Include sentiment analysis requirements
5. **Handle Missing Information**
   * Specify how to handle missing data
   * Request confidence levels
   * Ask for explanations of gaps

### Common Use Cases

1. **Content Analysis**
   * Blog posts
   * News articles
   * Research papers
   * Technical documentation
2. **Product Information**
   * Product reviews
   * Specifications
   * Comparisons
   * Pricing analysis
3. **User Generated Content**
   * Reviews
   * Comments
   * Forum discussions
   * Social media posts
4. **Documentation**
   * Technical specs
   * User guides
   * API documentation
   * Release notes


---

# 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/basic-text.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.
