Description
n8n-nodes-smartemailing-contact-importer
This n8n community node allows you to import contacts into Smartemailing contact lists directly from your n8n workflows.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
Credentials
This node requires Smartemailing API credentials:
- Username: Your Smartemailing API username
- Password: Your Smartemailing API password (API key)
You can find your API credentials in your Smartemailing account settings under API access.
Parameters
Contact List Name or ID
- Required: Yes
- Type: Dropdown (dynamically loaded from your Smartemailing account)
- Description: Select the contact list where contacts will be imported. You can also specify an ID using an expression.
Contact Data Source
- Required: No (default:
From Input Items) - Type: Options
- Options:
- From Input Items: Use contact data from previous node's output items
- From JSON Parameter: Provide contact data as a JSON array in the parameter below
Contact Data (JSON)
- Required: Yes (only when Contact Data Source is set to
From JSON Parameter) - Type: JSON
- Description: JSON array of contact objects to import. See Contact Data Format below.
Settings
Optional settings for the import process:
- Update (default:
true): Whether to update existing contacts - Add Genders (default:
false): Whether to add genders to contacts - Add Namedays (default:
false): Whether to add namedays to contacts - Add Salutations (default:
false): Whether to add salutations to contacts - Preserve Unsubscribed (default:
true): Whether to preserve unsubscribed status - Skip Invalid Emails (default:
false): Whether to skip invalid email addresses
Double Opt-In Settings
Optional settings for double opt-in email campaigns:
- Email ID: ID of the email to send for double opt-in confirmation
- Sender From: Email address to send from
- Sender Name: Name of the sender
- Sender Reply To: Reply-to email address
- Confirmation Thank You Page URL: URL to redirect to after confirmation
- Send To Mode: Who should receive the double opt-in email
All: Send to all contactsNew Only: Send only to new contacts
- Silence Period Unit: Unit for the silence period (
daysorhours) - Silence Period Value: Value for the silence period (number)
Contact Data Format
When using From Input Items, each input item should be a contact object. The node will automatically:
- Extract contact data from each item's JSON
- If an item has a
dataarray, it will use that array - If an item is itself an array, it will use that array
- Otherwise, it will treat the item as a single contact object
When using From JSON Parameter, provide a JSON array in the following format:
[
{
"emailaddress": "contact@example.com",
"name": "John Doe",
"contactlists": [
{
"id": 1,
"status": "confirmed"
}
],
"customfields": [
{
"id": 1,
"value": "Custom value"
}
]
}
]
Note: The selected contact list ID will be automatically added to each contact's contactlists array if not already present.
Contact Object Fields
- emailaddress (required): Contact's email address
- name (optional): Contact's name
- contactlists (optional): Array of contact list objects with
idandstatus(confirmedorunsubscribed) - customfields (optional): Array of custom field objects with
idandvalue(oroptionsfor multi-select) - purposes (optional): Array of purpose objects with
id,valid_from, andvalid_to - preferences (optional): Object with
contact_preferencesarray - blacklisted (optional): Set to
1to blacklist the contact
For complete field documentation, refer to the Smartemailing API documentation.
Usage Examples
Example 1: Import from Previous Node
- Connect a node that outputs contact data (e.g., Google Sheets, Database)
- Configure the node to output contact objects with
emailaddressand other fields - Connect to Smartemailing Contact Importer node
- Select the target contact list
- Set Contact Data Source to
From Input Items - Configure import settings as needed
Example 2: Import from JSON
- Add Smartemailing Contact Importer node
- Select the target contact list
- Set Contact Data Source to
From JSON Parameter - Enter JSON array in Contact Data field:
[
{
"emailaddress": "user1@example.com",
"name": "User One"
},
{
"emailaddress": "user2@example.com",
"name": "User Two"
}
]
- Configure import settings as needed
Output
The node returns the response from the Smartemailing API import endpoint, which includes:
- status: Import status (
createdon success) - contacts_map: Mapping of email addresses to contact IDs (empty if double opt-in is used)
- double_opt_in_map: Mapping for double opt-in requests (if applicable)
Resources
Compatibility
- Minimum n8n version: 1.0.0
- Smartemailing API: v3
Version History
1.0.0
- Initial release
- Import contacts to Smartemailing contact lists
- Support for all import settings and double opt-in configuration