AutomationFlowsSocial Media › Unipile Linkedin Profile Lookup Subworkflow

Unipile Linkedin Profile Lookup Subworkflow

ByAngel Menendez @djangelic on n8n.io

This subworkflow is ideal for developers and automation builders working with UniPile and n8n to automate message enrichment and LinkedIn lead routing.

Event trigger★★★★☆ complexity9 nodesExecute Workflow TriggerHTTP Request
Social Media Trigger: Event Nodes: 9 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #4890 — we link there as the canonical source.

This workflow follows the Execute Workflow Trigger → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "f87a2a83-11c2-40f6-9b80-c1c13cb1d71f",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -560,
        -100
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "sender"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "43349b3c-cdc8-445b-8f03-6e42d19ccce9",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        -500
      ],
      "parameters": {
        "color": 7,
        "width": 1386,
        "height": 840,
        "content": "![unipile](https://uploads.n8n.io/templates/unipile.png)\n## Enrich LinkedIn Data with User or Org Data\nLinkedIn messages arrive from one of two object types, users or organizations. This workflow extracts the user data and passes it along. If the user is not found, then the Organization endpoint is searched instead. If it's found, it send that, otherwise it sends a not found object. "
      },
      "typeVersion": 1
    },
    {
      "id": "880c3f22-bb81-4311-bcf2-6943dd7a0988",
      "name": "Get Linkedin User Data from Unipile",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -360,
        -100
      ],
      "parameters": {
        "url": "=https://api9.unipile.com:13976/api/v1/users/{{ $json.sender }}",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "-oWmWRkASjKGUZadYcjcyg"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0e15d998-a820-48d6-80fe-56331df2998d",
      "name": "Set User Data from Unipile",
      "type": "n8n-nodes-base.set",
      "position": [
        -100,
        -240
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "aee91408-b68d-472e-8c3e-89260dd38c1c",
              "name": "first_name",
              "type": "string",
              "value": "={{ $json.first_name }}"
            },
            {
              "id": "57b3be6f-ba76-48c3-8f2e-1d9bb03d0dd5",
              "name": "last_name",
              "type": "string",
              "value": "={{ $json.last_name }}"
            },
            {
              "id": "75167f30-96d6-4442-9542-9d1b8e17fcb6",
              "name": "headline",
              "type": "string",
              "value": "={{ $json.headline }}"
            },
            {
              "id": "3e8bccc1-04a9-49f6-8053-eba22fe8d2f4",
              "name": "websites",
              "type": "array",
              "value": "={{ $json.websites }}"
            },
            {
              "id": "2e3dd2fe-5f71-4d19-bee8-085dd9bfc18c",
              "name": "follower_count",
              "type": "number",
              "value": "={{ $json.follower_count }}"
            },
            {
              "id": "ac5cc567-3c4f-481c-b229-9dc1e48d39fb",
              "name": "connections_count",
              "type": "number",
              "value": "={{ $json.connections_count }}"
            },
            {
              "id": "6bad07a6-4641-48cb-b436-fb735319865f",
              "name": "location",
              "type": "string",
              "value": "={{ $json.location }}"
            },
            {
              "id": "029fa351-f49f-4388-a59e-5719fcf8a506",
              "name": "profile_picture_url",
              "type": "string",
              "value": "={{ $json.profile_picture_url }}"
            },
            {
              "id": "2f96dca6-acee-41c0-83b5-00cd406d3301",
              "name": "is_influencer",
              "type": "boolean",
              "value": "={{ $json.is_influencer }}"
            },
            {
              "id": "4278e070-ce56-4993-b637-57ac60e83a49",
              "name": "is_premium",
              "type": "boolean",
              "value": "={{ $json.is_premium }}"
            },
            {
              "id": "b92c38f1-1423-4b7e-a807-320d13e0a944",
              "name": "shared_connections_count",
              "type": "number",
              "value": "={{ $json.shared_connections_count }}"
            },
            {
              "id": "96b24500-e6a4-444a-806c-0b61a1f00407",
              "name": "type",
              "type": "string",
              "value": "user"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "5eca56b3-e771-40c7-8415-2b9553a281ec",
      "name": "Group in one object - User",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        80,
        -240
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData",
        "destinationFieldName": "linkedinprofile"
      },
      "typeVersion": 1
    },
    {
      "id": "778e02d4-a6ab-4eaf-98e1-840cc09aa773",
      "name": "Get Linkedin Org Data from Unipile",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -100,
        -20
      ],
      "parameters": {
        "url": "=https://api9.unipile.com:13976/api/v1/linkedin/company/{{ $json.sender }}",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "-oWmWRkASjKGUZadYcjcyg"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "acd3ec80-4e8e-4539-bc06-b21e1aa63774",
      "name": "Set Linkedin Org Data from Unipile",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -40
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "aee91408-b68d-472e-8c3e-89260dd38c1c",
              "name": "first_name",
              "type": "string",
              "value": "={{ $json.name }}"
            },
            {
              "id": "57b3be6f-ba76-48c3-8f2e-1d9bb03d0dd5",
              "name": "last_name",
              "type": "string",
              "value": "="
            },
            {
              "id": "75167f30-96d6-4442-9542-9d1b8e17fcb6",
              "name": "headline",
              "type": "string",
              "value": "={{ $json.description }}"
            },
            {
              "id": "3e8bccc1-04a9-49f6-8053-eba22fe8d2f4",
              "name": "websites",
              "type": "string",
              "value": "={{ $json.website }}"
            },
            {
              "id": "2e3dd2fe-5f71-4d19-bee8-085dd9bfc18c",
              "name": "follower_count",
              "type": "number",
              "value": "={{ $json.followers_count }}"
            },
            {
              "id": "ac5cc567-3c4f-481c-b229-9dc1e48d39fb",
              "name": "employee_count",
              "type": "number",
              "value": "={{ $json.employee_count_range.from }}"
            },
            {
              "id": "6bad07a6-4641-48cb-b436-fb735319865f",
              "name": "location",
              "type": "string",
              "value": "={{ $json.locations[0].street.join(' ') }}, {{ $json.locations[0].city }} {{ $json.locations[0].area }}, {{ $json.locations[0].postalCode }} {{ $json.locations[0].country }}."
            },
            {
              "id": "89035aa7-e7bb-46eb-9f4b-633e2c17478a",
              "name": "hashtags",
              "type": "array",
              "value": "={{ $json.hashtags }}"
            },
            {
              "id": "25b0abe6-aef7-4d6f-88ea-5fcbd3472089",
              "name": "profile_picture_url",
              "type": "string",
              "value": "={{ $json.logo }}"
            },
            {
              "id": "decf44b7-520e-4977-9df5-276c5117d8e4",
              "name": "type",
              "type": "string",
              "value": "organization"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "ad3d70cf-adec-47d0-a0d2-48ddaf4d11fb",
      "name": "Group in one object - Org",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        380,
        -40
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData",
        "destinationFieldName": "linkedinprofile"
      },
      "typeVersion": 1
    },
    {
      "id": "45516b60-4465-4140-adbc-df9bf66b22ef",
      "name": "Set unable to find data object",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "438518ca-d55a-45d5-9210-0c53de7ae108",
              "name": "linkedinprofile",
              "type": "string",
              "value": "Unable to find LinkedIn Data"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "connections": {
    "Group in one object - Org": {
      "main": [
        []
      ]
    },
    "Group in one object - User": {
      "main": [
        []
      ]
    },
    "Set User Data from Unipile": {
      "main": [
        [
          {
            "node": "Group in one object - User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Get Linkedin User Data from Unipile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Linkedin Org Data from Unipile": {
      "main": [
        [
          {
            "node": "Set Linkedin Org Data from Unipile",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Set unable to find data object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Linkedin Org Data from Unipile": {
      "main": [
        [
          {
            "node": "Group in one object - Org",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Linkedin User Data from Unipile": {
      "main": [
        [
          {
            "node": "Set User Data from Unipile",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Linkedin Org Data from Unipile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This subworkflow is ideal for developers and automation builders working with UniPile and n8n to automate message enrichment and LinkedIn lead routing.

Source: https://n8n.io/workflows/4890/ — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

Disclaimer: this workflow only works on self-hosted instances due to the file system usage.

Execute Workflow Trigger, HTTP Request, Form Trigger +3
Social Media

Thread Detection: Automatically detects whether the provided Twitter link is a single tweet or a thread. Tweet Extraction: Fetches and returns the content of a single tweet, or gathers all tweets in a

Execute Workflow Trigger, HTTP Request
Social Media

This workflow performs automated LinkedIn people search using the TexAU API. It is ideal for prospecting, recruitment, lead generation, and workflows where structured people-search results from Linked

HTTP Request, Execute Workflow Trigger
Social Media

This workflow automates the extraction of detailed LinkedIn profile information through the TexAU API. It is designed for lead enrichment, prospect research, hiring workflows, and any automation requi

Execute Workflow Trigger, HTTP Request
Social Media

03 - YouTube Publisher. Uses executeWorkflowTrigger, httpRequest. Event-driven trigger; 5 nodes.

Execute Workflow Trigger, HTTP Request