
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:
In this guide, you will build AI-powered workflows using n8n on a Vultr Cloud GPU server.
Before you begin, you need to:
n8n.example.com.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.
Access the n8n setup page using a web browser like Chrome.
Enter your active email address, first name, last name, and a strong password in the respective fields.
Click Next to save the owner account information.
Enter your company information in n8n and click Get Started to save it.
Enter your active email address to generate a free license key to use with n8n.
Access your mailbox and copy the license key.
Click your username in the bottom left corner, and select Settings from the list.
Click Enter activation key and paste the license key to unlock advanced n8n features.
Click Activate to apply the license key.
Follow the steps below to create a basic HTTP workflow in n8n.
Navigate to Overview within the n8n Workflow management interface.
Click the Create Workflow button in the top-right corner of the page.
Click Add first step.
Enter webhook in the search field and press Enter to browse the available triggers.
Select Webhook from the list of options to open its configuration dialog.
Click the HTTP Method drop-down and select GET from the list of options.
Remove the default value in the Path field and set /greetings as the new path.
Click the Respond drop-down and select Using 'Respond to Webhook' Node from the list of options.
Click Back to Canvas to save the node configuration.
Click + to add a new node to your canvas.
Search and select Respond to Webhook from the list of options.
Click the Respond With drop-down and select JSON from the list of options.
Replace the default Response Body configuration with the following contents.
Click Back to Canvas to save the response configuration.
Toggle Inactive on the top navigation bar to activate the workflow.
Click Got it and verify that the workflow is active.
Click Execute Workflow to start the workflow.
Double-click the Webhook node to open its configuration page.
Copy the node URL from the Webhook URLs to execute with a curl request.
Click Back to canvas to access the workflow.
Open a new terminal on your workstation.
Send a new GET request to the Webhook URL.
Verify that the request is accepted with a Greetings from Vultr response in your output, similar to the one below.
Verify that your workflow executes within the n8n interface and monitor the node output within the Logs pane.
Click Save on the top navigation bar to keep all changes in your workflow.
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.
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.
Check the GPU usage information on your server to enable fast model execution with Ollama.
Run Ollama using Docker with GPU acceleration.
Verify the installed Ollama version.
Visit the Ollama models repository and note the large language models (LLMs) to download on your server.
Download a model such as gpt-oss:20b using Ollama to use with n8n.
List all downloaded models.
Output:
Allow connections to the 11434 Ollama port through the firewall to enable API connections using your domain or the server IP address.
Reload UFW to apply the firewall configuration changes.
Follow the steps below to create a new AI Agent that executes basic tasks in your workflow using Ollama.
Click Overview within the n8n workflow management interface.
Click Create New Workflow.
Click + and enter chat in the search bar.
Select Chat Trigger from the list of triggers to open its configuration pane.
Click Back to canvas to use the trigger without any additional configurations.
Click + next to the node, search and select AI Agent from the list of trigger options.
Verify that the Source for Prompt is set to Connect Chat Trigger Node, and click Back to canvas.
Click + on the Chat Model input.
Search for ollama and select Ollama Chat Model from the list of model options.
Click the Select Credential drop-down and select Create new credential.
Replace the Base URL with your server's IP address and Ollama port.
Click Save to test the Ollama connection and close the configuration dialog.
Click the Model drop-down and select the base model to use with the AI agent in your workflow.
Click Back to canvas to switch to your workflow.
Click the + on the memory input and select Simple Memory from the list of options to use the n8n memory.
Click Back to canvas to use the memory with the default configuration.
Click + on the Tool input, search and select Calculator from the list of available tools.
Click Back to canvas and click Save to keep the workflow changes.
Toggle Inactive on the top navigation bar to activate the workflow.
Click Open chat to open the bottom chat interface.
Enter a basic calculation prompt within the Chat pane. For example, What is 3345 multiplied by 17, and divided by 5?.
Press Enter to execute the workflow and monitor the AI agent execution.
Verify that the AI agent stores the prompt in memory and uses Ollama to process the output in your workflow.
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.
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, visit the n8n documentation.
0 Comments
Be the first to comment and share your perspective with the community.