# Condition Agent

<figure><img src="/files/anmDKLFXh1eC4sTa92A4" alt=""><figcaption></figcaption></figure>

Analyzes overhead imagery (including thermal, SAR) and known property data to detect roof damage, foundation issues, environmental wear, etc.

**Sample Request** (single property):

```bash
POST /v1/agent/condition
{
  "address": "415 Mission Street, San Franscisco, CA, US"
}
```

**Region-based** example:

```bash
POST /v1/agent/condition
{
  "region": {
    "city": "Boston",
    "state": "MA"
  }
}
```

**Sample Response**

```json
{
  "propertyId": "67a771e11bcf52fcce866d6a",
  "address": "415 Mission Street, San Francisco, CA, US",
  "condition_assessment": {
    "timestamp": "2025-02-11T10:20:00Z",
    "overall_score": 7.2,
    "components": {
      "roof": {
        "status": "fair",
        "score": 6.5,
        "details": "Shingle damage detected on southeast corner",
      },
      "foundation": {
        "status": "good",
        "score": 8.3,
        "details": "No significant issues detected"
      },
      "exterior_walls": {
        "status": "moderate_damage",
        "score": 5.8,
        "details": "Weather damage visible on western exposure",
        "recommended_action": "Repair siding and repaint"
      },
      "drainage": {
        "status": "good",
        "score": 8.0,
        "details": "Proper drainage patterns observed"
      }
    },
    "risk_factors": [
      {
        "type": "weather_exposure",
        "severity": "medium",
        "details": "Property has moderate exposure to prevailing winds"
      }
    ],
    "data_sources": ["satellite_imagery_OPTICAL","satellite_imagery_SAR", "satellite_imagery_LiDAR", "street_view_LiDAR", "street_view_OPTICAL", "property_records"],
    "confidence_level": "high"
  }
}
```

If you query multiple properties, you’ll get results in bulk (one entry per property ID).


---

# 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.geolava.com/api/editor/condition-agent.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.
