GIF Sender
Send GIFs naturally in WhatsApp conversations.
CRITICAL: WhatsApp GIF Workflow
WhatsApp doesn't support direct Tenor/Giphy URLs. You MUST:
- Download the GIF
- Convert to MP4
- 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: Send via message tool
message action=send to=NUMBER message="" filePath=/tmp/gif.mp4 gifPlayback=true
Note: Use invisible character (left-to-right mark, U+200E) as message to send GIF without visible caption.
One-liner Example
# Search
gifgrep "thumbs up" --max 3 --format url
# Pick best URL, then:
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
# Then send with message tool, 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
| 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
- Source domains: gifgrep only searches trusted GIF providers (Tenor, Giphy)
- File handling: All downloads go to
/tmp and are overwritten each time (-y flag)
- Empty caption: The
character (U+200E, Left-to-Right Mark) is used as an invisible caption so WhatsApp sends the GIF without visible text. This is a standard Unicode control character, not an injection technique
- 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
1---
2name: gif-whatsapp
3version: 1.1.0
4description: Search and send GIFs on WhatsApp. Handles the Tenor→MP4 conversion required for WhatsApp.
5author: Leo 🦁
6homepage: https://clawhub.com/skills/gif-whatsapp
7metadata:
8 source: https://skillmd.com/skills/modbender/gif-whatsapp
9 clawdbot:
10 emoji: 🎬
11 requires:
12 bins:
13 - gifgrep
14 - ffmpeg
15 - curl
16 requiresTools:
17 - message
18 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.
19allowed-tools: [exec, message]
20---
21
22# GIF Sender
23
24Send GIFs naturally in WhatsApp conversations.
25
26## CRITICAL: WhatsApp GIF Workflow
27
28WhatsApp doesn't support direct Tenor/Giphy URLs. You MUST:
291. Download the GIF
302. Convert to MP4
313. Send with `gifPlayback: true`
32
33## Complete Workflow
34
35### Step 1: Search for GIF
36```bash
37gifgrep "SEARCH QUERY" --max 5 --format url
38```
39Search in English for best results.
40
41**Always get 5 results and pick the best one** based on the filename/description - don't just take the first result.
42
43### Step 2: Download the GIF
44```bash
45curl -sL "GIF_URL" -o /tmp/gif.gif
46```
47
48### Step 3: Convert to MP4
49```bash
50ffmpeg -i /tmp/gif.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" /tmp/gif.mp4 -y
51```
52
53### Step 4: Send via message tool
54```
55message action=send to=NUMBER message="" filePath=/tmp/gif.mp4 gifPlayback=true
56```
57
58Note: Use invisible character `` (left-to-right mark, U+200E) as message to send GIF without visible caption.
59
60## One-liner Example
61
62```bash
63# Search
64gifgrep "thumbs up" --max 3 --format url
65
66# Pick best URL, then:
67curl -sL "https://media.tenor.com/xxx.gif" -o /tmp/g.gif && \
68ffmpeg -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
69
70# Then send with message tool, gifPlayback=true
71```
72
73## When to Send GIFs
74
75✅ Good times:
76- User asks for a GIF
77- Celebrating good news
78- Funny reactions
79- Expressing emotions (excitement, facepalm, etc.)
80
81❌ Don't overuse:
82- One GIF per context is enough
83- Not every message needs a GIF
84
85## Popular Search Terms
86
87| Emotion | Search Terms |
88|---------|--------------|
89| Happy | celebration, party, dancing, excited |
90| Approval | thumbs up, nice, good job, applause |
91| Funny | laugh, lol, haha, funny |
92| Shocked | mind blown, shocked, surprised, wow |
93| Sad | crying, sad, disappointed |
94| Frustrated | facepalm, ugh, annoyed |
95| Love | heart, love, hug |
96| Cool | sunglasses, cool, awesome |
97
98## Security & Safety Notes
99
100- **Source domains**: gifgrep only searches trusted GIF providers (Tenor, Giphy)
101- **File handling**: All downloads go to `/tmp` and are overwritten each time (`-y` flag)
102- **Empty caption**: The `` character (U+200E, Left-to-Right Mark) is used as an invisible caption so WhatsApp sends the GIF without visible text. This is a standard Unicode control character, not an injection technique
103- **WhatsApp integration**: Uses the platform's built-in `message` tool — no separate WhatsApp credentials needed
104- **ffmpeg safety**: Processes only GIF files from trusted providers; no arbitrary file execution
105
106## Why This Works
107
108- WhatsApp converts all GIFs to MP4 internally
109- Direct Tenor/Giphy URLs often fail
110- MP4 with `gifPlayback=true` displays as looping GIF
111- Small file size = fast delivery