MEGA icon

MEGA

Manage conversations, contacts, WhatsApp, Kanban CRM and Captain AI in MEGA

Actions417

Conversation → Get Message Context

AI-generated

Summary

Retrieve the context messages surrounding a specified message within a conversation in a given inbox and account.

Inputs

  • Account (required) — Select the account to use.
  • Inbox (required) — Select the inbox to use.
  • Conversation (required) — Select the conversation to use.
  • Message (required) — The specific message in the selected conversation to get context for.
  • Messages per Side — Number of messages to retrieve on each side (before and after) of the specified message; defaults to 20 if not specified.

Output shape

a JSON object containing the context messages (surrounding the target message) as retrieved from the API.

The output will contain messages before and after the specified message in the conversation, limited by the 'Messages per Side' option if provided. The context is retrieved using the Mega API within the specified account, inbox, conversation, and message identifiers.

Examples

Example 1: Retrieve message context around a specific message in a customer support conversation to understand the conversation history.

Provide Account, Inbox, Conversation, and Message identifiers, optionally specifying how many messages per side to retrieve.

Links

Discussion