whatsapp-local-router

Route incoming WhatsApp content to local HTTP endpoints and return endpoint JSON directly to the user. Use when a WhatsApp message contains plain text/random symbols that should be sent to POST http://localhost:8080/process, or when a WhatsApp message contains a QR image that should be sent to POST http://localhost:8080/decode-qr.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "whatsapp-local-router" with this command: npx skills add olegqm/whatsapp-local-endpoints-router

WhatsApp Local Router

Overview

Handle two WhatsApp input types and mirror backend responses back to the user:

  • Text input → /process
  • QR image input → /decode-qr

Always send the endpoint response body back to the user with no extra formatting unless the user asks for explanation.

Workflow

  1. Confirm the message comes from WhatsApp context.
  2. Choose route:
    • If inbound includes an image attachment path (QR image expected), call decode route.
    • Otherwise treat user text as arbitrary string and call process route.
  3. Execute request with scripts/route_whatsapp.sh.
  4. Return stdout from the script directly to the user.
  5. If the endpoint returns an error or invalid JSON, return a short error summary and include raw response body.

Commands

Run from workspace root:

# Text -> /process
bash skills/whatsapp-local-router/scripts/route_whatsapp.sh process "<any text>"

# Image -> /decode-qr
bash skills/whatsapp-local-router/scripts/route_whatsapp.sh decode "/path/to/image.png"

Routing Rules

  • Preserve text exactly; do not sanitize, trim, or reinterpret symbols.
  • Use multipart field name image for QR decode uploads.
  • Timeout requests after 20 seconds.
  • If both text and image are present, prioritize image decode unless user explicitly asks to process text.
  • Keep response concise: send backend JSON as-is.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Aws Fis Experiment Prepare

Use when the user wants to prepare, create, or generate an AWS FIS (Fault Injection Service) experiment configuration. Triggers on "prepare FIS experiment",...

Registry SourceRecently Updated
General

Aws Fis Experiment Execute

Use when the user wants to run a prepared AWS FIS experiment where the CloudFormation stack has already been deployed. Triggers on "execute FIS experiment",...

Registry SourceRecently Updated
General

Warranty Return Dispute Kit

Organizes a defective-product, denied-warranty, or return-window dispute into an evidence packet, timeline, support message, escalation script, contact log,...

Registry SourceRecently Updated
General

Goldman Sachs Co

提供高盛公司历史、业务模式、市场地位及关键数据,助力研究投资银行和金融机构角色分析。

Registry SourceRecently Updated