Actions7
Overview
This custom n8n node implements an API interaction to send a friend request message to a user identified by either their user ID or phone number. It supports sending the friend request with a message in two formats: a predefined message string or a raw JSON payload. This node is useful in scenarios where automated social interactions are needed, such as onboarding new users, marketing campaigns, or customer engagement workflows.
Practical examples include:
- Automatically sending a welcome friend request message to new users based on their phone number.
- Sending customized friend requests with specific JSON-formatted data for integration with other systems.
- Automating outreach by sending friend requests with personalized messages to a list of user IDs.
Properties
Name | Meaning |
---|---|
Send Option | Choose the format of the message to send with the friend request: - Raw Json - Message (predefined text) |
User ID Or Phone Number | The identifier of the user to whom the friend request will be sent. Can be either a user ID or a phone number. |
Message | The text message to accompany the friend request when using the "Message" send option. |
Output
The node outputs JSON data representing the result of the friend request operation. The structure typically includes confirmation of the request being sent and any response data from the API. There is no indication that binary data is output by this node.
Dependencies
- Requires access to an external API service capable of sending friend requests.
- Needs appropriate API authentication credentials configured in n8n (e.g., an API key or token).
- Depends on HTTP request capabilities within n8n to communicate with the external API.
Troubleshooting
- Missing Required Fields: Ensure that the "User ID Or Phone Number" and "Message" fields are provided when required. Missing these will cause errors.
- Invalid User Identifier: If the user ID or phone number is invalid or not recognized by the API, the friend request will fail.
- API Authentication Errors: Incorrect or missing API credentials will prevent the node from successfully sending requests.
- Incorrect Message Format: When using the "Raw Json" send option, ensure the JSON is correctly formatted; otherwise, the API may reject the request.
- Network Issues: Connectivity problems can cause timeouts or failures in sending the friend request.
Common error messages might include:
- "User not found" — Verify the user ID or phone number.
- "Authentication failed" — Check API credentials.
- "Invalid message format" — Validate JSON syntax if using raw JSON.
Links and References
- n8n HTTP Request Node Documentation
- Relevant API documentation for the friend request service (not provided here).