Overview
This node listens for specific friend-related events, particularly friend requests, and triggers workflows when such events occur. It is useful in scenarios where you want to automate responses or actions based on incoming friend requests or other friend events on a platform.
For example, you could use this node to automatically send a welcome message when a new friend request is received or to log friend request events for analytics purposes.
Properties
| Name | Meaning |
|---|---|
| Event Types | Friend events to listen for. Options: "Friend Requests" (value 2) |
The node currently supports listening to the "Friend Requests" event type.
Output
The node outputs JSON data representing the friend event details it has received. The output contains an array under workflowData with objects describing each friend event captured by the webhook.
No binary data output is indicated.
Dependencies
- Requires an API authentication token credential to connect to the external service.
- Uses a cookie, IMEI, and user agent string internally to establish a session with the external service.
- Listens via a webhook endpoint configured in the node.
- Depends on an external library (imported but obfuscated) that manages connection and event listening.
Troubleshooting
Common issues:
- Failure to authenticate due to invalid or missing API credentials.
- Errors thrown if the session cookie or device identifiers are incorrect or expired.
- Webhook not receiving events if the external service does not send them or if network/firewall blocks exist.
Error messages:
- Authentication errors indicating missing or invalid credentials require checking the API key/token setup.
- Session initialization failures suggest verifying the cookie, IMEI, and user agent values.
- If no events are received, ensure the webhook URL is correctly registered with the external service and reachable.
Links and References
No explicit external links or references are present in the source code. For more information, consult the documentation of the external service providing friend event notifications or the n8n webhook usage guide.