Gif Whatsapp
by @shaharsha
Search and send GIFs on WhatsApp. Handles the Tenor→MP4 conversion required for WhatsApp.
clawhub install gif-whatsapp📖 About This Skill
name: gif-whatsapp version: 1.2.0 description: Search and send GIFs on WhatsApp. Handles the Tenor→MP4 conversion required for WhatsApp. author: Leo 🦁 homepage: https://clawhub.com/skills/gif-whatsapp metadata: {"clawdbot":{"emoji":"🎬","requires":{"bins":["gifgrep","ffmpeg","curl"]},"requiresTools":["message"],"notes":"Uses the platform message tool (already configured) for WhatsApp delivery. gifgrep searches Tenor/Giphy only. Downloads are saved to /tmp and cleaned up after sending."}} allowed-tools: [exec, message]
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 urlPick 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.mp4Then send with message tool from workspace path, gifPlayback=true
When to Send GIFs
✅ Good times:
❌ Don't overuse:
Popular Search Terms
| Emotion | Search Terms | |---------|--------------| | Happy | celebration, party, dancing, excited | | Approval | thumbs up, nice, good job, applause | | Funny | laugh, lol, haha, funny | | Shocked | mind blown, shocked, surprised, wow | | Sad | crying, sad, disappointed | | Frustrated | facepalm, ugh, annoyed | | Love | heart, love, hug | | Cool | sunglasses, cool, awesome |
Security & Safety Notes
/tmp, then MUST be copied to workspace before sending (message tool only allows workspace paths)message tool — no separate WhatsApp credentials neededWhy This Works
gifPlayback=true displays as looping GIF