Set presence or typing
set_presenceSet a WhatsApp account's online/offline status, typing or recording indicators in chats, and subscribe to contact presence updates.
Instructions
Presence as contacts see it: the account online or offline, typing or recording in a chat, and presence events from a contact. Typing shows until paused or the next message. With typing turned on in the account's pacing (update_account), sends show it on their own.
Actions:
online: Show the account as online to contacts.offline: Show the account as offline.typing: Show typing in a chat.recording: Show recording audio in a chat.paused: Clear the typing or recording indicator in a chat.subscribe: Receivecontact.presence_updatedwebhook events when the contact comes online, goes offline or types. Fails withnot_supportedwhen the account cannot receive presence events.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | What to do. See the list of actions in the tool description. | |
| chatId | No | The chat: a contact as E.164 with + (`+584241112233`) or `lid:<digits>`, or a group id (`...@g.us`). Required for `typing`, `recording`, `paused`. | |
| accountId | No | The wuapi account id of the linked number to act as (from list_accounts). Required for every action. | |
| contactId | No | A contact: E.164 with + (`+584241112233`) or `lid:<digits>`. Required for `subscribe`. |