← Back to Skills Marketplace
shaharsha

Gif Whatsapp

by shaharsh · GitHub ↗ · v1.3.0 · MIT-0
cross-platform ✓ Security Clean
2279
Downloads
2
Stars
2
Active Installs
5
Versions
Install in OpenClaw
/install gif-whatsapp
Description
Search and send GIFs on WhatsApp. Handles the Tenor→MP4 conversion required for WhatsApp.
README (SKILL.md)

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

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: 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
Usage Guidance
This skill appears to do what it says, but before installing: - Verify the agent host has gifgrep, ffmpeg, and curl installed and that gifgrep is configured to search trusted providers (Tenor/Giphy) as claimed. - Confirm the workspace path /root/.openclaw/workspace exists and is writable by the agent; if your platform uses a different workspace location, update the instructions accordingly. - Add or verify cleanup steps (remove temporary files from /tmp and workspace) to avoid leaving media behind. - Test in a non-production environment to ensure the message tool accepts the copied file and that gifPlayback=true renders as expected. - If you have multi-tenant or restricted environments, ensure copying files into the workspace does not expose media to other agents or users.
Capability Analysis
Type: OpenClaw Skill Name: gif-whatsapp Version: 1.3.0 The gif-whatsapp skill provides a legitimate workflow for searching, downloading, and converting GIFs to MP4 format for WhatsApp compatibility. It utilizes standard utilities (curl, ffmpeg, cp) and a built-in message tool to perform its stated functions within the OpenClaw workspace environment (SKILL.md).
Capability Assessment
Purpose & Capability
Name/description match the runtime instructions: gifgrep (search), curl (download), and ffmpeg (convert) are all appropriate for converting Tenor/Giphy GIFs to MP4 for WhatsApp. Minor inconsistency: SKILL.md asks to 'Always get 5 results' in one place but uses --max 3 in an example; not a security problem but an operational mismatch. The hard-coded workspace path (/root/.openclaw/workspace) is an implementation assumption that may not match every agent environment.
Instruction Scope
Instructions are narrowly scoped to searching, downloading to /tmp, converting, copying to the workspace, and using the platform message tool to send. They do not request unrelated files or credentials. Caveats: the doc claims downloads are 'cleaned up after sending' but provides no cleanup commands, and it hardcodes the workspace path which could require write access or elevated privileges on some hosts.
Install Mechanism
Instruction-only skill (no install spec or code), which minimizes installation risk. It does require existing binaries (gifgrep, ffmpeg, curl); gifgrep may not be present by default on many systems, but requiring these binaries is coherent with the stated workflow.
Credentials
No environment variables, credentials, or config paths are requested. Uses the platform's message tool for delivery (the SKILL.md states no separate WhatsApp credentials are needed). The only environment assumption is write access to /tmp and the hard-coded workspace path.
Persistence & Privilege
Skill is user-invocable and not forced-always; it does not request persistent privileges or modify other skills. Autonomous invocation is allowed but that is the platform default and not by itself a red flag.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gif-whatsapp
  3. After installation, invoke the skill by name or use /gif-whatsapp
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.3.0
**Added workspace copy requirement for WhatsApp GIF sending** - Now requires copying the converted MP4 to the workspace directory before sending. - Clarifies that sending files from `/tmp` will fail with `LocalMediaAccessError`. - Updated workflow steps and one-liner example to include the workspace copy. - Improved documentation for file handling and safety notes.
v1.2.0
- Changed the default message body when sending a GIF: now uses a single space instead of an invisible Unicode character, simplifying the workflow. - Updated documentation to clarify that the space will not be visible to the recipient, but is required by WhatsApp to send media. - Removed references to the left-to-right mark (U+200E) for empty caption handling. - No changes to workflow steps or technical commands outside of the message text update.
v1.1.0
Add metadata: requiresTools, source domain docs, security notes section explaining Unicode char usage, homepage, author, allowed-tools.
v1.0.1
Always get 5 results and pick best one; use invisible character for no-caption GIFs
v1.0.0
Initial release – enables sending GIFs on WhatsApp by converting Tenor links to MP4 format. - Provides a step-by-step workflow: search, download, convert, and send GIFs. - Includes command examples using gifgrep, curl, and ffmpeg for conversion. - Explains WhatsApp’s GIF requirements and use of gifPlayback for proper display. - Lists best practices and popular search terms for effective GIF use in WhatsApp conversations.
Metadata
Slug gif-whatsapp
Version 1.3.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 5
Frequently Asked Questions

What is Gif Whatsapp?

Search and send GIFs on WhatsApp. Handles the Tenor→MP4 conversion required for WhatsApp. It is an AI Agent Skill for Claude Code / OpenClaw, with 2279 downloads so far.

How do I install Gif Whatsapp?

Run "/install gif-whatsapp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gif Whatsapp free?

Yes, Gif Whatsapp is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Gif Whatsapp support?

Gif Whatsapp is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Gif Whatsapp?

It is built and maintained by shaharsh (@shaharsha); the current version is v1.3.0.

💬 Comments