Evolution API icon

Evolution API

Complete WhatsApp automation with Evolution API

Overview

The "Demote Admin" operation under the "Group" resource allows you to demote an existing WhatsApp group admin back to a regular participant. This is useful in scenarios where group management needs to be adjusted, such as when an admin no longer requires elevated privileges or to maintain proper group moderation.

Practical examples include:

  • Automatically adjusting group roles based on user activity.
  • Managing group permissions dynamically in response to external triggers.
  • Integrating with workflows that enforce group administration policies.

Properties

Name Meaning
Group ID The unique identifier of the WhatsApp group where the admin will be demoted.
Additional Fields Optional parameters including:
- Delay: Time in milliseconds to wait before sending the request.
- Link Preview: Enable or disable link previews in messages (true/false).
- Quoted Message ID: ID of a message to quote or reply to.
- Mentions: Comma-separated list of phone numbers to mention in the message.

Output

The node outputs a JSON object representing the response from the Evolution API after attempting to demote the admin. This typically includes status information about the operation's success or failure and any relevant metadata returned by the API.

No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Evolution API service for WhatsApp automation.
  • Needs valid credentials including an API key and instance name configured in n8n.
  • Optionally uses another API ("N8N Tools API") for subscription validation before executing the main request.

Troubleshooting

  • Invalid Credentials: If the API key or subscription is invalid, the node throws an error indicating authentication failure. Verify your API keys and subscription status.
  • Unknown Operation or Resource: Errors occur if the operation or resource names are incorrect or unsupported. Ensure "Group" resource and "Demote Admin" operation are selected.
  • API Request Failures: Network issues or incorrect group IDs can cause failures. Confirm the group ID is correct and the network connection is stable.
  • Delay Misconfiguration: Setting an excessively long delay might cause unexpected workflow timing; use reasonable values.

Links and References

  • Evolution API Documentation (hypothetical link for reference)
  • WhatsApp Group Management Best Practices
  • n8n Official Documentation on Custom Nodes and API Integration

Discussion