← 返回
效率工具 中文

Gif Whatsapp

Search and send GIFs on WhatsApp. Handles the Tenor→MP4 conversion required for WhatsApp.
在 WhatsApp 中搜索并发送 GIF,自动完成 Tenor 到 MP4 的转换。
shaharsha
效率工具 clawhub v1.3.0 3 版本 100000 Key: 无需
★ 2
Stars
📥 2,756
下载
💾 51
安装
3
版本
#latest

概述

GIF Sender

Send GIFs naturally in WhatsApp conversations.

CRITICAL: WhatsApp GIF Workflow

WhatsApp doesn't support direct Tenor/Giphy URLs. You MUST:

  1. Download the GIF
  2. Convert to MP4
  3. Send with gifPlayback: true

Complete Workflow

Step 1: Search for GIF

gifgrep "SEARCH QUERY" --max 5 --format url

Search in English for best results.

Always get 5 results and pick the best one based on the filename/description - don't just take the first result.

Step 2: Download the GIF

curl -sL "GIF_URL" -o /tmp/gif.gif

Step 3: Convert to MP4

ffmpeg -i /tmp/gif.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" /tmp/gif.mp4 -y

Step 4: Copy to workspace (REQUIRED!)

cp /tmp/gif.mp4 /root/.openclaw/workspace/gif.mp4

⚠️ The message tool can ONLY send files from the workspace directory. Files in /tmp will fail with LocalMediaAccessError.

Step 5: Send via message tool

message action=send to=NUMBER message=" " filePath=/root/.openclaw/workspace/gif.mp4 gifPlayback=true

Use a single space as the message body — WhatsApp requires a non-empty message to send media, but the space won't be visible to the recipient.

One-liner Example

# Search
gifgrep "thumbs up" --max 3 --format url

# Pick best URL, then download + convert + copy to workspace:
curl -sL "https://media.tenor.com/xxx.gif" -o /tmp/g.gif && \
ffmpeg -i /tmp/g.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" /tmp/g.mp4 -y 2>/dev/null && \
cp /tmp/g.mp4 /root/.openclaw/workspace/g.mp4

# Then send with message tool from workspace path, gifPlayback=true

When to Send GIFs

✅ Good times:

  • User asks for a GIF
  • Celebrating good news
  • Funny reactions
  • Expressing emotions (excitement, facepalm, etc.)

❌ Don't overuse:

  • One GIF per context is enough
  • Not every message needs a GIF

Popular Search Terms

EmotionSearch Terms
-----------------------
Happycelebration, party, dancing, excited
Approvalthumbs up, nice, good job, applause
Funnylaugh, lol, haha, funny
Shockedmind blown, shocked, surprised, wow
Sadcrying, sad, disappointed
Frustratedfacepalm, ugh, annoyed
Loveheart, love, hug
Coolsunglasses, cool, awesome

Security & Safety Notes

  • Source domains: gifgrep only searches trusted GIF providers (Tenor, Giphy)
  • File handling: Downloads go to /tmp, then MUST be copied to workspace before sending (message tool only allows workspace paths)
  • Empty caption: A single space is used as the message body so WhatsApp sends the GIF without visible text
  • WhatsApp integration: Uses the platform's built-in message tool — no separate WhatsApp credentials needed
  • ffmpeg safety: Processes only GIF files from trusted providers; no arbitrary file execution

Why This Works

  • WhatsApp converts all GIFs to MP4 internally
  • Direct Tenor/Giphy URLs often fail
  • MP4 with gifPlayback=true displays as looping GIF
  • Small file size = fast delivery

版本历史

共 3 个版本

  • v1.3.0 当前
    2026-04-30 08:49 安全 安全
  • v1.2.0
    2026-03-28 13:17 安全 安全
  • v1.1.0
    2026-03-26 21:16

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,116
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,199
ai-intelligence

Tavily Search Pro

shaharsha
Tavily AI 搜索平台,提供 5 种模式:搜索(网页/新闻/金融)、提取(URL 内容)、爬取(网站爬取)、映射(站点地图发现)和研究(深度研究,含引用)。用途:LLM 回答的网页搜索、内容提取、网站爬取、深度研究。
★ 13 📥 19,156