Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Receive incoming emails via JSON webhooks and wake the agent. Built for AI Commander.
Receive incoming emails via JSON webhooks and wake the agent. Built for AI Commander.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
This skill provides a secure endpoint to receive emails as standardized JSON webhooks and automatically wakes the agent.
When an email is received, the server invokes openclaw system event --mode now. This ensures the agent is notified immediately and can process the incoming communication without waiting for the next heartbeat cycle.
The server uses secure process spawning (child_process.spawn) with argument arrays instead of shell execution. User-controlled input (email headers) cannot be used to execute arbitrary system commands.
The INBOX_FILE parameter is sanitized using path.basename(), ensuring that files are only written within the server's working directory.
A strong WEBHOOK_SECRET environment variable is REQUIRED for the server to start. All incoming requests must provide this secret in the Authorization: Bearer <secret> header.
Local Inbox: Incoming emails (raw body and metadata) are appended to a local inbox.jsonl file. Cleanup: Users should periodically rotate or delete the inbox file to save disk space and protect privacy.
VariableRequiredDefaultDescriptionWEBHOOK_SECRETYes—Secret token for webhook authentication.OPENCLAW_AGENT_IDYes—Your agent ID (e.g. skippy). Without this, incoming emails wake ALL agents on the server.PORTNo2083Port to listen on. Configurable — set to match your OPENCLAW_WEBHOOK_URL.INBOX_FILENoinbox.jsonlFilename for the activity feed.
Install dependencies: npm install express@4.21.2 Start Server: WEBHOOK_SECRET=your-strong-token node scripts/webhook_server.js
This server listens on port 2082. Cloudflare natively supports port 2082 as an HTTP origin port with Flexible SSL. When configuring your Cloudflare Email Worker, set OPENCLAW_WEBHOOK_URL using http:// with the port explicitly: https://webhook.yourdomain.com:2083/api/email Port 2083 is a Cloudflare-supported port. Works with Flexible SSL — the server uses a self-signed certificate (auto-generated on first run) which Cloudflare accepts on this port. ⚠️ If you use a different port, set the PORT env var when starting the server. ⚠️ If you omit the port in the Worker URL, Cloudflare defaults to port 80 → 404. DNS setup: create an A record for webhook.yourdomain.com pointing to your server IP with the orange cloud (proxy) enabled.
Requires: express, node, openclaw CLI.
Messaging, meetings, inboxes, CRM, and teammate communication surfaces.
Largest current source with strong distribution and engagement signals.