{
  "name": "AE3 - Send message linkedin via unipile (EC) - AE",
  "nodes": [
    {
      "parameters": {
        "method": "POST",
        "url": " https://api12.unipile.com:14284/api/v1/chats/qZhEAnk3VKac1AZrQ0M4WQ/messages",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "si6dEG/T.wlbC7d/Z9py53VazktN+zaUPdE7xEa10b87VVxqwMFA="
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "content-type",
              "value": "multipart/form-data"
            }
          ]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "Ndqv4K10RTCo-vHLfbjdeA"
            },
            {
              "name": "text",
              "value": "bonjour dounia , message envoyer via n8n"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        400,
        40
      ],
      "id": "dc815b05-c4d3-4088-ab0e-f70607c076f2",
      "name": "HTTP Request",
      "disabled": true
    },
    {
      "parameters": {
        "url": "https://api12.unipile.com:14284/api/v1/accounts",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "1. Lister les comptes"
            },
            {
              "name": "type",
              "value": "n8n-nodes-base.httpRequest"
            }
          ]
        },
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n          \"X-API-KEY\": \"si6dEG/T.wlbC7d/Z9py53VazktN+zaUPdE7xEa10b87VVxqwMFA=\",\n          \"accept\": \"application/json\"\n        }",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        720,
        20
      ],
      "id": "cccef744-717c-4620-99dd-9795bc52ab18",
      "name": "HTTP Request2",
      "disabled": true
    },
    {
      "parameters": {
        "operation": "__CUSTOM_API_CALL__"
      },
      "type": "n8n-nodes-base.phantombuster",
      "typeVersion": 1,
      "position": [
        420,
        -200
      ],
      "id": "7f195933-d429-4006-91ca-a6ea70832ab3",
      "name": "Phantombuster",
      "credentials": {
        "phantombusterApi": {
          "name": "<your credential>"
        }
      },
      "disabled": true
    },
    {
      "parameters": {
        "url": "https://api.phantombuster.com/api/v2/agents/execute",
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n  \"Content-Type\": \"application/json\",\n  \"X-Phantombuster-Key-1\": \"RiAmze29WRaSKF8xPfUrx064g3WOwXfeKoSycjwSu5I\"\n}",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"id\": \"9227\",\n  \"arguments\": {\n    \"sessionCookie\": \"li_at=AQEDATOTHfYAPOMqAAABldIihlQAAAGWGjhPdU4Anqu_cYcTq5kItnxt0ECSapDJVnE2MwD_Mph6pTKRqMa2QZQavheRZEwaltOn6plTFsJaSLzM7maY494Z6JzaaEOcGydIXsv13o62DVjiaWuZVNR8\",\n    \"message\": \"Bonjour dounia \",\n    \"profileUrls\": [\"https://www.linkedin.com/in/dounia-mzioued-440253206/\"]\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        720,
        -200
      ],
      "id": "39dfc4c4-656c-462b-bb30-bb7ee417af2f",
      "name": "HTTP Request1",
      "disabled": true
    },
    {
      "parameters": {
        "options": {}
      },
      "name": "Spreadsheet File",
      "type": "n8n-nodes-base.spreadsheetFile",
      "typeVersion": 1,
      "position": [
        0,
        -400
      ],
      "id": "37de0e40-2b15-45ca-9eb2-e56205054e58",
      "disabled": true
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1,
      "position": [
        -180,
        -380
      ],
      "id": "8b09a998-4f4a-4492-9348-dcedd054cf75",
      "disabled": true
    },
    {
      "parameters": {
        "url": "https://api12.unipile.com:14284/api/v1/users/relations?filter=keroumi%20younes&account_id=Ndqv4K10RTCo-vHLfbjdeA",
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n          \"X-API-KEY\": \"si6dEG/T.wlbC7d/Z9py53VazktN+zaUPdE7xEa10b87VVxqwMFA=\",\n          \"accept\": \"application/json\"\n        }",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        440,
        700
      ],
      "id": "613db4ac-b114-4078-9310-d1e80a4bed81",
      "name": "HTTP Request3",
      "disabled": true
    },
    {
      "parameters": {
        "formTitle": "linkedin url",
        "formFields": {
          "values": [
            {
              "fieldLabel": "url"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        -520,
        1580
      ],
      "id": "b50cb071-eddf-476e-b17f-b9570fd16135",
      "name": "On form submission",
      "disabled": true
    },
    {
      "parameters": {
        "jsCode": "\nconst linkedinUrl  = $('On form submission').first().json.url;\n// R\u00e9cup\u00e9rer l'URL depuis un champ pr\u00e9c\u00e9dent ou une variable\n\n\n// Extraire le nom/pr\u00e9nom depuis l'URL\nconst parts = linkedinUrl.split('/in/')[1].split('-');\nconst firstName = parts[0];\nconst lastName = parts[1];  \n\n// Formater le r\u00e9sultat \nconst formattedName = `${firstName.charAt(0).toUpperCase() + firstName.slice(1)} ${lastName.charAt(0).toUpperCase() + lastName.slice(1)}`;\n\nreturn {\n  firstName: firstName,\n  lastName: lastName,\n  fullName: formattedName,\n  profileId: parts.slice(2).join('-') \n};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -220,
        1520
      ],
      "id": "43aba686-a545-4f8c-82bb-da6972cfa73f",
      "name": "Code",
      "disabled": true
    },
    {
      "parameters": {
        "method": "POST",
        "url": "= https://api12.unipile.com:14284/api/v1/chats/{{ $json.id }}/messages ",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "si6dEG/T.wlbC7d/Z9py53VazktN+zaUPdE7xEa10b87VVxqwMFA="
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "content-type",
              "value": "multipart/form-data"
            }
          ]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "Ndqv4K10RTCo-vHLfbjdeA"
            },
            {
              "name": "text",
              "value": "bonjour dounia , message envoyer via n8n "
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        340
      ],
      "id": "4e5dfcab-69d9-4ac7-ae1a-bd2de196f7c9",
      "name": "HTTP Request4",
      "disabled": true
    },
    {
      "parameters": {
        "url": "https://api12.unipile.com:14284/api/v1/chats",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "si6dEG/T.wlbC7d/Z9py53VazktN+zaUPdE7xEa10b87VVxqwMFA="
            },
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -300,
        200
      ],
      "id": "b97bfaa3-9c53-422f-b6fb-cc9c253ace6f",
      "name": "HTTP Request5",
      "disabled": true
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=https://api2.unipile.com:13294/api/v1/chats",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs="
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "content-type",
              "value": "multipart/form-data"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "CeosngVBTP-zIcpD_g46qw"
            },
            {
              "name": "text",
              "value": "SMARTGAP est une soci\u00e9t\u00e9 luxembourgeoise sp\u00e9cialis\u00e9e dans la transformation digitale, l\u2019int\u00e9gration de solutions ERP/CRM et l\u2019automatisation des processus m\u00e9tiers. Forte de son expertise en conseil strat\u00e9gique, elle accompagne les entreprises dans la modernisation de leurs syst\u00e8mes d'information. SMARTGAP intervient principalement en Europe et d\u00e9veloppe \u00e9galement des projets internationaux \u00e0 travers sa filiale africaine AFRIKAN CAMPUS. L\u2019entreprise combine approche m\u00e9tier, innovation technologique et d\u00e9veloppement des comp\u00e9tences."
            },
            {
              "name": "attendees_ids",
              "value": "={{ $('HTTP Request7').item.json.items[0].member_id }}"
            },
            {
              "parameterType": "formBinaryData",
              "name": "attachments",
              "inputDataFieldName": "data"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        720,
        1500
      ],
      "id": "933e0db9-4bbf-4aa5-8e2e-4ff33760cd7c",
      "name": "HTTP Request6",
      "disabled": true
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -780,
        660
      ],
      "id": "8f98c54a-66a1-41e2-b9d1-97a971f899a0",
      "name": "When clicking \u2018Test workflow\u2019",
      "disabled": true
    },
    {
      "parameters": {
        "jsCode": "\n\nconst response = await got('https://api13.unipile.com:14332/api/v1/users/relations', {\n  headers: {\n    'accept': 'application/json',\n    'X-API-KEY': 'yExdlBkO.r2acbBa9yzo1nNikvnbOes04GHIkOIPi7M4yuTM12ZI='\n  },\n  searchParams: {\n    filter: 'aymene',\n    account_id: 'coo86gXkQiqto0n4ESwzpQ'\n  }\n});\n\nreturn JSON.parse(response.body);"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1300,
        800
      ],
      "id": "1b607135-777e-4521-be70-900e0903a3d6",
      "name": "Code2",
      "disabled": true
    },
    {
      "parameters": {
        "url": "=https://api2.unipile.com:13294/api/v1/users/relations?filter={{$('Code').item.json.firstName}}%20{{$('Code').item.json.lastName}}&account_id=CeosngVBTP-zIcpD_g46qw",
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n          \"X-API-KEY\": \"FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs=\",\n          \"accept\": \"application/json\"\n        }",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        60,
        1540
      ],
      "id": "516fcb82-c1a5-4163-baa6-a056b343d6e4",
      "name": "HTTP Request7",
      "disabled": true
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "1cDNOC9tUOefnn8FBW1ba8ZQ8TssEevtJ",
          "mode": "list",
          "cachedResultName": "Smart Gap - Pr\u00e9sentation Corporate.pdf",
          "cachedResultUrl": "https://drive.google.com/file/d/1cDNOC9tUOefnn8FBW1ba8ZQ8TssEevtJ/view?usp=drivesdk"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        360,
        1520
      ],
      "id": "be6e9071-3c6e-4d55-8d9b-cb90f468d21a",
      "name": "Google Drive",
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "disabled": true
    },
    {
      "parameters": {
        "jsCode": "return {\n  mimeType: $('Google Drive').first().binary.data.mimeType,\n  fileName: $('Google Drive').first().binary.data.fileName,\n  dataPreview: $('Google Drive').first().binary.data.data};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        740,
        960
      ],
      "id": "f66bb021-f589-48a5-8665-f5a5da295961",
      "name": "Code1"
    },
    {
      "parameters": {
        "formTitle": "Envoyer message LinkedIn Unipile",
        "formFields": {
          "values": [
            {
              "fieldLabel": "URL LinkedIn"
            },
            {
              "fieldLabel": "Message \u00e0 envoyer"
            },
            {
              "fieldLabel": "Joindre le fichier PDF ?"
            }
          ]
        },
        "options": {}
      },
      "id": "8ffa2f10-5694-4546-bf0e-39c3339cb92d",
      "name": "Formulaire",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [
        400,
        2160
      ]
    },
    {
      "parameters": {
        "jsCode": "\nconst linkedinUrl  =$input.first().json['URL LinkedIn'];\n// R\u00e9cup\u00e9rer l'URL depuis un champ pr\u00e9c\u00e9dent ou une variable\n\n\n// Extraire le nom/pr\u00e9nom depuis l'URL\nconst parts = linkedinUrl.split('/in/')[1].split('-');\nconst firstName = parts[0];\nconst lastName = parts[1];  \n\n// Formater le r\u00e9sultat \nconst formattedName = `${firstName.charAt(0).toUpperCase() + firstName.slice(1)} ${lastName.charAt(0).toUpperCase() + lastName.slice(1)}`;\n\nreturn {\n  firstName: firstName,\n  lastName: lastName,\n  fullName: formattedName,\n  profileId: parts.slice(2).join('-') \n};"
      },
      "id": "37a8d1c6-15ca-49e1-8374-937a3f0d93dd",
      "name": "Extract Name",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        700,
        2160
      ]
    },
    {
      "parameters": {
        "url": "=https://api2.unipile.com:13294/api/v1/users/relations?filter={{$json[\"firstName\"]}}%20{{$json[\"lastName\"]}}&account_id=CeosngVBTP-zIcpD_g46qw",
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n  \"X-API-KEY\": \"FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs=\",\n  \"accept\": \"application/json\"\n}",
        "options": {}
      },
      "id": "52594fab-7a41-4d5b-a529-f613f39dc21b",
      "name": "Recherche Unipile",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1000,
        2160
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "0e5e404e-995e-46e4-9eaa-7325780af508",
              "leftValue": "={{ $json.items.toString() }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "45754b6d-3d68-41d0-8c8d-36470c06195b",
      "name": "Contact trouv\u00e9 ?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        1300,
        2160
      ]
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "1cDNOC9tUOefnn8FBW1ba8ZQ8TssEevtJ",
          "mode": "list"
        },
        "options": {}
      },
      "id": "4bc6dd66-4344-45ef-8707-336766e99a5b",
      "name": "T\u00e9l\u00e9charger PDF",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1260,
        920
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 1
          },
          "conditions": [
            {
              "id": "deafa195-7961-4465-89ff-c6497bc9a04e",
              "leftValue": "={{ $('Formulaire').item.json['Joindre le fichier PDF ?'] }}",
              "rightValue": "oui",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "281b0487-f568-4e95-9699-9e25010369c7",
      "name": "Joindre PDF ?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        1600,
        2160
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api2.unipile.com:13294/api/v1/chats",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs="
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "content-type",
              "value": "multipart/form-data"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "CeosngVBTP-zIcpD_g46qw"
            },
            {
              "name": "text",
              "value": "={{ $('Formulaire').item.json['Message \u00e0 envoyer'] }}"
            },
            {
              "name": "attendees_ids",
              "value": "={{ $node[\"Recherche Unipile\"].json[\"items\"][0][\"member_id\"] }}"
            }
          ]
        },
        "options": {}
      },
      "id": "f9fdf16b-b3be-4870-9bc8-61df77025e17",
      "name": "Envoyer message sans PDF",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2180,
        2300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api2.unipile.com:13294/api/v1/chats",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs="
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "content-type",
              "value": "multipart/form-data"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "account_id",
              "value": "CeosngVBTP-zIcpD_g46qw"
            },
            {
              "name": "text",
              "value": "={{ $('Formulaire').item.json['Message \u00e0 envoyer'] }}"
            },
            {
              "name": "attendees_ids",
              "value": "={{ $node[\"Recherche Unipile\"].json[\"items\"][0][\"member_id\"] }}"
            },
            {
              "parameterType": "formBinaryData",
              "name": "attachments",
              "inputDataFieldName": "data"
            }
          ]
        },
        "options": {}
      },
      "id": "e8fe3b7c-d72f-480e-807d-43496932ce97",
      "name": "Envoyer message avec PDF",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2120,
        2020
      ]
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "1cDNOC9tUOefnn8FBW1ba8ZQ8TssEevtJ",
          "mode": "list",
          "cachedResultName": "Smart Gap - Pr\u00e9sentation Corporate.pdf",
          "cachedResultUrl": "https://drive.google.com/file/d/1cDNOC9tUOefnn8FBW1ba8ZQ8TssEevtJ/view?usp=drivesdk"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1920,
        2060
      ],
      "id": "83c1a5e6-4896-4a21-bf6f-2381eb47a1c9",
      "name": "Google Drive1",
      "credentials": {
        "googleDriveOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Extraction du public_identifier LinkedIn\nconst url =  $('Formulaire').first().json['URL LinkedIn']  || '';\nlet public_identifier = '';\ntry {\n  let main = url.split('/in/')[1];\n  main = main.split(/[/?#]/)[0];\n  public_identifier = main;\n} catch (e) {}\nreturn { ...$json, public_identifier };\n"
      },
      "id": "35837e26-f115-4ff2-a58b-02f8669fe772",
      "name": "Extract LinkedIn Public ID",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2340,
        2560
      ],
      "executeOnce": true
    },
    {
      "parameters": {
        "url": "=https://api2.unipile.com:13294/api/v1/users/{{$json[\"public_identifier\"]}}?account_id=CeosngVBTP-zIcpD_g46qw",
        "sendHeaders": true,
        "specifyHeaders": "json",
        "jsonHeaders": "{\n  \"X-API-KEY\": \"FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs=\",\n  \"accept\": \"application/json\"\n}",
        "options": {}
      },
      "id": "795e6f36-efd3-475f-a80f-7e6ce5113caa",
      "name": "Get Provider ID",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2580,
        2580
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api2.unipile.com:13294/api/v1/users/invite",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY",
              "value": "FBnXL9x9.AyJ+89WfuZFnCtMQLTml75zAu4uRWR5th2qBSgwQGEs="
            },
            {
              "name": "accept",
              "value": "application/json"
            },
            {
              "name": "content-type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "provider_id",
              "value": "={{ $node[\"Get Provider ID\"].json[\"provider_id\"] }}"
            },
            {
              "name": "account_id",
              "value": "CeosngVBTP-zIcpD_g46qw"
            },
            {
              "name": "message",
              "value": "={{ $('Extract LinkedIn Public ID').item.json.formMode }}"
            }
          ]
        },
        "options": {}
      },
      "id": "8f82d32f-bc27-44f8-a58e-f448b83726d3",
      "name": "Envoyer invitation",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2880,
        2580
      ]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Spreadsheet File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "HTTP Request7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request5": {
      "main": [
        []
      ]
    },
    "HTTP Request3": {
      "main": [
        []
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        []
      ]
    },
    "HTTP Request7": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request6": {
      "main": [
        []
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "HTTP Request6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        []
      ]
    },
    "Formulaire": {
      "main": [
        [
          {
            "node": "Extract Name",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Name": {
      "main": [
        [
          {
            "node": "Recherche Unipile",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recherche Unipile": {
      "main": [
        [
          {
            "node": "Contact trouv\u00e9 ?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Contact trouv\u00e9 ?": {
      "main": [
        [
          {
            "node": "Joindre PDF ?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract LinkedIn Public ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Joindre PDF ?": {
      "main": [
        [
          {
            "node": "Google Drive1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Envoyer message sans PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "T\u00e9l\u00e9charger PDF": {
      "main": [
        []
      ]
    },
    "Envoyer message avec PDF": {
      "main": [
        []
      ]
    },
    "Envoyer message sans PDF": {
      "main": [
        []
      ]
    },
    "Google Drive1": {
      "main": [
        [
          {
            "node": "Envoyer message avec PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract LinkedIn Public ID": {
      "main": [
        [
          {
            "node": "Get Provider ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Provider ID": {
      "main": [
        [
          {
            "node": "Envoyer invitation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "d6408d1a-b4ed-43b2-b230-ba56209e7f77",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "2QVJj39iCPs2Awu5",
  "tags": []
}