Build Custom AI Agent with LangChain & Gemini (Self-Hosted)
n8n template #3326Summary
Use templateOverview This workflow leverages the LangChain code node to implement a fully customizable conversational agent. Ideal for users who need granular control over their agent's prompts while reducing unnecessary token consumption from reserved tool-calling functionality (compared to n8n's built-in Conversation Agent). Setup Instructions Configure Gemini Credentials: Set up your Google Gemini API key (Get API key here if needed). Alternatively, you may use other AI provider nodes. Interaction Methods: Test directly in the workflow editor using the "Chat" button Activate the workflow and access the chat interface via the URL provided by the When Chat Message Received node Customization Options In
Hand off to your agent
Prompt
Help me set up the n8n workflow "Build Custom AI Agent with LangChain & Gemini (Self-Hosted)" (https://n8n.io/workflows/3326). It uses: LangChain Code, Simple Memory, Google Gemini Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- 🤖 AI Powered RAG Chatbot for Your Docs + Google Drive + Gemini + Qdrant65K
- Monitor AI Chat Interactions with Gemini 2.5 and Langfuse Tracing300
- Build Your First AI Agent100K
- RAG Chatbot for Company Documents using Google Drive and Gemini95K
- Respond to WhatsApp Messages with AI Like a Pro!91K
- AI Voice Chat using Webhook, Memory Manager, OpenAI, Google Gemini & ElevenLabs34K
- 🤖 Create a Documentation Expert Bot with RAG, Gemini, and Supabase31K
- Build a Voice AI Chatbot with ElevenLabs and InfraNodus Knowledge Experts31K