Page 4: External Service Integrations and Advanced Nodes

4. External Service Integrations and Advanced Nodes

n8n\'s power comes from its ability to integrate with various external services. You can securely connect using Credentials and implement complex logic with Advanced Nodes.

4.1. External Service Integrations and Credentials

n8n can connect with countless apps, including APIs, databases, and cloud services. Most integrations are authenticated via Credentials.

  1. In the n8n UI, click \'Credentials\' in the left panel.
  2. Click \'New Credential\' and select the type of service you want to connect to (e.g., Google Sheets API, Custom HTTP Header Auth).
  3. Enter the required authentication information (API key, username/password, etc.) and save.

These created credentials can then be reused in nodes that connect to that service.

4.2. Frequently Used Advanced Nodes

4.3. Integration Example: Fetching Data from an API and Sending Notifications to Slack

You can fetch data from an external API with an HTTP Request node, process the data with a Code node, and then send the results to Slack using a Slack node.

// Example JavaScript for data processing in a Code node
return items.map(item => {
  return { json: {
    title: item.json.data.title.toUpperCase(),
    url: item.json.data.url
  }};
});