AgentSkillsCN

whatsapp-send-skill

向联系人或群组发送 WhatsApp 消息。支持文本、图片、视频、音频、文档、贴纸、位置信息以及联系人信息。

SKILL.md
--- frontmatter
name: whatsapp-send-skill
description: Send WhatsApp messages to contacts or groups. Supports text, images, videos, audio, documents, stickers, locations, and contacts.
allowed-tools: whatsapp_send
metadata:
  author: machina
  version: "1.0"
  category: messaging
  icon: "📤"
  color: "#25D366"

WhatsApp Send Tool

Send messages to WhatsApp contacts or groups.

How It Works

This skill provides instructions for the WhatsApp Send tool node. Connect the WhatsApp Send node to Zeenie's input-tools handle to enable message sending.

whatsapp_send Tool

Send messages to individual contacts or groups.

Schema Fields

FieldTypeRequiredDescription
recipient_typestringYes"phone" for individual or "group" for group chat
phonestringIf phonePhone number without + prefix (e.g., 1234567890)
group_idstringIf groupGroup JID (e.g., 123456789@g.us)
message_typestringYesMessage type (see below)
messagestringIf textText message content
media_urlstringIf mediaURL for image/video/audio/document/sticker
captionstringNoCaption for media messages
latitudefloatIf locationLatitude coordinate
longitudefloatIf locationLongitude coordinate
location_namestringNoDisplay name for location
addressstringNoAddress text for location
contact_namestringIf contactContact display name
vcardstringIf contactvCard 3.0 format string

Message Types

TypeRequired FieldsDescription
textmessagePlain text message
imagemedia_urlImage file (JPG, PNG, GIF)
videomedia_urlVideo file (MP4)
audiomedia_urlAudio file (MP3, OGG, WAV)
documentmedia_urlAny file type
stickermedia_urlSticker image (WebP)
locationlatitude, longitudeGPS coordinates
contactcontact_name, vcardContact card

Examples

Send text message to contact:

json
{
  "recipient_type": "phone",
  "phone": "1234567890",
  "message_type": "text",
  "message": "Hello! How are you?"
}

Send image with caption:

json
{
  "recipient_type": "phone",
  "phone": "1234567890",
  "message_type": "image",
  "media_url": "https://example.com/photo.jpg",
  "caption": "Check out this photo!"
}

Send to group:

json
{
  "recipient_type": "group",
  "group_id": "123456789012345678@g.us",
  "message_type": "text",
  "message": "Hello everyone!"
}

Send video:

json
{
  "recipient_type": "phone",
  "phone": "1234567890",
  "message_type": "video",
  "media_url": "https://example.com/video.mp4",
  "caption": "Check this video"
}

Send document:

json
{
  "recipient_type": "phone",
  "phone": "1234567890",
  "message_type": "document",
  "media_url": "https://example.com/report.pdf",
  "caption": "Here's the report"
}

Send location:

json
{
  "recipient_type": "phone",
  "phone": "1234567890",
  "message_type": "location",
  "latitude": 37.7749,
  "longitude": -122.4194,
  "location_name": "San Francisco",
  "address": "San Francisco, CA, USA"
}

Send contact card:

json
{
  "recipient_type": "phone",
  "phone": "1234567890",
  "message_type": "contact",
  "contact_name": "John Doe",
  "vcard": "BEGIN:VCARD\nVERSION:3.0\nFN:John Doe\nTEL:+1234567890\nEND:VCARD"
}

Response Format

json
{
  "success": true,
  "recipient": "1234567890",
  "recipient_type": "phone",
  "message_type": "text",
  "details": {
    "status": "sent",
    "preview": "Hello! How are you?",
    "timestamp": "2025-01-30T12:00:00"
  }
}

Error Response

json
{
  "error": "Phone number is required for recipient_type='phone'"
}

Guidelines

  1. Phone numbers: Always use without + prefix, just digits (e.g., 919876543210)
  2. Group IDs: Use JID format ending in @g.us (e.g., 123456789@g.us)
  3. Media URLs: Must be publicly accessible URLs (https://)
  4. vCard format: Use vCard 3.0 specification for contact cards
  5. Message length: Text messages can be up to 4096 characters
  6. Media size: Check WhatsApp limits for media file sizes

Common Use Cases

  • Send automated notifications to contacts
  • Forward messages to groups
  • Share media files
  • Send location information
  • Share contact information

Setup Requirements

  1. Connect the WhatsApp Send node to Zeenie's input-tools handle
  2. Ensure WhatsApp is connected (green status indicator in Credentials)
  3. The recipient must have WhatsApp installed