fix: gangnamUnni always-try + leadDoctor in Perplexity prompt

- collect-channel-data: gangnamUnni scraping no longer requires
  verified=true. Fallback: Firecrawl search for gangnamunni.com URL
  when discover-channels failed to verify. Solves empty ratings/reviews.
- generate-report: Perplexity prompt now explicitly requests leadDoctor
  (name, specialty, rating, reviewCount) and staffCount in clinicInfo.
- transformReport: clinicInfo type extended with leadDoctor + staffCount;
  transformation prefers clinic.leadDoctor over doctors[0] fallback.

Root cause: clinic_registry table not yet in DB → discover-channels
always falls back to API search → gangnamUnni URL not found →
collect-channel-data skips gangnamUnni → all clinic metrics empty.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Haewon KamandClaude Opus 4.6 committed 2026-04-07 10:29:10 +09:00
1 parent 2cda26a649
commit 6e8f6940bf
3 files changed
+47 -12

No files matched your search

+3 -1
View File
@@ -90,7 +90,9 @@ ${JSON.stringify(scrapeData.branding || {}, null, 2).slice(0, 1000)}
"address": "주소",
"phone": "전화번호",
"services": ["시술1", "시술2"],
"doctors": [{"name": "의사명", "specialty": "전문분야"}]
"doctors": [{"name": "의사명", "specialty": "전문분야"}],
"leadDoctor": {"name": "대표원장 이름", "specialty": "전문분야/학력", "rating": 0, "reviewCount": 0},
"staffCount": 0
},
"executiveSummary": "경영진 요약 (3-5문장)",
"overallScore": 0-100,