---
title: How to Build AI Workflows Using N8N on Vultr Cloud GPU
url: https://docs.vultr.com/how-to-build-ai-workflows-using-n8n-on-vultr-cloud-gpu
description: Learn how to set up and configure N8N on Vultr Cloud GPU to create powerful AI workflows. Step-by-step guide for automating AI tasks efficiently.
publish_date: 2025-10-29T14:51:48.227810Z
last_updated: 2026-09-11T16:40:19.293734Z
author: Dmitry Narizhnykhal
header_image: https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/45624004-0b71-4678-b4be-ff7d6cc96376.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

n8n is an open-source workflow automation platform that enables you to build and automate workflows by connecting nodes to represent various services and actions. n8n combines visual building with custom code to create and integrate multi-step AI agents into existing applications. n8n offers flexible and developer-friendly automation features, including the following:

* **Event-Driven Execution**: n8n uses nodes to execute workflows based on specific events like incoming webhooks, enabling you to automate real-time application and system changes.
* **Visual Workflow Builder**: n8n offers a web-based workflow management interface that lets you build workflows by connecting nodes. Each node represents an action, trigger, or service integration.
* **Extensive Integration Library**: n8n supports over 350 built-in integration services, such as GitHub, Google Workspace, Slack, and Discord, to connect workflows with any service via API.
* **Native JavaScript Support**: n8n supports custom JavaScript code, enabling you to create advanced workflows from code.

In this guide, you will build AI-powered workflows using n8n on a Vultr Cloud GPU server.

## Prerequisites

Before you begin, you need to:

* Deploy an [Nvidia based Vultr Cloud GPU server](https://www.vultr.com/products/cloud-gpu/) with Ubuntu 24.04 to run n8n.
* Access the instance [using SSH](https://docs.vultr.com/connect-to-a-server-using-an-ssh-key).
* Create a [non-root sudo user and switch to the user](https://docs.vultr.com/how-to-create-a-sudo-user-in-linux).
* [Install n8n](https://docs.vultr.com/how-to-install-n8n-on-ubuntu-2404#create-n8n-directory-structure) on your Vultr Cloud GPU server and configure it with a domain name such as `n8n.example.com`.

## Access and Setup n8n

n8n requires a valid user account to access the main workflow dashboard. Follow the steps below to access n8n and customize the workflow management dashboard on your server.

1. Access the n8n setup page using a web browser like Chrome.

    ```
    http://n8n.example.com
    ```

1. Enter your active email address, first name, last name, and a strong password in the respective fields.

    ![Setup User Information](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/c7ccd444-3028-4b81-b8a2-9fc6826d39d4.png)

1. Click **Next** to save the owner account information.
1. Enter your company information in n8n and click **Get Started** to save it.

    ![Setup Company Information](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/0c4604df-5eac-4bc3-9b21-a4b2380f7614.png)

1. Enter your active email address to generate a free license key to use with n8n.
1. Access your mailbox and copy the license key.

    ![n8n License Key Information](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/214fddce-18f7-4274-b624-772930af8aa7.png)

1. Click your username in the bottom left corner, and select **Settings** from the list.
1. Click **Enter activation key** and paste the license key to unlock advanced n8n features.
1. Click **Activate** to apply the license key.

    ![Activate n8n License](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/5d53d90d-b2c3-43e6-b694-edf26830de99.png)

## Create Basic Workflows Using n8n

Follow the steps below to create a basic HTTP workflow in n8n.

1. Navigate to **Overview** within the n8n Workflow management interface.

    ![Create Workflow](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/73244cd9-387d-4429-bcb7-3bd8f24947eb.png)

1. Click the **Create Workflow** button in the top-right corner of the page.
1. Click **Add first step**.
1. Enter `webhook` in the search field and press :key_enter: to browse the available triggers.
1. Select **Webhook** from the list of options to open its configuration dialog.

    ![Add Webhook node](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/8123c5d0-b2aa-4062-9c6f-e1db6994da94.png)

1. Click the **HTTP Method** drop-down and select **GET** from the list of options.
1. Remove the default value in the **Path** field and set `/greetings` as the new path.

    ![Configure Webhook Node](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/03788cd6-a625-4f9c-98cf-0f5bfc3f6eef.png)

1. Click the **Respond** drop-down and select `Using 'Respond to Webhook' Node` from the list of options.
1. Click **Back to Canvas** to save the node configuration.
1. Click **+** to add a new node to your canvas.
1. Search and select `Respond to Webhook` from the list of options.

    ![Add Respond Node](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/b1b27772-3ae1-4b5e-85d8-8dc5df260bc2.png)

1. Click the **Respond With** drop-down and select **JSON** from the list of options.
1. Replace the default **Response Body** configuration with the following contents.

    ```json
    {
      "message": "Greetings from Vultr! The workflow is successfully executed",
      "status": "success",
      "timestamp": "{{ $now }}"
    }
    ```

1. Click **Back to Canvas** to save the response configuration.
1. Toggle **Inactive** on the top navigation bar to activate the workflow.
1. Click **Got it** and verify that the workflow is active.

    ![Activate Workflow](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/91eb0b2e-37b7-4070-a64d-57c089965441.png)

1. Click **Execute Workflow** to start the workflow.
1. Double-click the **Webhook** node to open its configuration page.

    ![Copy Webhook URL](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/6c2ff9e8-0a92-45cc-ba5f-f0fd9072360b.png)

1. Copy the node URL from the **Webhook URLs** to execute with a curl request.
1. Click **Back to canvas** to access the workflow.
1. Open a new terminal on your workstation.
1. Send a new `GET` request to the Webhook URL.

    ```console
    $ curl https://n8n.example.com/webhook-test/greetings
    ```

    Verify that the request is accepted with a `Greetings from Vultr` response in your output, similar to the one below.

    ```
    {"message":"Greetings from Vultr! The workflow is successfully executed","status":"success","timestamp":"2025-09-13T20:57:56.959-04:00"}
    ```

1. Verify that your workflow executes within the n8n interface and monitor the node output within the **Logs** pane.

    ![Verify Workflow Execution](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/75be6ca5-4c4d-4488-a217-3a0eb82b2d4d.png)

1. Click **Save** on the top navigation bar to keep all changes in your workflow.

## Create AI Workflows Using n8n

AI agents are autonomous software systems or applications that use large language models (LLMs) to understand goals, plan, and execute tasks automatically, with minimal human intervention. In n8n, they require API credentials to connect to specific model providers such as OpenAI, Claude, Mistral, and store the executed tasks in memory for reference and use in your workflow. You can integrate AI agents with popular services to perform tasks like searching the web, sending reminders, sending Slack, Discord, Telegram, or WhatsApp messages, and managing calendar events.

Follow the steps below to install Ollama on your server, download and run self-hosted models, and create automated AI Agent Workflows to perform basic tasks in your workflow.

### Install Ollama

Ollama is an open-source tool for running large language models (LLMs) locally, without relying on cloud-based models. It supports OpenAI-compatible endpoints, making it compatible with the AI workflows in n8n with support for tools and functions depending on the downloaded models. Follow the steps below to install Ollama using Docker and download models like `gpt-oss` to use with AI workflows in n8n.

1. Check the GPU usage information on your server to enable fast model execution with Ollama.

    ```console
    $ nvidia-smi
    ```

1. Run Ollama using Docker with GPU acceleration.

    ```console
    $ sudo docker run -d --gpus=all -v ollama:/app/.ollama -p 11434:11434 --name ollama ollama/ollama
    ```

1. Verify the installed Ollama version.

    ```console
    $ sudo docker exec -it ollama ollama --version
    ```

1. Visit the [Ollama models repository](https://ollama.com/search) and note the large language models (LLMs) to download on your server.

    ![Browse Ollama Models](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/1fc002a5-9fb6-4a60-8f4e-0691ea5a86d9.png)

1. Download a model such as `gpt-oss:20b` using Ollama to use with n8n.

    ```console
    $ sudo docker exec -it ollama ollama pull gpt-oss:20b
    ```

1. List all downloaded models.

    ```console
    $ sudo docker exec -it ollama ollama list
    ```

    Output:

    ```
    NAME           ID              SIZE     MODIFIED      
    gpt-oss:20b    aa4295ac10c3    13 GB    2 minutes ago   
    ```

1. Allow connections to the `11434` Ollama port through the firewall to enable API connections using your domain or the server IP address.

    ```console
    $ sudo ufw allow 11434/tcp
    ```

1. Reload UFW to apply the firewall configuration changes.

    ```console
    $ sudo ufw reload
    ```

### Create AI Agents in n8n

Follow the steps below to create a new AI Agent that executes basic tasks in your workflow using Ollama.

1. Click **Overview** within the n8n workflow management interface.
1. Click **Create New Workflow**.
1. Click **+** and enter `chat` in the search bar.

    ![Search Chat Trigger](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/22446173-b0c9-4d95-98cc-2ad09069db06.png)

1. Select **Chat Trigger** from the list of triggers to open its configuration pane.
1. Click **Back to canvas** to use the trigger without any additional configurations.
1. Click **+** next to the node, search and select **AI Agent** from the list of trigger options.

    ![Add AI Agent Node](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/157b62cf-73ff-4391-964d-8ede52487e74.png)

1. Verify that the **Source for Prompt** is set to **Connect Chat Trigger Node**, and click **Back to canvas**.
1. Click **+** on the **Chat Model** input.
1. Search for `ollama` and select **Ollama Chat Model** from the list of model options.

    ![Add Ollama to AI Agent](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/0f30dd69-47fa-40a6-a1c3-8bb1fabc6d83.png)

1. Click the **Select Credential** drop-down and select **Create new credential**.
1. Replace the **Base URL** with your server's IP address and Ollama port.

    ![Set Up Ollama Credential](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/2e5d2aaf-5274-4b6a-8a3f-a07821aeca78.png)

1. Click **Save** to test the Ollama connection and close the configuration dialog.
1. Click the **Model** drop-down and select the base model to use with the AI agent in your workflow.

    ![Select the Ollama Chat Model](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/2d11f0c4-0e9d-44e7-90dc-646e85f0f2e3.png)

1. Click **Back to canvas** to switch to your workflow.
1. Click the **+** on the memory input and select **Simple Memory** from the list of options to use the n8n memory.

    ![Add Agent Memory](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/2fb8ec70-0dc2-485e-9477-d98dd4a7db57.png)

1. Click **Back to canvas** to use the memory with the default configuration.
1. Click **+** on the **Tool** input, search and select **Calculator** from the list of available tools.

    ![Add Agent Tool](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/6063d092-63b3-4fbe-a716-d457f18ba62d.png)

1. Click **Back to canvas** and click **Save** to keep the workflow changes.
1. Toggle **Inactive** on the top navigation bar to activate the workflow.

    ![Activate the AI Workflow](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/ad30e45c-9ff4-4afb-88c9-a38f51be4518.png)

1. Click **Open chat** to open the bottom chat interface.
1. Enter a basic calculation prompt within the **Chat** pane. For example, `What is 3345 multiplied by 17, and divided by 5?`.
1. Press :key_enter: to execute the workflow and monitor the AI agent execution.

    ![Monitor the AI Agent Workflow](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/01f0568c-5cb3-4247-a37b-8e20d1cad2b9.png)

1. Verify that the AI agent stores the prompt in memory and uses Ollama to process the output in your workflow.

    ![View the AI Agent output](https://lhr1.vultrobjects.com/docs-main-doc-assets-1/2353/98d22d96-6562-464d-ae38-93821e0d1b81.png)

    You have executed an AI workflow in n8n using Ollama and stored all executed prompts in memory with the AI agent node. You can add new actions to the AI agent to process results using additional services such as Google Drive, Google Sheets, or Telegram.

## Conclusion

In this guide, you installed and configured n8n to build automated AI workflows using AI agents on a Vultr Cloud GPU instance. You can use n8n to build advanced AI agents and integrate existing services via API to perform multiple automated tasks in your workflow. For more information and [workflow templates](https://n8n.io/workflows/), visit the [n8n documentation](https://docs.n8n.io/).
