Skip to main content

Check out Port for yourself ➜ 

Port n8n node

Open Beta

This feature is currently in open beta and available to all organizations. Should you encounter any bugs or functionality issues, please let us know so we can rectify them as soon as possible. Your feedback is greatly appreciated! ⭐

To get access, please fill out this form with your organization details.

Port provides a custom n8n node (n8n-nodes-portio-experimental) that simplifies integration with Port's AI agents and API. Instead of making manual HTTP requests for authentication, invocation, and response retrieval, the Port node handles all of this automatically, making it easy to build powerful automation workflows that leverage Port's Context Lake.

This guide walks you through installing and configuring Port's custom n8n node in your n8n instance.

Prerequisites

Before you begin, ensure you have:

  • npm installed — Required for installing the Port n8n node package. npm comes with Node.js, install Node.js if you don't have it.
  • A working n8n instance — Either n8n Cloud or a self-hosted instance. If you don't have one, follow n8n's guide on using Docker.
  • Port API credentials — Your Port Client ID and Client Secret. Learn how to get them.
  • A Port account with AI features enabled — Required for using Port AI agents in your workflows.
  • We recommend creating a dedicated service account in Port for each workflow or agent integration. This improves security and makes it easier to manage credentials.

Set up n8n instance

If you don't have an n8n instance running, you can set one up using one of the options below.
The location where you mount the n8n data directory is important - this is where the Port n8n node package will be installed.

If you prefer running n8n directly with npm, install it globally and start it from your terminal.

  1. Install n8n:

    npm install n8n -g
  2. Start n8n:

    n8n start
  3. Open n8n — Visit http://localhost:5678.

Install Port's n8n node

Now that you have n8n running, let's install Port's custom node using one of the options below.

If you use n8n Cloud, the Port node is verified and available directly from the canvas. If you do not see it, restart your workspace and confirm that Verified Community Nodes is enabled in your Admin Panel.

  1. In your n8n instance, go to Settings.

  2. Select Community Nodes.

  3. Click Install.

  4. Enter @port-labs/n8n-nodes-portio-experimental as the npm package name.

  5. Click Install to finish the setup.

The Port n8n node package is available on npm at @port-labs/n8n-nodes-portio-experimental. The package has been fully approved and is ready for production use.

Quick start

Now that the Port node is installed, let us verify it works by creating a simple workflow.

Add a Port node to your workflow

  1. Create a new workflow in your n8n instance.

  2. Add a trigger — For testing, add a Manual Trigger node so you can trigger the workflow manually by clicking the Execute Workflow button.

  3. Add the Port node:

    • Click the + button on the left side of the screen to add a new node
    • Search for port in the node search
  4. Select a Port node — Click the "Port API AI" search result and select "Invoke AI interaction" (this is the easiest one to test with).

  5. Connect the nodes — Drag from the + icon on the trigger node to the left side of the Port AI node to connect them.

    Success!

    You have successfully deployed your first Port n8n node! The node is now available in your n8n instance.

Configure Port credentials

Before you can use the Port node, you need to add your Port API credentials.

  1. Open the Port node — Double-click the Port AI node you just added.

  2. Create a new credential:

    • At the top of the node configuration, you will see a dropdown named Credential to connect with
    • Click this dropdown and select Create new credential
  3. Enter your Port credentials:

    • Client ID — Your Port Client ID
    • Client Secret — Your Port Client Secret

    If you're not sure how to get your Port credentials, see the Port API documentation.

  4. Save the credential — Click "Save" to store the credential.

    You can store multiple Port account credentials in n8n and select which one to use for each node. This is useful if you work with multiple Port organizations.

Verify the installation

To verify everything is working:

  1. Configure the Port node — In the General Purpose AI Interaction node:

    • Select your Port credential from the dropdown
    • Enter a simple prompt like "List all ec2 instances in the eu-west region"
    • Save the node
  2. Execute the workflow — Click Execute Workflow to test the connection.

  3. Check the output — If successful, you should see the AI response in the node output.

Available operations

The Port n8n node provides operations for interacting with Port's AI capabilities. Each operation corresponds to a different use case for querying and automating with Port's Context Lake.

generalInvoke
Direct Port AI query. Use this operation to interact with Port's Context Lake through natural language. You can query your software catalog, get insights about your services, or leverage Port's AI to analyze your data. API Reference
invokeAgent
Call a specific AI agent. Use this operation when you want to run predefined agent workflows configured in Port. Agents are reusable AI configurations that can be invoked with a simple prompt. API Reference
getInvocation
Retrieve results by invocation ID. Use this operation to fetch the results of a previous AI invocation. This is useful for asynchronous workflows where you need to poll for results. API Reference

What's next?

Now that you have Port's n8n node installed and configured, you can:

  • Build automation workflows — Use Port's Context Lake to enrich your n8n workflows with organizational context
  • Integrate with AI agents — Invoke Port AI agents from n8n workflows
  • Query the catalog — Access service metadata, ownership, dependencies, and more

Troubleshooting

Node not appearing in n8n

  • Check package installation — Verify that npm i @port-labs/n8n-nodes-portio-experimental completed successfully. Check for a node_modules directory in your $n8n_HOME directory.
  • Verify environment variable — Ensure N8N_COMMUNITY_PACKAGES_ENABLED=true is set in your Docker configuration.
  • Check installation location — Make sure the package is installed in the same directory that's mounted to /home/node/.n8n in the Docker container.
  • Restart n8n — Community packages are only loaded when n8n starts, so a restart is required after installation.

Restart n8n Cloud workspace

If you need to restart your hosted instance:

  1. Open the n8n Cloud admin panel.
  2. Select the Settings (gear) icon.
  3. Scroll to Workspace status and select Restart workspace.

Credential errors

  • Verify credentials — Double-check that your Client ID and Client Secret are correct.
  • Check AI features — Ensure your Port account has AI features enabled.
  • Test API access — Try making a direct API call to verify your credentials work.