Whatsapp Db Skill 标志

Whatsapp Db Skill

社区
zeenie-ai
whatsapp-db-skill

查询 WhatsApp 数据库中的联系人、群组、频道和聊天记录。查找联系人信息、搜索群组、管理频道并获取消息。

Add to TypingMind

概览

发布者zeenie-ai
代码仓库OpenCompany
技能名称whatsapp-db-skill
星标数
912
复刻数
137
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 zeenie-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Whatsapp Db Skill AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/whatsapp-db-skill
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Whatsapp Db Skill,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Whatsapp Db Skill。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Whatsapp Db Skill 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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)

常见问题

Whatsapp Db Skill AI 技能有什么作用?

查询 WhatsApp 数据库中的联系人、群组、频道和聊天记录。查找联系人信息、搜索群组、管理频道并获取消息。

为什么在 TypingMind 中使用 Whatsapp Db Skill?

因为您只需安装一次,就能搭配任何模型使用。Whatsapp Db Skill 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Whatsapp Db Skill?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/whatsapp-db-skill。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Whatsapp Db Skill?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Whatsapp Db Skill 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Whatsapp Db Skill 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Whatsapp Db Skill AI 技能免费吗?

是的。zeenie-ai 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇