Package Information
Downloads: 1 weekly / 4 monthly
Latest Version: 0.2.0
Author: AIBooks2025
Documentation
n8n-nodes-awesome-n8n (FriendGrid)
Custom n8n node that creates contacts in SendGrid Marketing via the FriendGrid example.
- Node name (search in editor): FriendGrid
- Internal name:
friendGrid - Credential: FriendGrid API (API Key)
Installation
Local development/test install, following the official guide Test your node:
- Build the package in this repo root:
npm run build npm link - Link into your n8n custom directory (create if missing):
- Windows:
%USERPROFILE%\.n8n\custom - macOS/Linux:
~/.n8n/custom
cd ~/.n8n/custom npm init -y npm link n8n-nodes-awesome-n8n - Windows:
- Start n8n:
n8n start - In the editor, search for “FriendGrid”.
Operations
- Resource: Contact
- Operation: Create
- Creates/updates a marketing contact in SendGrid
- HTTP:
PUT https://api.sendgrid.com/v3/marketing/contacts
- Operation: Create
Parameters
- Email (string, required): Email address of the contact.
- Additional Fields (collection, optional):
- First Name (
first_name) - Last Name (
last_name)
- First Name (
The node supports multiple input items using getInputData() and will send each item’s contact in the contacts array as described in the docs Step 3.5 – Add operations.
Credentials
- FriendGrid API (API Key)
- Header:
Authorization: Bearer <API_KEY> - Test request:
GET https://api.sendgrid.com/v3/marketing/contacts
- Header:
Create the credential in n8n and select it on the node.
Usage
- Add the FriendGrid node.
- Set Resource = Contact, Operation = Create.
- Enter Email or map it from previous nodes.
- Optionally set Additional Fields.
- Execute the workflow.
Compatibility
- Node.js >= 20
- n8n 1.x
Development
npm run dev # tsc --watch
npm run build # compile to dist and copy icons
npm run lint # check
npm run lintfix # fix
If the icon doesn’t show, ensure the node’s icon points to an SVG present in the same folder (nodes/FriendGrid/sendGrid.svg), then rebuild.
Troubleshooting
- The node doesn’t appear in the editor:
- Ensure you searched for the node name “FriendGrid”, not the package name.
- Verify the link in your custom directory:
npm link n8n-nodes-awesome-n8n. - Restart n8n after rebuilding.
- Icon shows a broken image:
- Ensure
icon: { light: 'file:sendGrid.svg', dark: 'file:sendGrid.svg' }and the SVG exists.
- Ensure
- Multiple items processing:
- The node loops over input items using
getInputData()per the official guide.
- The node loops over input items using
Resources
- n8n programmatic node guide – operations and batching: Add operations
- n8n programmatic node guide – testing locally: Test your node
License
MIT