# Sprinkler Quote Scope Review (`atesen-software/sprinkler-quote-scope-review`) Actor

Compare inspection findings and a repair quote register by site and reference. Export rows to check before approving or following up on the supplied quotes.

- **URL**: https://apify.com/atesen-software/sprinkler-quote-scope-review.md
- **Developed by:** [Atesen Software](https://apify.com/atesen-software) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.02 / completed quote review

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Sprinkler Quote Scope Review

Match a fire sprinkler inspection findings export against your repair quote register and get a review CSV that shows, for every finding, whether a quote covers it, which line it came from, and what a person still needs to check (no quote, a quote at a different site, duplicate references, blank references). Each completed review costs **$0.02**, whatever the batch size.

### How it works

1. Export the inspection findings and the repair quote register for the same sites and inspection period, as CSV. Leave out customer names and other details the match does not need.
2. Paste both CSVs and enter the exact headings for the finding reference, quote ID and, for multi-site batches, the site in both files.
3. Tick `scopeConfirmed` only after you have checked that the quote register covers these sites and this period. Until then, findings without a quote stay in manual review instead of being reported as "no quote".
4. Open **Review CSV** in the Output tab. Each row gives a status (`Exact match` or `Review needed`), the reason, and the CSV line numbers in both files.

If the findings have a **Resolution Status** column, its value is carried into the report and used: without an exact link, proposal-related, Fixed and other non-empty statuses go to review, while New and Waiting for Quote follow the normal scope check. Use `resolutionStatusColumn` when the heading has a different name.

A match only means two records share a reference (and site). The Actor does not judge inspection compliance, engineering adequacy or whether a repair was done, and it makes no requests to any inspection or quoting system.

### Input

| Field | What it does |
|---|---|
| `findingsCsv` | Inspection findings, one row per finding, up to 256 KiB |
| `quoteCsv` | Quote register, one row per finding reference linked to a quote, up to 256 KiB |
| `findingReferenceColumn` / `quoteReferenceColumn` | Finding reference heading in each file (default `Finding ID`) |
| `quoteIdColumn` | Quote ID heading (default `Quote ID`) |
| `findingSiteColumn` / `quoteSiteColumn` | Site headings, when references can repeat across sites |
| `descriptionColumn` | Optional finding description to show in the report |
| `resolutionStatusColumn` | Optional resolution status heading |
| `scopeConfirmed` | Set to `true` once you have confirmed the register's coverage (default `false`) |

```json
{
  "findingsCsv": "Finding ID,Site,Finding description\nF-104,North,Valve switch did not signal\nF-104,South,Valve tag missing\nF-107,North,Gauge face damaged\nF-108,South,Escutcheon missing",
  "quoteCsv": "Quote ID,Finding ID,Site\nQ-100,F-104,North\nQ-101,F-104,South\nQ-102,F-108,North",
  "findingSiteColumn": "Site",
  "quoteSiteColumn": "Site",
  "descriptionColumn": "Finding description"
}
```

### Output

One `report` row per run. Real output for the example above (`reviewCsv` shortened):

```json
{
  "recordType": "report",
  "findings": 4,
  "exactMatches": 2,
  "needsReview": 2,
  "noLinkedQuote": 0,
  "quoteNotes": 1,
  "scopeNote": "Quote register coverage is unconfirmed. Confirm that the export covers the repair quotes for these findings.",
  "reviewCsv": "\"record_type\",\"status\",\"finding_reference\",\"site\",\"finding\",\"finding_csv_line\",\"quote_id\",\"quote_csv_lines\",\"reason\",...\r\n\"finding\",\"Review needed\",\"F-108\",\"South\",\"Escutcheon missing\",\"5\",\"\",\"\",\"This reference appears at a different site in the quote register.\",..."
}
```

The full table is also saved as `REVIEW_CSV` in the run's key-value store.

If no report is written (empty or invalid input, or a maximum cost per run below $0.02), the run writes one free `status` row that says what to fix, and charges nothing.

### Use via API

Keep your token in the `Authorization` header, not in the URL:

```bash
curl -X POST "https://api.apify.com/v2/acts/atesen-software~sprinkler-quote-scope-review/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"findingsCsv": "Finding ID,Site\nF-104,North\nF-107,North", "quoteCsv": "Quote ID,Finding ID,Site\nQ-100,F-104,North", "findingSiteColumn": "Site", "quoteSiteColumn": "Site", "scopeConfirmed": true}'
```

### Pricing

Pay per event: **$0.02 per completed review** (event `report`). There is no start fee and no per-row fee. Status rows for empty or invalid input and a too-low budget are free.

### Data and privacy

The only data is what you paste. Apify keeps the input and the report in your own run storage. Use files you are allowed to process and remove customer and site details the match does not need. This Actor is independent and is not tied to any inspection or quoting software.

Built and maintained by Atesen Software

# Actor input Schema

## `findingsCsv` (type: `string`):

Paste a UTF-8 inspection findings export with one row per finding. Maximum 256 KiB.

## `quoteCsv` (type: `string`):

Paste a UTF-8 quote export with one row per finding reference linked to a quote. Maximum 256 KiB.

## `findingReferenceColumn` (type: `string`):

Exact heading from the inspection findings.

## `quoteReferenceColumn` (type: `string`):

Exact finding reference heading from the quote register.

## `quoteIdColumn` (type: `string`):

Exact heading for the quote identifier.

## `findingSiteColumn` (type: `string`):

Use site headings in both exports when finding references can repeat across sites.

## `quoteSiteColumn` (type: `string`):

Exact site heading in the quote register, when selecting a site heading in the findings.

## `descriptionColumn` (type: `string`):

Optional. Include the masked finding description in the report.

## `resolutionStatusColumn` (type: `string`):

Optional exact heading. An unmapped Resolution Status heading is detected automatically when this input is omitted.

## `scopeConfirmed` (type: `boolean`):

Enable only after confirming the register scope. Unmatched findings otherwise remain in manual review.

## Actor input object example

```json
{
  "findingsCsv": "Finding ID,Site,Finding description\nF-104,North,Valve switch did not signal\nF-104,South,Valve tag missing\nF-107,North,Gauge face damaged\nF-108,South,Escutcheon missing",
  "quoteCsv": "Quote ID,Finding ID,Site\nQ-100,F-104,North\nQ-101,F-104,South\nQ-102,F-108,North",
  "findingReferenceColumn": "Finding ID",
  "quoteReferenceColumn": "Finding ID",
  "quoteIdColumn": "Quote ID",
  "findingSiteColumn": "Site",
  "quoteSiteColumn": "Site",
  "descriptionColumn": "Finding description",
  "scopeConfirmed": false
}
```

# Actor output Schema

## `reports` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "findingsCsv": `Finding ID,Site,Finding description
F-104,North,Valve switch did not signal
F-104,South,Valve tag missing
F-107,North,Gauge face damaged
F-108,South,Escutcheon missing`,
    "quoteCsv": `Quote ID,Finding ID,Site
Q-100,F-104,North
Q-101,F-104,South
Q-102,F-108,North`,
    "findingSiteColumn": "Site",
    "quoteSiteColumn": "Site",
    "descriptionColumn": "Finding description"
};

// Run the Actor and wait for it to finish
const run = await client.actor("atesen-software/sprinkler-quote-scope-review").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "findingsCsv": """Finding ID,Site,Finding description
F-104,North,Valve switch did not signal
F-104,South,Valve tag missing
F-107,North,Gauge face damaged
F-108,South,Escutcheon missing""",
    "quoteCsv": """Quote ID,Finding ID,Site
Q-100,F-104,North
Q-101,F-104,South
Q-102,F-108,North""",
    "findingSiteColumn": "Site",
    "quoteSiteColumn": "Site",
    "descriptionColumn": "Finding description",
}

# Run the Actor and wait for it to finish
run = client.actor("atesen-software/sprinkler-quote-scope-review").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "findingsCsv": "Finding ID,Site,Finding description\\nF-104,North,Valve switch did not signal\\nF-104,South,Valve tag missing\\nF-107,North,Gauge face damaged\\nF-108,South,Escutcheon missing",
  "quoteCsv": "Quote ID,Finding ID,Site\\nQ-100,F-104,North\\nQ-101,F-104,South\\nQ-102,F-108,North",
  "findingSiteColumn": "Site",
  "quoteSiteColumn": "Site",
  "descriptionColumn": "Finding description"
}' |
apify call atesen-software/sprinkler-quote-scope-review --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,atesen-software/sprinkler-quote-scope-review"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/39SrQGfYQc96YkIbZ/builds/k07LaL3lSSqEAxZb1/openapi.json
