> For the complete documentation index, see [llms.txt](https://docs.geolava.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geolava.com/api/editor/condition-agent.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.geolava.com/api/editor/condition-agent.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
