Chat icon

Chat

Interact with the Chat API

Actions253

Conversation → Update Presence

AI-generated

Summary

Update the presence status of a conversation

Inputs

  • accountId (required) — Select the QuePasa account to use for the request.
  • inboxId (required) — Select the inbox (channel) associated with the target conversation.
  • chatId (required) — The QuePasa WhatsApp chat ID whose presence should be updated.
  • presenceType (required) — The type of presence to set: 'text' (typing), 'audio' (recording), or 'pause' (paused).
  • presenceDuration — How long (in milliseconds) to keep the presence status active; must be between 0 and 60000.

Output shape

a conversation object with updated presence information

Fields not explicitly set are omitted; on error the node returns a standard error envelope.

Examples

Example 1: Set a conversation's presence to 'typing text' for 10 seconds

accountId=myAccount, inboxId=myInbox, chatId=1234567890@s.whatsapp.net, presenceType=text, presenceDuration=10000

Example 2: Set a conversation's presence to 'pause' for 30 seconds

accountId=myAccount, inboxId=myInbox, chatId=1234567890@s.whatsapp.net, presenceType=pause, presenceDuration=30000

Example 3: Clear presence by setting duration to 0

accountId=myAccount, inboxId=myInbox, chatId=1234567890@s.whatsapp.net, presenceType=text, presenceDuration=0

Links

Discussion