Skip to content

feat(whatsapp): implement mark-as-read and message reactions via Cloud API - #1174

Open
JuanBifrost wants to merge 1 commit into
ChatbotXIO:mainfrom
JuanBifrost:feat/whatsapp-mark-as-read-and-reaction
Open

JuanBifrost wants to merge 1 commit into
ChatbotXIO:mainfrom
JuanBifrost:feat/whatsapp-mark-as-read-and-reaction

Conversation

@JuanBifrost

Copy link
Copy Markdown
Contributor

Summary

This PR implements native WhatsApp Cloud API capabilities for marking incoming messages as read (blue checkmarks) and sending message reactions with emojis directly from the Flow Builder.

Features & Implementation Details

  1. Mark as Read (markAsRead):

    • Automatically retrieves the latest incoming message (sourceId) within the 30-day window.
    • Dispatches a POST /<phoneId>/messages request with status: "read" and message_id.
    • Adds the corresponding step UI in Flow Builder (viewer, editor, and menu registrations).
  2. Message Reactions (reaction):

    • Supports selecting from popular preset emojis (👍, ❤️, 😂, 😮, 😢, 🙏) or inputting any custom valid emoji.
    • Dispatches a POST /<phoneId>/messages request with type: "reaction" targeting the recipient and the specific incoming message_id.
    • Adds complete configuration, preview, and step registration in Flow Builder.
  3. Multi-language Support (i18n):

    • Added translations across all 20 supported languages in apps/builder/messages/.
  4. Testing:

    • Added unit tests for Worker step execution in apps/worker/__tests__/step-typing-handler.test.ts.
    • Added comprehensive unit tests for WhatsApp Cloud API handlers in integrations/whatsapp/__tests__/conversation-typing.test.ts.

@github-actions github-actions Bot added the feature New feature or request label Sep 13, 2026
…d API

- Add native WhatsApp Cloud API handlers for 'agentMarkAsRead' and 'sendReaction'
- Add Flow Builder steps for 'Mark as read' (blue ticks) and 'Reaction' (preset and custom emojis)
- Lookup and thread latest incoming message sourceId as message_id for both endpoints
- Register markAsRead and reaction in Flow Config schemas, node maps, and step menus
- Add complete i18n translations across all 20 supported languages
- Add comprehensive unit tests for Worker step handlers and WhatsApp integration
@JuanBifrost
JuanBifrost force-pushed the feat/whatsapp-mark-as-read-and-reaction branch from a0041ff to 155c38a Compare September 13, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant