Actions14
- Account Actions
- Contact Actions
- Conversation Actions
- Message Actions
- Template Actions
Message → Get Context
AI-generatedSummary
Fetches a conversation and its organization, contact, contact address, and recent messages for use as AI-agent context. Identify the conversation by its ID or by the sender account, service, and contact address; the result includes up to the configured message limit from the configured time window.
Inputs
- Account (required) — WhatsApp or Instagram sender account (phone number ID). Used to resolve a conversation when Conversation ID is empty.
- Service — WhatsApp or Instagram; defaults to WhatsApp and is used when resolving by account and contact address.
- Conversation ID — Conversation UUID. When provided, the operation fetches that conversation directly.
- To — Contact address used with Account and Service to resolve a conversation when Conversation ID is empty.
- Options — Message Limit defaults to 50 recent messages; Time Window (Days) defaults to 7. Messages outside this window are excluded.
Output shape
A single item containing organization, conversation, contact, contact_address, and messages fields.
Messages are returned in ascending timestamp order after filtering to the configured time window and limit. If resolving by address, both Account and To are required. The operation errors if the conversation is not found.