Query WhatsApp data: conversations, contacts, messages, transcriptions, labels, and communities.
Supports listing, searching, filtering, and looking up by ID.
Several WhatsApp accounts may be connected (e.g. personal + business), each with its own conversations, contacts and messages.
entity="session" lists the connected accounts and their session IDs; target_session routes a query to one of them.
Reading messages:
Passing a conversation id (e.g. "5491157390064@c.us") returns the conversation with its messages; limit sets how many.
entity="messages" is a global text search across conversations.
Audio transcriptions:
entity="transcriptions" (with an optional query) returns voice-note transcriptions; messages read by conversation id include the transcription text of audio messages.
Examples:
List sessions: { entity: "session" }
List conversations: {}
Target specific account: { entity: "conversations", target_session: "sess_abc123" }
Read messages: { id: "5491157390064@c.us" }
Read last 100 msgs: { id: "5491157390064@c.us", limit: 100 }
Search globally: { query: "meeting" }
Search in chat: { id: "5491157390064@c.us", query: "meeting" }
Unread conversations: { unread: true }
Search contacts: { query: "Alice", entity: "contacts" }
List labels: { entity: "labels" }
Filter by label: { label: "Important", entity: "conversations" }
List communities: { entity: "communities" }
Filter by community: { community: "My Community", entity: "conversations" }
Find which groups a contact is in: { id: "5491157390064@c.us", entity: "contacts", include_participants: true }
List members of a group: { entity: "contacts", group: "120363421729019499@g.us" }