Logo Whatsapp Db Skill

Whatsapp Db Skill

Cộng đồng
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.

Tổng quan

Nhà phát hànhzeenie-ai
Kho mãOpenCompany
Tên kỹ năngwhatsapp-db-skill
Sao
912
Bản fork
137
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được zeenie-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Whatsapp Db Skill trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/whatsapp-db-skill
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Whatsapp Db Skill trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Whatsapp Db Skill ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Whatsapp Db Skill với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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)

Câu hỏi thường gặp

Kỹ năng AI Whatsapp Db Skill làm được gì?

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

Vì sao nên dùng Whatsapp Db Skill trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Whatsapp Db Skill là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Whatsapp Db Skill trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/zeenie-ai/OpenCompany/tree/main/server/skills/social_agent/whatsapp-db-skill. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Whatsapp Db Skill?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Whatsapp Db Skill với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Whatsapp Db Skill với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Whatsapp Db Skill có miễn phí không?

Có. Kỹ năng này được zeenie-ai phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇