M
WhatsApp Forward
Scanned@MarcosRippel
npx machina-cli add skill @MarcosRippel/whatsapp-forward --openclawFiles (1)
SKILL.md
866 B
WhatsApp Forward Skill
Utilities for contact sharing, message forwarding, and invite link parsing.
Usage
exec({ cmd: "node <skill_dir>/scripts/forward.js COMMAND [ARGS]" })
Commands
Generate VCard
exec({ cmd: "node <skill_dir>/scripts/forward.js vcard \"John Doe\" \"5511999999999\"" })
Generate Multiple VCards
exec({ cmd: "node <skill_dir>/scripts/forward.js multi-vcard '[{\"name\":\"John\",\"phone\":\"5511999999999\"}]'" })
Parse Group Invite Link
exec({ cmd: "node <skill_dir>/scripts/forward.js parse-invite \"https://chat.whatsapp.com/ABC123\"" })
Show Forwarding Templates
exec({ cmd: "node <skill_dir>/scripts/forward.js template" })
Overview
WhatsApp Forward provides utilities for contact sharing, message forwarding, and invite link parsing. It enables generating VCards for contacts, parsing WhatsApp group invite links, and previewing forwarding templates to streamline how you share information in chats.
How This Skill Works
Run the node script at <skill_dir>/scripts/forward.js with a COMMAND and ARGS. Supported commands are vcard, multi-vcard, parse-invite, and template. Provide arguments as shown in usage (name and phone for vcard, a JSON array for multi-vcard, a URL for parse-invite), and the tool outputs the generated VCards, parsed invite data, or the forwarding templates.
When to Use It
- Share a contact in WhatsApp by generating a VCard for a name and international phone number.
- Create and send multiple contact cards in a single operation using multi-vcard.
- Parse a WhatsApp group invite link to inspect or validate it before joining.
- Preview or apply standardized forwarding templates to ensure consistent messaging.
- Automate onboarding or support flows that repeatedly share contacts, invites, or templates.
Quick Start
- Step 1: Run the CLI script with a COMMAND, e.g. node <skill_dir>/scripts/forward.js vcard "Name" "Phone"
- Step 2: Generate a single VCard using vcard "John Doe" "5511999999999"
- Step 3: For multiple cards or invites, use multi-vcard or parse-invite and then view templates with template
Best Practices
- Use international phone numbers in your VCard (including country code).
- For multi-vcard, supply a correct JSON array of objects and validate the payload before running.
- When parsing invites, verify the URL is a valid WhatsApp group invite link.
- Review generated VCards and templates for accuracy and branding before sending.
- Keep templates up to date with your preferred tone and branding.
Example Use Cases
- A support agent generates a VCard for a customer contact and shares it in a chat.
- A sales rep sends several client contacts at once using multi-vcard to a colleague.
- An admin parses a group invite link to join a training or event WhatsApp group.
- A marketing team uses the template command to standardize how product details are shared.
- An onboarding bot introduces new hires by sharing their contact info via VCard and templates.
Frequently Asked Questions
Add this skill to your agents