Automate Proxmox Management with n8n and Google Gemini AI

Struggling with managing Proxmox servers manually? This unique n8n workflow leverages Google Gemini AI and the Proxmox API to generate and execute VM commands automatically, saving time and reducing errors.
httpRequest
lmChatGoogleGemini
agent
+12
Workflow Identifier: 1910
NODES in Use: httpRequest, outputParserAutofixing, lmChatGoogleGemini, outputParserStructured, chatTrigger, telegramTrigger, gmailTrigger, webhook, code, if, merge, switch, agent, toolHttpRequest, stickyNote
Automate Proxmox with n8n and Google Gemini AI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

1. What this workflow does

This workflow reads natural language commands from different chat or message sources.

It turns those commands into exact Proxmox API actions to manage virtual machines (VMs).

This solves the hard and error-prone task of manual Proxmox VM management by automating API calls.

Users get fast, reliable VM creation, updates, and status changes without writing code.


2. Who should use this workflow

Anyone running virtual machines on Proxmox who wants to speed up daily tasks.

This is good for system administrators without deep scripting skills.

The workflow works with various input methods like Telegram, Gmail, webhooks, or chat systems.


3. Tools and services used

  • Proxmox VE API: Controls virtual machines on nodes psb1, psb2, psb3.
  • Google Gemini AI: Converts natural language commands into API calls.
  • n8n automation platform: Orchestrates triggers, AI processing, and HTTP requests.
  • Telegram Bot API: Receives user messages.
  • Gmail API: Retrieves emails as command input.
  • HTTP Header Auth in n8n: Manages Proxmox API authentication.

4. Inputs, processing steps, and outputs

Inputs

Processing Steps

  • AI Agent node converts text commands into structured API method, URL, and payload.
  • Switch node selects HTTP method and routes request to correct HTTP Request node.
  • HTTP Request nodes call Proxmox API with token authentication and allow self-signed certificates.
  • Response parsers format the JSON API result into readable summaries.
  • Another AI Agent summarizes the VM status or operation in simple language.
  • Code nodes clean up logs, hide secrets, and format dates.

Outputs

  • Readable status messages returned to the user.
  • Execution logs sanitized for security.
  • Automation results like VM creation, start, stop confirmed.

5. Beginner step-by-step: How to build this in n8n

Download and Import

  1. Download the full workflow JSON file using the Download button on this page.
  2. Open the n8n editor and use the “Import from File” option to load the workflow.

Configure Credentials

  1. Add required API Keys and credentials for Google Gemini AI and Proxmox API in n8n credential manager.
  2. For Telegram trigger, enter bot token and authorize.
  3. For Gmail trigger, connect using OAuth2 credentials.
  4. Set up HTTP Header Auth with Proxmox API token format PVEAPIToken=user@realm!tokenid=tokenvalue.

Update Variables

  1. Change any IDs, emails, channel names, or folder names in node parameters to fit your environment.
  2. In the AI Agent node, check the prompt if specific node defaults or VM ID patterns need tweaks.

Test the Workflow

  1. Trigger a test message or HTTP call with a simple VM command like “Create VM with ID 201 on psb1 with 4 cores.”
  2. Confirm the AI agent returns a structured API JSON.
  3. Verify HTTP Request node executes without errors and returns success.
  4. Check output format nodes show clean readable summaries.

Activate for Production

  1. Turn on the workflow toggle to activate it.
  2. Monitor runs in the n8n UI for errors or problems.
  3. Set up alerting if desired for failed VM operations.
  4. For self hosting n8n, consider secure deployment with SSL and firewall by using self-host n8n.

6. Customization ideas

  • Change default Proxmox node name in the AI Agent prompt to change where VMs are created.
  • Switch Google Gemini AI node to OpenAI or Claude for different AI engines.
  • Add more triggers like Slack, Email Parser, or custom webhooks to expand input options.
  • Modify the response formatting code node to change how logs or VM summaries display.
  • Include more VM config options (CPU type, hotplug, migration) by updating AI Agent prompt content.

7. Common problems and fixes

401 Unauthorized from Proxmox API

Cause: API Key is wrong or expired.

Fix: Create new Proxmox API Key and update HTTP Header Auth credentials with correct format.

AI Agent returns bad or incomplete JSON

Cause: AI output does not match expected JSON format.

Fix: Use the auto-fixing parser node to retry and clean output. Improve AI prompt JSON rules.

HTTPS Request fails with certificate error

Cause: Proxmox uses self-signed SSL certificates.

Fix: Enable “Allow Unauthorized Certs” in HTTP Request nodes to bypass SSL errors.


8. Final summary

✓ This workflow makes managing Proxmox VMs easier by using natural language commands.

✓ It turns your words into exact API calls, no scripting needed.

✓ Saves you time and reduces errors in VM management.

→ You get fast, clear VM status updates and operation results.

→ Integration with multiple chat or webhook inputs gives flexibility.

→ It is easy to customize and extend when needed.

→ Runs inside n8n and can be production ready quickly.


Automate Proxmox with n8n and Google Gemini AI

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

Create an API key in Proxmox with correct permissions. In n8n, configure HTTP Header Auth credentials using format PVEAPIToken=user@realm!tokenid=tokenvalue.
Models like OpenAI GPT, Anthropic Claude, or Ollama can be used by updating AI nodes and API keys.
Send a simple text command like “Create VM with ID 201” and check if AI Agent outputs valid JSON with method, URL, and payload.
Using self-signed SSL certificates on Proxmox servers causes errors. Enable ‘Allow Unauthorized Certs’ option to fix this.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.