# Setup guide — Real Estate Listing Description Agent

## 1. Install and connect your listing source

Install the agent and connect it to your listing/MLS data entry.

```
pipx install listing-writer-agent
listing-writer-agent connect --source mls-export
listing-writer-agent doctor
```

## 2. Configure compliance guardrails

Fair Housing and fact-only generation are enforced, not optional.

```
cp .env.example .env
ANTHROPIC_API_KEY=sk-ant-...
FAIR_HOUSING_STRICT=true
FACTS_ONLY=true
FLAG_UNVERIFIABLE=true
```

## 3. Set brand voice & banned phrases

Define tone and reinforce the coded-language blocklist.

```
# listing.yml
tone: warm_professional
max_words: 180
banned_phrases: ['perfect for families','safe neighborhood','exclusive','walking distance to church','ideal for professionals']
describe: property_features_only
```

## 4. Test on sample listings

Generate copy and review the Fair Housing and unverified flags.

```
listing-writer-agent run --facts ./property.json --explain
# prints copy + fair_housing report + unverified flags + disclosure notes
```

## 5. Wire into your workflow

Generate descriptions from new listings; copy goes to the agent for review.

```
# new listing -> description + compliance notes -> agent reviews & publishes
```
