Skip to main content

Overview

Reprompt determines business status and returns a structured open_closed_status with:
  • status (enum): One of "Open", "Closed", "Temporarily Closed", or "No Internet Presence"
  • reasoning (string): Explanation with referenced sources
  • confidence (enum): VERY_HIGH, HIGH, MEDIUM, LOW, or NONE

Status Values

class OpenClosedStatus(str, Enum):
    NO_INTERNET_PRESENCE = "No Internet Presence"
    OPEN = "Open"
    CLOSED = "Closed"
    TEMPORARILY_CLOSED = "Temporarily Closed"

Status Definitions

Open: Recent, credible evidence the business is operating or has relocated nearby under the same name. Closed: Explicit closure signals from credible sources, or replacement by a different business at the same address. Temporarily Closed: Business appears temporarily closed but may reopen (COVID closures, renovations, etc.). No Internet Presence: No credible reference for the exact name with plausible location context.

Usage Example

To enrich a place with open/closed status information:
cURL
curl -X POST \
  'https://reprompt--reprompt-fastapi-fastapi-app.us-west.modal.run/{your_org_slug}/place_enrichment/enrich' \
  -H 'Authorization: Bearer {YOUR_API_KEY}' \
  -H 'Content-Type: application/json' \
  -d '{
    "inputs": {
      "place_id": "my_place_123",
      "name": "Joe'\''s Pizza",
      "latitude": 40.7359,
      "longitude": -73.9911,
      "full_address": "7 Carmine St, New York, NY 10014"
    },
    "attributes": ["closed_permanently"]
  }'
Response:
{
  "place_id": "my_place_123",
  "outputs": {
    "closed_permanently": {
      "status": "Open",
      "confidence": "HIGH",
      "reasoning": "Recent activity confirmed from multiple credible sources; business appears to be operating normally."
    }
  }
}
I