Codex skill
WhatsApp Skill for Codex
AGENTS.md-compatible skill that lets OpenAI Codex add WhatsApp messaging to any project via the Gavi WhatsApp API.
Install
- 1. Save the skill content below as
AGENTS.md (or ~/.codex/AGENTS.md)in your project (or user config) directory. - 2. Install the SDK:
npm install @gaviwhatsapp/whatsapp
- 3. Set the API key environment variable:
GAVIVENTURES_API_KEY=gv_...
Get a key → - 4. Restart Codex. The agent will now know how to use the Gavi WhatsApp API when you ask it to send messages.
GaviVentures WhatsApp API — Codex Instructions
When the user asks to add WhatsApp messaging to their project, use the GaviVentures WhatsApp API.
Install
npm install @gaviwhatsapp/whatsapp
Set environment variable: GAVIVENTURES_API_KEY=gv_...
Get a key at https://www.gaviventures.com/whatsapp/settings/api-keys
Quick Reference
import { WhatsApp } from '@gaviwhatsapp/whatsapp'
const wa = new WhatsApp({ apiKey: process.env.GAVIVENTURES_API_KEY! })
// Text message
await wa.send({ to: '+919876543210', text: 'Hello!' })
// Template message (pre-approved by Meta)
await wa.sendTemplate({
to: '+919876543210',
template: 'order_confirmation',
language: 'en',
variables: { '1': 'ORD-1234' },
})
// Media message
await wa.sendMedia({
to: '+919876543210',
type: 'image',
url: 'https://example.com/photo.jpg',
})
// Broadcast to many
await wa.broadcast({
recipients: ['+919876543210', '+919876543211'],
template: 'promo_offer',
})
// List templates
const { templates } = await wa.getTemplates()
// Register webhook
const wh = await wa.registerWebhook({
url: 'https://myapp.com/api/webhook',
events: ['message.received'],
})
REST API
Base: https://www.gaviventures.com
Header: Authorization: Bearer <api_key>
- POST /api/v1/messages/send —
{ to, text } - POST /api/v1/messages/template —
{ to, template, language?, variables? } - POST /api/v1/messages/media —
{ to, type, url, caption?, filename? } - GET /api/v1/messages — query: phone, limit
- GET /api/v1/templates — query: sync=true
- POST /api/v1/broadcasts —
{ recipients, template, language? } - POST /api/v1/webhooks —
{ url, events? }
Rules
- Phone numbers require country code (+919876543210)
- Templates must be approved by Meta first
- API key prefix: gv_
- Meta bills message costs to the user directly. Meta's pricing changes frequently — see current rates at https://business.whatsapp.com/products/platform-pricing
Other skills
Cursor
WhatsApp Skill for Cursor
Drop-in Cursor rule that teaches the AI to send WhatsApp messages, broadcasts, and webhooks via the Gavi WhatsApp API.
Claude Code
WhatsApp Skill for Claude Code
Agent skill that lets Claude Code send WhatsApp messages, manage templates, run broadcasts, and register webhooks via the Gavi WhatsApp API.
Ready to send your first message?
Get an API key and have Codex send a WhatsApp message in under 5 minutes.