Chat with Gemini AI through local CLI via SSH
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This AI workflow has 9 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects Google Gemini Chat Model.
How it runs
Trigger: When another workflow calls it (plus 1 other trigger).
- Execute a command (SSH): uses SSH
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Call 'Gemini CLI')
- Edit Fields (Edit Fields (Set)): sets 1 field: answer
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - AI Agent
@n8n/n8n-nodes-langchain.agent - No Operation, do nothing
n8n-nodes-base.noOp - SSH
n8n-nodes-base.ssh - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set
From the author
This workflow allows you to integrate the Google Gemini CLI into your n8n AI Agents. It is designed for self-hosted n8n instances and enables you to chat with the Gemini CLI running on your local machine or server via SSH. This is powerful for users who want…