Reply to a WhatsApp message
Automatically reply to a WhatsApp message on web.whatsapp.com. Reply to one WhatsApp message with text, quoting it, given the message's id from get_conversation or get_inbox. The chat is found from the message id. Returns the reply's own id, which delete_message takes, with the time and the delivery status. The run succeeds only when WhatsApp's server has acknowledged the reply and it quotes that message. A message deleted for everyone cannot be replied to. Confirm the text with the user before sending. If WhatsApp Web is open in another tab of the same browser, the run stops and asks to close that tab.
Input
text requiredThe reply text.
messageId requiredThe message to reply to, as get_conversation or get_inbox returns it in `id`.
Output
id requiredThe reply's own message id, usable by delete_message and the other message scripts.
sent requiredTrue once WhatsApp's server acknowledged the reply.
chatId requiredrepliedTo requiredThe id of the message quoted.
at optionalWhen it was sent, ISO datetime.
text optionalstatus optionalDelivery status when the run ended.
FAQ
Get WhatsApp conversation
Read the most recent messages of one WhatsApp chat, oldest first. Give the chat by its `chatId` from get_inbox. Each message gives its id, type, sender (in groups), time, text or caption, whether it was deleted for everyone, the delivery status of your own messages, file details for media, and its reactions with counts. `complete` is true when the start of the chat's history was reached. Reading does not open the chat, so nothing is marked as read and the other person gets no read receipt. If WhatsApp Web is open in another tab of the same browser, the run stops and asks to close that tab. If the browser is not linked to WhatsApp, the run stops and says so. An unknown chatId stops the run with an error.
Send WhatsApp message or attachment
Send a WhatsApp message to a chat, given by its `chatId` from get_inbox, or to a phone number in international format that has no chat yet. The message is a text, an image, a video or a document with an optional caption, or a saved contact's card. Returns the new message's id, which delete_message and react_to_message take, with the time, the delivery status and the account that sent it. The run succeeds only when WhatsApp's server has acknowledged the message, and fails if WhatsApp marks it as failed. With dry_run, the chat is opened and the message prepared, and nothing is sent. Confirm the recipient with the user before sending. If WhatsApp Web is open in another tab of the same browser, the run stops and asks to close that tab.
Get WhatsApp inbox
List the chats of the WhatsApp chat list, in the order the list shows them, most recent first. Pick the same tab as the app: all chats, unread, favorites, groups, or archived. Each chat gives its id, its name, when it was last active, its unread count, whether it is pinned, muted, a favorite or marked unread by hand, and its last message with id, type, sender, time and text. `total` tells how many chats the tab holds, so a result cut by `count` is visible. Reading the list does not open a chat and marks nothing as read. If WhatsApp Web is open in another tab of the same browser, the run stops and asks to close that tab, because taking the session would disconnect it. If the browser is not linked to WhatsApp, the run stops and says so.
