微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

openclaw-whatsapp-gif

openclaw-whatsapp-gif · v1.0.0
安全 unknown 级 作者 witty-quotes25 公开目录收录
977 下载 0 安装 2.9k 收藏 1 浏览

简介

openclaw-whatsapp-gif

原始描述

Source and send relevant reaction GIFs in WhatsApp chats using safe filters and deterministic ranking. Use when the user asks for a GIF/meme/reaction, or whe...

通过你的 Agent 添加

安装目录:openclaw-whatsapp-gif/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/openclaw-whatsapp-gif/
Codex CLI~/.codex/skills/openclaw-whatsapp-gif/
DeepSeek Harness~/.agents/skills/openclaw-whatsapp-gif/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: openclaw-whatsapp-gif description: Source and send relevant reaction GIFs in WhatsApp chats using safe filters and deterministic ranking. Use when the user asks for a GIF/meme/reaction, or when a short visual reaction is better than plain text for celebration, humor, acknowledgment, empathy, or agreement.

WhatsApp GIF

Source safe, context-matching GIFs and send exactly one high-quality result to WhatsApp.

Workflow

  1. Decide if GIF is appropriate.
  2. Build concise search query from user intent (2-5 words).
  3. Run scripts/find_gif.py to fetch and rank candidates.
  4. Send top result with message tool to WhatsApp (prefer local-file payload mode).
  5. If send fails, retry once with next candidate.
  6. If still failing or no results, send concise fallback text.

Decision rules

Prefer GIF when:

  • The user explicitly asks for GIF/meme/reaction.
  • A brief emotional signal is enough.
  • Tone benefits from a visual response.

Avoid GIF when:

  • Topic is serious/sensitive (medical, legal, conflict, grief).
  • Group context is formal or unclear.
  • User asked for text-only response.

Script usage

Use these deterministic helpers:

python3 skills/openclaw-whatsapp-gif/scripts/find_gif.py "congrats celebration" --limit 5 --json
python3 skills/openclaw-whatsapp-gif/scripts/find_gif.py "great job" --limit 3 --json --target "+1234567890"
python3 skills/openclaw-whatsapp-gif/scripts/send_gif.py "+1234567890" "great job celebration" --json
python3 skills/openclaw-whatsapp-gif/scripts/send_gif.py "+1234567890" "great job celebration" --delivery-mode local --json
python3 skills/openclaw-whatsapp-gif/scripts/send_gif.py "+1234567890" "great job celebration" --payload-only

Behavior:

  • Reads TENOR_API_KEY and/or GIPHY_API_KEY.
  • Applies safe filtering (contentfilter=low / rating=g + blocklist).
  • Uses retry + backoff for network fetches.
  • Ranks by keyword overlap + lightweight preference.
  • If no API keys or no provider results, first tries no-key Tenor web scraping, then built-in safe fallback catalog.
  • Expands intent queries using common reaction aliases.
  • Deduplicates repeated URLs across providers.
  • Returns URL only (default) or candidate list (--json).
  • With --target, prints a ready-to-send WhatsApp message payload in JSON.
  • With send_gif.py --payload-only, prints only the final message payload for direct tool handoff.
  • send_gif.py validates media size/type, retries next candidates when a URL is bad, and writes telemetry logs (/tmp/openclaw-whatsapp-gif/send.log).
  • Runtime policy is configurable in references/policy.json.

WhatsApp send pattern

Use message with:

  • action: "send"
  • channel: "whatsapp"
  • target: <chat id/recipient>
  • media: <gif/mp4 url>
  • caption: <optional short line>
  • gifPlayback: true

If provider rejects .gif, retry using next candidate URL (prefer MP4).

Fallback

If no suitable GIF or delivery fails twice:

  • Send concise text preserving intent.
  • Do not keep retrying in a loop.

References

  • Provider notes: references/providers.md
  • Execution checklist: references/tasks.md

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill