본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

email-webhook

lksrz 제작

Web & Frontend Development
666clawskills.sh가 보고한 다운로드 수
2스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Receive incoming emails via JSON webhooks and wake the agent.

설명

이 스킬이 하는 일

Runs a local HTTP server that receives incoming emails as JSON webhooks and immediately wakes an OpenClaw agent. Emails are stored in a local JSONL inbox file and the agent is notified via a system event. Requires a shared secret for authentication.

Skips polling by pushing email events directly to the agent in real time via webhook, rather than having the agent check an inbox on a schedule.

사용 시점

  • Get notified when a support email arrives while the agent is idle
  • Route incoming emails to a Discord or WhatsApp notification via agent heartbeat
  • Trigger automated replies when specific senders are detected
  • Log all inbound emails to a local file for later processing
  • Wake a dormant agent the moment a time-sensitive email lands

예시 워크플로

입력

User asks: notify me on Discord whenever I get an email

에이전트
  1. 1

    Start the webhook server with WEBHOOK_SECRET and OPENCLAW_AGENT_ID set

  2. 2

    Configure Cloudflare Email Worker to POST to the webhook URL

  3. 3

    Receive incoming email as JSON payload at /api/email

  4. 4

    Append email metadata to inbox.jsonl and fire openclaw system event --mode now

  5. 5

    Agent reads inbox.jsonl, detects new entry, and sends Discord notification with sender, subject, and preview

출력

Discord message: "📧 New email from alice@example.com: Invoice #1042 — Please find attached..."

요구 사항

  • WEBHOOK_SECRET environment variable
  • OPENCLAW_AGENT_ID environment variable
  • Cloudflare account (for email routing via Cloudflare Email Workers)
  • Domain with DNS managed by Cloudflare

설치

clawhub install lksrz/email-webhook

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크