Actions76
- Message Actions
- Chat Actions
- Contact Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
- Profile Actions
- LID Actions
- File Actions
Overview
The "Pin Message" operation in the Chat resource allows users to pin a specific message within a WhatsApp chat using the Wappfy API. Pinning a message highlights it or keeps it easily accessible in the chat interface, which is useful for emphasizing important information or announcements.
Typical use cases include:
- Highlighting key messages in group chats.
- Keeping reminders or instructions visible at the top of a chat.
- Marking important messages for quick reference.
For example, a team lead might pin a project deadline message in a group chat so all members can easily find it.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat where the message to be pinned exists (e.g., 123456789@g.us for groups). |
| Message ID | The unique identifier of the message that you want to pin within the specified chat. |
Output
The node outputs the JSON response returned by the Wappfy API after attempting to pin the message. This typically includes confirmation details about the pinned message or any relevant status information.
The output structure is:
{
"json": {
// API response data confirming the pin action or error details
}
}
No binary data is involved in this operation.
Dependencies
- Requires an active Wappfy API credential with a valid API key and instance name configured in n8n.
- The node makes HTTP requests to the Wappfy API endpoints.
- Proper permissions on the WhatsApp account/session are necessary to pin messages.
Troubleshooting
- Invalid Chat ID or Message ID: If the provided IDs are incorrect or do not exist, the API will return an error. Verify the IDs before running the node.
- Permission Denied: Pinning messages may require admin privileges in group chats. Ensure the authenticated session has sufficient rights.
- API Key Issues: Missing or invalid API keys will cause authentication failures. Confirm the API key is correctly set in credentials.
- Network Errors: Connectivity issues to the Wappfy API endpoint will result in request failures. Check network access and API availability.
- Error Messages: The node returns error messages from the API in the output JSON under an
errorfield ifcontinueOnFailis enabled. Review these messages for troubleshooting.
Links and References
- Wappfy API Documentation (for detailed API usage and message pinning specifics)
- WhatsApp Business API Guide (general WhatsApp messaging concepts)