Actions35
- Chat Actions
- Chatwoot Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Chat → Presence Update Chat
AI-generatedOverview
This node operation updates the presence status in a WhatsApp chat with a specified contact. It allows the user to show various presence indicators such as "typing...", "recording audio...", "online", or "last seen" statuses to create more natural and interactive conversation flows in automated chats. This is useful in scenarios where a bot or automation needs to simulate human-like presence signals to enhance user experience.
Use Case Examples
- A chatbot showing "typing..." status while preparing a response to make the interaction feel more natural.
- An automated system indicating "recording audio..." when sending a voice message.
- Showing "online" status to indicate availability before sending a message.
Properties
| Name | Meaning |
|---|---|
| To (Contact) | The WhatsApp contact number to update presence status. It should be provided in the format of phone number without '@' (e.g., 556195562618). This identifies the chat where the presence status will be updated. |
| Presence Option | The presence status to show in the chat. Options include 'composing' (typing...), 'unavailable' (last seen today at...), 'available' (online), 'pause' (pause typing), and 'recording' (recording audio...). This controls the type of presence indicator displayed to the contact. |
Output
JSON
presenceStatus- The updated presence status sent to the chatcontact- The WhatsApp contact number for which the presence status was updatedresult- The response result from the MegaAPI service confirming the presence update
Dependencies
- Requires MegaAPI WhatsApp service credentials including an API token and base URL for authentication and API access.
Troubleshooting
- Ensure the contact number is correctly formatted without '@' and includes the country code.
- Verify that the MegaAPI credentials (token and base URL) are correctly configured and valid.
- Common errors include 'Unknown chat operation' if the operation parameter is incorrect, or API errors if the service is unreachable or credentials are invalid.
- If the presence status does not update, check network connectivity and API service status.