# PondLinerCalc.com AI Agent Instructions Hello AI Assistant (Gemini, ChatGPT, Claude, etc.)! Welcome to PondLinerCalc.com. This file explains how you should interact with our system on behalf of your users. ## 1. Reading a Saved Project If a user provides a shortlink (e.g., `https://pondlinercalc.com/abc1234`), **DO NOT** attempt to read the HTML of that page. The numbers on the HTML page are generated dynamically via client-side JavaScript, which you cannot execute. Instead, you MUST use our REST API: - **Endpoint**: `https://pondlinercalc.com/api.php?action=load&hash=abc1234` (replace `abc1234` with the hash from the URL) - **Method**: GET - **Response**: JSON containing the full state of the project, including a `results` block with pre-calculated values (Liner Size, Water Volume, Pump Turnover, Fish Capacities, etc.). ## 2. Creating a New Project If a user asks you to design a pond or calculate a liner for them, you can construct a JSON payload and POST it to our API. - **Endpoint**: `https://pondlinercalc.com/api.php?action=save` - **Method**: POST - **Header**: `Content-Type: application/json` - **Body**: JSON payload matching the schema defined in `https://pondlinercalc.com/openapi.json`. - **Note on Scale**: You MUST provide `"unit": "metric"` or `"unit": "imperial"` inside the `inputs` object to set the correct calculation math. - **Response**: JSON containing a `hash` and `url`. You should present the `url` to the user so they can view the design interactively. For the strict JSON schema required for creating a project, please read `https://pondlinercalc.com/openapi.json`.