All templates
AI#Switch#Language Detection#Routing#Multi-Path

Language Switch Router

Detect the language of incoming text with an LLM and route to the matching branch using the Switch node.

Language Switch Router

Goes beyond binary branching: the Switch node handles three or more cases without chaining conditions. Detect language with an LLM, then fan out to the right handler.

What this workflow does

  1. Input receives any text
  2. LLM returns the ISO language code (en, de, fr, or other)
  3. Switch routes to the matching output branch

Use cases

  • Multi-language support ticket routing
  • Locale-specific content pipelines
  • Internationalisation preprocessing

Setup

Extend the Switch node with additional cases for more languages. Replace the Output nodes with your downstream processors (translation, CRM, etc.).

FAQ

Is this different from a Condition node? Yes — Condition handles one binary split; Switch handles three or more distinct values cleanly.

How to import this template

  1. 1Click Import → Copy JSON on this page.
  2. 2Open your Heym and navigate to a workflow canvas.
  3. 3Press Cmd+V / Ctrl+V — nodes appear instantly.
  4. 4Add your API keys in the node config panels and click Run.
#Switch#Language Detection#Routing#Multi-Path

Click a node to select it — same as the Heym editor; the panel shows its settings.

10 nodes · Free & source-available

Explore related automations — each page links to other templates so you can discover more use cases.

Heym
incident analysis · production AI
Observed across 100s of AI rollouts

AI workflows don't fail because of prompts.
They fail because of orchestration.

symptom · glue code01
5 tools
Scripts, vector DB, approval bot, tracing, browser runner — none of them talk.
symptom · visibility02
~0%
Observable behavior across the stack. Debugging is guesswork.
with heym · one runtime
1 canvas
Agents, RAG, HITL, MCP, traces & evals. Self-hosted. Observable.
AI-Native RuntimeProduction-Grade
github.com/heymrun/heym