Integrating n8n AI Agent with Proxmox for Server Management

Integrating n8n AI Agent with Proxmox for Server Management

- 3 mins

Introduction

n8n is a low code drag and drop automation tool, with n8n you can create many pipelines, workflows or AI agents. With the increasing demand in recent years, AI agents are becoming ubiquitous and can be really useful when used correctly. Today I will explain how I integrated n8n AI agent for managing my proxmox server. I will use pre-define workflow which is created by Amjid Ali Proxmox AI agent with n8n


Prerequisites

Ensure you have the following before proceeding:

Creating Proxmox API Key

  1. Open your web browser and navigate to your Proxmox web UI:
    https://your-proxmox-ip:8006  
    
  2. Log in with your root credentials.
  3. In the left sidebar, click on Datacenter.
  4. Go to the Permissions tab.
  5. Click on API Tokens.
  6. Click the “Add” button to create a new API Token.
  7. In the User field, select root@pam (or any other user you want to generate a token for).
  8. In the Token ID field, enter a descriptive name (e.g., n8n-integration).
  9. (Optional) You can Check “Privileged” to give full access or manually assign specific permissions.
  10. Click “Add” to generate the API token.
  11. Save your API key in a safe place

n8n-prx1

Import Template Workflow to n8n

  1. You can download or copy the workflow to your PC and save it as json file.
  2. In n8n click + icon and create new workflow.
  3. Click next to save button and import your file.
  4. You can also directly use templae URL to import any template workflow.
  5. Once you importat the template You will be able see nodes.

n8n-prx2

Here is the how it should look like.

n8n-prx2

Setting up AI agent Proxmox Credentials

  1. Every HTTP Request includes Proxmox API Credentials so We need to update all HTTP Request Credentials.

n8n-prx2

#You are a Proxmox AI Agent expert designed to generate API commands based on user input. 
#This is Proxmox which will help you to get the details of existing Proxmox installations, ensure to append to existing url : https://192.168.1.11:8006/api2/ to #get response from existing proxmox 
#My prommox nodes are named as pve
#pve : https://192.168.1.11:8006/api2/

NOTE: Plase check AI Agent and edit for your requirements. AI agent will be main component to manage all workflow, You can use also diffrent AI Model since Gemini is free to ues I will use Gemini.

n8n-prx2

n8n-prx2

Testing Workflow

  1. Since template uses Chat Message trigger We can use n8n chat box, We can use Telegram , Whatsapp or Slack etc.
  2. Let’s test with to have my proxmox server running VMs overviews.
  3. Save and Active your workflow before testing.

n8n-prx2

n8n-prx2

n8n-prx2

n8n-prx2

Conclusion

I had a great time talking with the AI agent while managing my Proxmox server. With AI, we can automate everything, making tasks easier and more efficient. AI agents will become incredibly popular in the future, helping manage various systems and tasks in everyday life.




Thanks for reading…





:+1: :+1: :+1: :+1: :+1: :+1: :+1: :+1:


Guneycan Sanli.


Guneycan Sanli

Guneycan Sanli

A person who like learning, music, travelling and sports.

comments powered by Disqus