This workflow enables seamless integration of various Language Learning Models (LLMs) using OpenRouter within n8n, automating AI-driven chat responses. When a chat message is received via a webhook, the workflow dynamically sets up model parameters, sends prompts to a selected LLM, and maintains conversation context through memory buffering. Key nodes include trigger, memory, model selection, and AI agent, creating a flexible and fully customizable AI chatbot system. Practical use cases include deploying AI chatbots, automating customer support, or any scenario requiring dynamic LLM interactions.
Integrating LLMs with OpenRouter in n8n
Node Count | 6 – 10 Nodes |
---|---|
Nodes Used | @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.chatTrigger, @n8n/n8n-nodes-langchain.lmChatOpenAi, @n8n/n8n-nodes-langchain.memoryBufferWindow, set, stickyNote |
Reviews
There are no reviews yet.