Skip to content

feat(outreach): weekly lead-discovery sheet → sales board intake - #53

Open
brekarta-stack wants to merge 1 commit into
mainfrom
dispatch/C-20261130-04
Open

brekarta-stack wants to merge 1 commit into
mainfrom
dispatch/C-20261130-04

Conversation

@brekarta-stack

Copy link
Copy Markdown
Owner

무엇

주간 리드 발굴(클라우드 루틴)이 드라이브 엑셀에 저장한 그 주 결과를 제안 영업 보드에 「발굴」 단계로 넣는 입구.

  • POST /api/admin/outreach/intake 에 sheet 형식 추가 — 엑셀 Leads 행을 머리글 그대로 받아 그 주 행(발굴일/최근 갱신일 = runDate)만 리드로 바꾼다
  • 같은 기관은 새 행 없이 활동 기록 「발굴 신호 …」로 합침 (Drop 포함)
  • 묶음 꼬리표 [papertoy-weekly:YYYY-MM-DD] 로 재전송 시 already (행만 생기고 활동 실패한 경우도 quotes.outreach.batch 로 감지)
  • GET ?batch= — 그 주 records(활동 수, 엑셀 행 수와 같아야 함)·기관 수
  • 기존 leads 경로 동작 유지 (batch·signal 키가 있을 때만 새 동작)

켜기 전 (사람 몫)

운영 배포, 루틴 환경 변수에 OUTREACH_INTAKE_TOKEN, 루틴 지시문에 단계 추가 — docs/papertoy-weekly-to-board.md.

알려진 한계

동시에 같은 묶음 두 요청이면 못 막음(잠금 없음) — 루틴은 응답 전 재전송 안 함.

테스트

npm test 450개 중 448 통과. 실패 2건은 무관한 날짜 표기 테스트(로컬 ICU 차이, 기존).

🤖 Generated with Claude Code

…s board

- POST /api/admin/outreach/intake takes `sheet` (Excel Leads rows keyed by
  Korean headers); server picks the run week's rows and maps them to
  `sourced` leads, merging known orgs into activity records
- batch tag (papertoy-weekly:YYYY-MM-DD) on activities makes re-sends
  idempotent (`already`), including create-without-activity cases
- GET ?batch= returns records/org counts to reconcile with the Excel
- discovery activities read 「발굴 신호」, not 「제안 초안」
- docs: routine wiring guide with a draft prompt step (not applied)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
actioncraft-web Ready Ready Preview Nov 30, 2026 8:26am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 7821439d Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant