OpenRuna
Sign in
← Workflows

Dynamically switch between LLMs Template

22 nodes · chat, lmChatOpenAi, sentimentAnalysis, chainLlm

Engine
n8n
Nodes
22
Trigger
scheduled/triggered
Source file
1838_Noop_Stickynote_Automation_Triggered.json

Workflow flow

IntegrationsChatLmChatOpenAiSentimentAnalysisChainLlm@n8n/n8n-nodes-langchain.chat@n8n/n8n-nodes-langchain.codeSetNoOpIF@n8n/n8n-nodes-langchain.lmChatOpenAi@n8n/n8n-nodes-langchain.sentimentAnalysis@n8n/n8n-nodes-langchain.chainLlm
100%
TRIGGER

When chat message received

@n8n/n8n-nodes-langchain.chat

Switch Model

@n8n/n8n-nodes-langchain.code

OpenAI 4o-mini

@n8n/n8n-nodes-langchain.lmChatOpenAi

OpenAI 4o

@n8n/n8n-nodes-langchain.lmChatOpenAi

OpenAI o1

@n8n/n8n-nodes-langchain.lmChatOpenAi

OpenAI Chat Model

@n8n/n8n-nodes-langchain.lmChatOpenAi

No Operation, do nothing

NoOp

Set LLM index

Set

Generate response

@n8n/n8n-nodes-langchain.chainLlm

Check for expected error

IF

Validate response

@n8n/n8n-nodes-langchain.sentimentAnalysis

Increase LLM index

Set

Loop finished without results

Set

Unexpected error

Set

Return result

Set

15 steps · flows top to bottom, branches left to right

Browse by integration

Browse all integrations →

Import into n8n

  1. Download the n8n JSON file (full or sanitized).
  2. In n8n: Workflows → Import from file.
  3. Open each node and reconnect credentials to your accounts.
  4. Test with manual execution before enabling triggers.

Sanitized JSON removes credential IDs — safer for sharing. Flow graph JSON is OpenRuna's lightweight format for diagrams and other tools, not n8n import.

View source corpus ↗

Overview

Dynamically switch between LLMs Template (22-node n8n automation, chat, lmChatOpenAi, sentimentAnalysis, chainLlm) is free on OpenRuna — view the graph and export the JSON to import into n8n.

What this workflow does

"Dynamically switch between LLMs Template" is an n8n automation built from 22 nodes spanning chat, lmChatOpenAi, sentimentAnalysis, chainLlm. 22 nodes · chat, lmChatOpenAi, sentimentAnalysis, chainLlm It starts from a scheduled/triggered trigger and routes data through every node in order. On OpenRuna you get the visual graph, the integration list, and a downloadable JSON ready to import into n8n. Use it to learn integration patterns, fork it for your own use case, or deploy it quickly after reconnecting credentials.

Use cases

  • Benchmark it against your current chat integration to spot missing steps or redundant nodes.
  • Fork it to add error handling, retries, or a notification step without designing the 22-node flow from scratch.
  • Use it as a starting template when wiring chat, lmChatOpenAi, sentimentAnalysis, chainLlm — adjust node parameters to your accounts and record IDs.
  • Import "Dynamically switch between LLMs Template" into n8n, reconnect credentials for chat, lmChatOpenAi, sentimentAnalysis, chainLlm, and run the same automation in your own workspace.

Example output

Imported into n8n, "Dynamically switch between LLMs Template" exposes 22 configured nodes. Trigger type: scheduled/triggered. Integrations: chat, lmChatOpenAi, sentimentAnalysis, chainLlm. Set your credentials on the chat node, then verify each downstream node picks them up. Run it once in test mode to verify any branch logic (Switch/IF nodes) before enabling production triggers.

Tips by platform

Claude

Paste the exported JSON for "Dynamically switch between LLMs Template" into Claude and ask it to explain each of the 22 nodes. Claude is good at suggesting credential mappings for chat, lmChatOpenAi, sentimentAnalysis, chainLlm, plus error-handling and idempotency improvements before you run it in production.

ChatGPT

Have ChatGPT generate a checklist for adapting "Dynamically switch between LLMs Template" to your accounts — which chat, lmChatOpenAi, sentimentAnalysis, chainLlm credentials to create and which node parameters to change first.

Cursor

Open the downloaded JSON in Cursor and use Agent mode to refactor hard-coded URLs into env vars, or to generate tests for any Code nodes. Keep the OpenRuna flow diagram open so you do not break connection order across the 22 nodes.

Frequently asked questions

How do I import "Dynamically switch between LLMs Template" into n8n?
Click Download n8n JSON on this page, then in n8n choose Workflows → Import from file and select the downloaded file. Reconnect credentials on each node — the export carries credential IDs from the original author's instance, not working secrets.
Which integrations does "Dynamically switch between LLMs Template" use?
It uses: chat, lmChatOpenAi, sentimentAnalysis, chainLlm. The flow diagram above shows how each service connects across the 22 nodes. Filter OpenRuna by integration to find related workflows and tools.
Can I import a sanitized export without credentials?
Yes. Use "Download sanitized JSON" to strip credential references before sharing internally. You will still add your own chat and lmChatOpenAi credentials in n8n after import.
What trigger type does "Dynamically switch between LLMs Template" use?
Trigger type: scheduled/triggered. After import, confirm the trigger node (webhook, schedule, or app event) matches your environment, then activate the workflow when you are ready to run it.
Is "Dynamically switch between LLMs Template" free to use?
OpenRuna catalogs community n8n workflows under open licenses. Check the source corpus link for the original license; commercial use may require verifying the third-party API terms for chat, lmChatOpenAi, sentimentAnalysis, chainLlm.

Related resources