emelia.json•6.41 kB
{
"nodeType": "n8n-nodes-base.emelia",
"displayName": "Emelia",
"description": "Consume the Emelia API",
"version": 1,
"properties": [
{
"name": "campaignId",
"displayName": "Campaign Name or ID",
"type": "options",
"default": [],
"description": "The ID of the campaign to add the contact to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"campaign"
],
"operation": [
"addContact"
]
}
}
},
{
"name": "contactEmail",
"displayName": "Contact Email",
"type": "string",
"default": "",
"description": "The email of the contact to add to the campaign",
"required": true,
"displayOptions": {
"show": {
"resource": [
"campaign"
],
"operation": [
"addContact"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Filter by custom fields",
"placeholder": "Add Field",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"resource": [
"campaign"
],
"operation": [
"addContact"
]
}
}
},
{
"name": "campaignName",
"displayName": "Campaign Name",
"type": "string",
"default": "",
"description": "The name of the campaign to create",
"required": true,
"displayOptions": {
"show": {
"resource": [
"campaign"
],
"operation": [
"create"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"resource": [
"campaign"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 100,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 100
},
"displayOptions": {
"show": {
"resource": [
"campaign"
],
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to copy all the contacts from the original campaign",
"placeholder": "Add Field",
"options": [
{
"name": "copyContacts",
"displayName": "Copy Contacts",
"type": "boolean",
"default": false,
"description": "Whether to copy all the contacts from the original campaign"
},
{
"name": "copyProvider",
"displayName": "Copy Email Provider",
"type": "boolean",
"default": true,
"description": "Whether to set the same email provider than the original campaign"
},
{
"name": "copyMails",
"displayName": "Copy Email Sequence",
"type": "boolean",
"default": true,
"description": "Whether to copy all the steps of the email sequence from the original campaign"
},
{
"name": "copySettings",
"displayName": "Copy Global Settings",
"type": "boolean",
"default": true,
"description": "Whether to copy all the general settings from the original campaign"
}
],
"displayOptions": {
"show": {
"operation": [
"duplicate"
],
"resource": [
"campaign"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "get",
"options": [
{
"name": "Add Contact",
"value": "addContact"
},
{
"name": "Create",
"value": "create"
},
{
"name": "Duplicate",
"value": "duplicate"
},
{
"name": "Get",
"value": "get"
},
{
"name": "Get Many",
"value": "getAll"
},
{
"name": "Pause",
"value": "pause"
},
{
"name": "Start",
"value": "start"
}
],
"displayOptions": {
"show": {
"resource": [
"campaign"
]
}
}
},
{
"name": "contactListId",
"displayName": "Contact List Name or ID",
"type": "options",
"default": [],
"description": "The ID of the contact list to add the contact to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
"required": true,
"displayOptions": {
"show": {
"resource": [
"contactList"
],
"operation": [
"add"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "campaign",
"required": true,
"options": [
{
"name": "Campaign",
"value": "campaign"
},
{
"name": "Contact List",
"value": "contactList"
}
]
}
],
"credentialsConfig": [
{
"name": "emeliaApi",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}