WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Message → Reply

AI-generated

Summary

Reply to a message in a chat using a selected session.

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
  • chatId (required) — The chat ID that contains the message
  • messageId (required) — Unique WhatsApp identifier for the message
  • contentType — The type of reply content to send
  • content (required) — The text content of the reply
  • contentJson (required) — The content object (media, location, or contact). See API docs for the expected JSON structure.

Output shape

a single reply message object

Returns details of the sent reply (including message ID); errors are propagated.

Examples

Example 1: Reply with plain text to the latest message

sessionId=default, chatId=34612345678@c.us, messageId=true_34612345678@c.us_ABC, contentType=string, content=Ok, contentJson={}

Example 2: Reply with an image using base64 content

sessionId=default, chatId=34612345678@c.us, messageId=true_123@c.us_XYZ, contentType=MessageMedia, contentJson={"url":"data:image/png;base64,…"}

Links

Discussion