웹훅 추가하기
목표
이벤트 기반 Claude 오케스트레이션을 위한 새로운 Modal 웹훅을 생성합니다.
프로세스
-
지시 파일 생성
directives/your_directive.md파일을 다음 내용으로 생성합니다:- 목표
- 입력값
- 프로세스 단계
- 결과물
- 예외 사례
-
webhooks.json에 추가
execution/webhooks.json에 다음 항목을 추가합니다:{ "your-webhook-slug": { "directive": "your_directive", "description": "이 웹훅의 기능", "tools": ["send_email", "read_sheet", "update_sheet"] } } -
배포
modal deploy execution/modal_webhook.py -
테스트
curl "https://your-modal-username--claude-orchestrator-directive.modal.run?slug=your-webhook-slug"
웹훅에서 사용 가능한 도구
send_emailread_sheetupdate_sheet
엔드포인트
- 목록:
https://your-modal-username--claude-orchestrator-list-webhooks.modal.run - 실행:
https://your-modal-username--claude-orchestrator-directive.modal.run?slug={slug}
스키마
입력값
| 이름 | 유형 | 필수 여부 | 설명 |
|---|---|---|---|
slug | string | 예 | 웹훅 슬러그 식별자 |
directive | string | 예 | 지시 파일 이름 (.md 제외) |
description | string | 예 | 이 웹훅의 기능 |
tools | array | 예 | 웹훅이 사용할 수 있는 도구 목록 |
결과물
| 이름 | 유형 | 설명 |
|---|---|---|
webhook_url | string | 실행을 위한 Modal 웹훅 URL |
자격 증명
| 이름 | 출처 |
|---|---|
MODAL_TOKEN_ID | Modal 대시보드 |
MODAL_TOKEN_SECRET | Modal 대시보드 |
함께 사용 가능한 기술
이 기술과 연계하여 사용하기 좋은 기술: modal-deploy
비용
Modal 컴퓨팅 (사용량 기반 요금)