Build Custom AI Agent with LangChain & Gemini (Self-Hosted)
Triggered manually or by an app event. Connects Stop And Error. 👇 Prompt Engineering - Define agent personality and conversation structure in the Construct & Execute LLM Prompt node's template variable - ⚠️ Template must preserve {chathistory} and {input} placeholders for proper LangChain operation Setup Instructions 1. Configure Gemini Credentials: Set up your Google Gemini API key ([Get API key
Front matter
name: Build Custom AI Agent with LangChain & Gemini (Self-Hosted)
description: Triggered manually or by an app event. Connects Stop And Error. 👇 **Prompt Engineering** - Define agent personality and conversation structure in the `Construct & Execute LLM Prompt` node's template variable - ⚠️ Template must preserve `{chat_history}` and `{input}` placeholders for proper LangChain operation ### Setup Instructions 1. **Configure Gemini Credentials**: Set up your Google Gemini API key ([Get API key here]({{ $env.WEBHOOK_URL }} if needed). Alternatively, you may use other AI provider nodes. 2. **Interaction Methods**: - Tes
category: Automation
kind: Workflow
software: Stop And ErrorBuild Custom AI Agent with LangChain & Gemini (Self-Hosted)
Triggered manually or by an app event. Connects Stop And Error. 👇 Prompt Engineering
- Define agent personality and conversation structure in the
Construct & Execute LLM Promptnode's template variable - ⚠️ Template must preserve
{chat_history}and{input}placeholders for proper LangChain operation ### Setup Instructions
- Configure Gemini Credentials: Set up your Google Gemini API key ([Get API key here]({{ $env.WEBHOOK_URL }} if needed). Alternatively, you may use other AI provider nodes.
- Interaction Methods:
- Tes
Steps
- Manual Trigger (manualTrigger)
- When chat message received (noOp)
- Google Gemini Chat Model (noOp)
- Sticky Note (stickyNote)
- Store conversation history (noOp)
- Construct & Execute LLM Prompt (noOp)
- Sticky Note1 (stickyNote)
- Sticky Note2 (stickyNote)
- Sticky Note3 (stickyNote)
- Sticky Note4 (stickyNote)
- Error Handler (stopAndError)
Import
Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).
Source: https://github.com/Zie619/n8n-workflows/blob/main/Stickynote/2023_Stickynote_Create_Triggered.md
Author: Zie619, n8n workflow collection. License: MIT.
Shown here with formatting for the web. Keep the author and license notice when you reuse it.
Related entries
There are more like this in the members library
The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.