
Integrating n8n AI Agent with Proxmox for Server Management
- 3 minsIntroduction
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:
- A running Proxmox server (either public or self-hosted)
- A running n8n instance (self-hosted, cloud, or public)
- Both Proxmox and n8n must be accessible via a public network
Creating Proxmox API Key
- Open your web browser and navigate to your Proxmox web UI:
https://your-proxmox-ip:8006
- Log in with your root credentials.
- In the left sidebar, click on Datacenter.
- Go to the Permissions tab.
- Click on API Tokens.
- Click the “Add” button to create a new API Token.
- In the User field, select root@pam (or any other user you want to generate a token for).
- In the Token ID field, enter a descriptive name (e.g., n8n-integration).
- (Optional) You can Check “Privileged” to give full access or manually assign specific permissions.
- Click “Add” to generate the API token.
- Save your API key in a safe place
Import Template Workflow to n8n
- You can download or copy the workflow to your PC and save it as json file.
- In n8n click + icon and create new workflow.
- Click … next to save button and import your file.
- You can also directly use templae URL to import any template workflow.
- Once you importat the template You will be able see nodes.
Here is the how it should look like.
Setting up AI agent Proxmox Credentials
- Every HTTP Request includes Proxmox API Credentials so We need to update all HTTP Request Credentials.
- Also We need to udpate AI Agent text and Train our AI agent how it should process and which urls it should use
- Example:
#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.
- Edit your HTTP request and use your proxmox server credential.
- You may need to create new credential.
Testing Workflow
- Since template uses Chat Message trigger We can use n8n chat box, We can use Telegram , Whatsapp or Slack etc.
- Let’s test with to have my proxmox server running VMs overviews.
- Save and Active your workflow before testing.
- Here is example I can chat with AI agent and It tells me all running VMs overview.
- List all Proxmox server users
- Overview of Proxmox server.
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…
Guneycan Sanli.