Whatsapp Db Skill logo

Whatsapp Db Skill

Community
zeenie-ai
whatsapp-db-skill

Query WhatsApp database for contacts, groups, channels, and chat history. Look up contact info, search groups, manage channels, retrieve messages.

Overview

Publisherzeenie-ai
RepositoryOpenCompany
Skill namewhatsapp-db-skill
Stars
912
Forks
137
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zeenie-ai on GitHub. Read the source before you install it.

Installation

Install the Whatsapp Db Skill AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany.git /tmp/OpenCompany
mkdir -p .claude/skills
cp -r /tmp/OpenCompany/server/skills/social_agent/whatsapp-db-skill .claude/skills/whatsapp-db-skill
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Whatsapp Db Skill in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Whatsapp Db Skill on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Whatsapp Db Skill is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WhatsApp Database Tool

Query WhatsApp database for contacts, groups, channels (newsletters), and message history.

How It Works

This skill provides instructions for the WhatsApp DB tool node. Connect the WhatsApp DB node to Zeenie's input-tools handle to enable database queries.

whatsapp_db Tool

Query contacts, groups, channels, and chat history.

Schema Fields

FieldTypeRequiredDescription
operationstringYesOperation type (see below)
chat_typestringFor chat_history"individual" or "group"
phonestringVariesPhone number (for chat_history individual, get_contact_info)
group_idstringVariesGroup JID (for chat_history group, get_group_info)
querystringNoSearch query (for search_groups, list_contacts)
limitintNoMax results (varies by operation)
offsetintNoPagination offset (for chat_history)
message_filterstringNo"all" or "text_only" (for chat_history)
group_filterstringNo"all" or "contact" (for group chat_history)
sender_phonestringNoFilter by sender (when group_filter="contact")
phonesstringFor check_contactsComma-separated phone numbers
participant_limitintNoMax participants (for get_group_info, 1-100)
channel_jidstringFor channel opsNewsletter JID or invite link URL (e.g., 120363198765432101@newsletter or https://whatsapp.com/channel/...)
refreshbooleanNoForce refresh from server (for list_channels, get_channel_info, channel_messages)
channel_countintNoNumber of items to fetch (for channel_messages, channel_stats)
before_server_idintNoPagination cursor (for channel_messages)
message_offsetintNoSkip this many messages (for channel_messages)
sincestringNoUnix timestamp - messages after this time (for channel_messages)
untilstringNoUnix timestamp - messages before this time (for channel_messages)
media_typestringNoFilter by media type: image, video, audio, document, sticker (for channel_messages)
searchstringNoText search within messages (for channel_messages)
include_media_databooleanNoDownload base64 media data for media messages (for chat_history, channel_messages)
channel_namestringFor channel_createName of the new channel
channel_descriptionstringNoDescription (for channel_create)
picturestringNoBase64-encoded profile picture (for channel_create)
mutebooleanFor channel_muteTrue to mute, false to unmute
server_idsstringFor mark_viewed/live_updatesComma-separated message server IDs
react_server_idintFor newsletter_reactServer ID of message to react to
reactionstringFor newsletter_reactReaction emoji (empty to remove)
profile_pic_jidstringFor contact_profile_picJID or phone number
previewbooleanNoGet low-res preview (for contact_profile_pic)

Operations

OperationDescriptionRequired Fields
list_contactsList contacts with saved namesquery (optional), limit
get_contact_infoGet full contact detailsphone
search_groupsSearch groups by namequery, limit
get_group_infoGet group details with participantsgroup_id
chat_historyRetrieve message historychat_type, phone/group_id
check_contactsCheck WhatsApp registrationphones
list_channelsList subscribed newsletter channelsrefresh (optional), limit
get_channel_infoGet channel detailschannel_jid
channel_messagesGet channel messages with filters (date, media type, search)channel_jid, channel_count
channel_statsGet channel subscriber/view statschannel_jid
channel_followFollow/subscribe to a channelchannel_jid
channel_unfollowUnfollow/unsubscribe from a channelchannel_jid
channel_createCreate a new newsletter channelchannel_name
channel_muteMute or unmute a channelchannel_jid, mute
channel_mark_viewedMark channel messages as viewedchannel_jid, server_ids
newsletter_reactReact to a channel messagechannel_jid, react_server_id, reaction
newsletter_live_updatesSubscribe to live view/reaction countschannel_jid, server_ids
contact_profile_picGet contact/group profile pictureprofile_pic_jid

Limits

OperationDefaultMax
chat_history50500
search_groups2050
list_contacts50100
get_group_info participants50100
list_channels2050
channel_messages20100
channel_stats10100
channel_mute--
channel_mark_viewed--

Important: Always use small limits and specific queries to avoid context overflow.

Operation Examples

list_contacts

Find contacts by name.

json
{
  "operation": "list_contacts",
  "query": "mom",
  "limit": 10
}

Response:

json
{
  "success": true,
  "operation": "list_contacts",
  "contacts": [
    {"phone": "919876543210", "name": "Mom", "jid": "919876543210@s.whatsapp.net"}
  ],
  "total": 1
}

get_contact_info

Get full contact details for sending/replying.

json
{
  "operation": "get_contact_info",
  "phone": "919876543210"
}

Response:

json
{
  "success": true,
  "operation": "get_contact_info",
  "phone": "919876543210",
  "name": "Mom",
  "jid": "919876543210@s.whatsapp.net",
  "profile_picture": "https://..."
}

search_groups

Search groups by name.

json
{
  "operation": "search_groups",
  "query": "family",
  "limit": 10
}

Response:

json
{
  "success": true,
  "operation": "search_groups",
  "groups": [
    {"group_id": "120363123456789@g.us", "name": "Family Group", "participant_count": 5}
  ],
  "total": 1
}

get_group_info

Get group details with participant list.

json
{
  "operation": "get_group_info",
  "group_id": "120363123456789@g.us",
  "participant_limit": 20
}

Response:

json
{
  "success": true,
  "operation": "get_group_info",
  "name": "Family Group",
  "jid": "120363123456789@g.us",
  "participants": [
    {"phone": "919876543210", "name": "Mom", "is_admin": true},
    {"phone": "919876543211", "name": "Dad", "is_admin": false}
  ],
  "total_participants": 5
}

chat_history (Individual)

Get messages from an individual chat.

json
{
  "operation": "chat_history",
  "chat_type": "individual",
  "phone": "919876543210",
  "limit": 20
}

chat_history (Group)

Get messages from a group chat.

json
{
  "operation": "chat_history",
  "chat_type": "group",
  "group_id": "120363123456789@g.us",
  "message_filter": "text_only",
  "limit": 50
}

Response:

json
{
  "success": true,
  "operation": "chat_history",
  "messages": [
    {
      "index": 1,
      "message_id": "ABC123",
      "sender": "919876543210@s.whatsapp.net",
      "sender_name": "Mom",
      "text": "Hello!",
      "timestamp": "2025-01-30T12:00:00",
      "is_from_me": false
    }
  ],
  "total": 50,
  "has_more": true
}

check_contacts

Check if phone numbers have WhatsApp.

json
{
  "operation": "check_contacts",
  "phones": "1234567890,0987654321"
}

Response:

json
{
  "success": true,
  "operation": "check_contacts",
  "results": [
    {"phone": "1234567890", "registered": true, "jid": "1234567890@s.whatsapp.net"},
    {"phone": "0987654321", "registered": false}
  ]
}

list_channels

List subscribed newsletter channels.

json
{
  "operation": "list_channels",
  "limit": 10
}

Response:

json
{
  "success": true,
  "operation": "list_channels",
  "channels": [
    {"jid": "120363198765432101@newsletter", "name": "Tech Updates", "subscriber_count": 5000}
  ],
  "total": 3
}

get_channel_info

Get channel details.

json
{
  "operation": "get_channel_info",
  "channel_jid": "120363198765432101@newsletter"
}

channel_messages

Get channel message history.

json
{
  "operation": "channel_messages",
  "channel_jid": "120363198765432101@newsletter",
  "channel_count": 10
}

channel_follow

Follow/subscribe to a channel.

json
{
  "operation": "channel_follow",
  "channel_jid": "120363198765432101@newsletter"
}

channel_create

Create a new newsletter channel.

json
{
  "operation": "channel_create",
  "channel_name": "My Channel",
  "channel_description": "A channel about interesting topics"
}

channel_mute

Mute or unmute a newsletter channel.

json
{
  "operation": "channel_mute",
  "channel_jid": "120363198765432101@newsletter",
  "mute": true
}

channel_mark_viewed

Mark channel messages as viewed by server ID.

json
{
  "operation": "channel_mark_viewed",
  "channel_jid": "120363198765432101@newsletter",
  "server_ids": "100, 101, 102"
}

get_channel_info (with invite link)

Get channel details using an invite link instead of JID.

json
{
  "operation": "get_channel_info",
  "channel_jid": "https://whatsapp.com/channel/0029Va12345abcdef"
}

channel_messages (with filters)

Get channel messages filtered by media type and date range.

json
{
  "operation": "channel_messages",
  "channel_jid": "120363198765432101@newsletter",
  "channel_count": 20,
  "media_type": "image",
  "since": "1704067200",
  "include_media_data": true
}

channel_messages (text search)

Search channel messages by text content.

json
{
  "operation": "channel_messages",
  "channel_jid": "120363198765432101@newsletter",
  "search": "announcement",
  "channel_count": 10
}

newsletter_react

React to a channel message with an emoji.

json
{
  "operation": "newsletter_react",
  "channel_jid": "120363198765432101@newsletter",
  "react_server_id": 42,
  "reaction": "\ud83d\udc4d"
}

contact_profile_pic

Get a contact's profile picture.

json
{
  "operation": "contact_profile_pic",
  "profile_pic_jid": "919876543210"
}

Common Workflows

Find and message someone by name

  1. Use list_contacts with query to find the person
  2. Get their phone number from the result
  3. Use whatsapp_send tool with the phone number

Get recent messages from a contact

  1. Use chat_history with chat_type="individual"
  2. Set appropriate limit for desired history depth

Find and message a group

  1. Use search_groups to find the group by name
  2. Get the group_id from the result
  3. Use whatsapp_send tool with recipient_type="group"

See who's in a group

  1. Use get_group_info with the group_id
  2. Set participant_limit to control output size

Guidelines

  1. Phone numbers: Always use without + prefix, just digits
  2. Group IDs: JID format ending in @g.us
  3. Limits: Use small limits to avoid context overflow
  4. Queries: Be specific to narrow results
  5. Pagination: Use offset to page through chat_history
  6. Channel JIDs: JID format ending in @newsletter, or pass an invite link URL
  7. Invite links: channel_jid accepts both JIDs and https://whatsapp.com/channel/... URLs

Error Responses

json
{
  "error": "Phone number is required for chat_type='individual'"
}
json
{
  "error": "group_id is required for get_group_info"
}

Setup Requirements

  1. Connect the WhatsApp DB node to Zeenie's input-tools handle
  2. Ensure WhatsApp is connected (green status indicator in Credentials)

Frequently asked questions

What does the Whatsapp Db Skill AI skill do?

Query WhatsApp database for contacts, groups, channels, and chat history. Look up contact info, search groups, manage channels, retrieve messages.

Why use Whatsapp Db Skill on TypingMind?

Because you install it once and use it with any model. Whatsapp Db Skill is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Whatsapp Db Skill in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/whatsapp-db-skill. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Whatsapp Db Skill?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Whatsapp Db Skill?

As many as you like. As long as a model supports skills, you can use Whatsapp Db Skill with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Whatsapp Db Skill AI skill free?

Yes. It is published on GitHub by zeenie-ai under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇