Spiral gives your agent every tool with one account. Browse the tools →

n8n · LLMReleased 2026-03-15

How to Use GLM-5 Turbo in n8n

GLM-5 Turbo is tuned for tasks that combine tool calls, detailed instructions, and sustained execution. Compared with GLM-5's broader engineering focus, it puts more emphasis on scheduled work and long sequences of actions.

Prompts to try with GLM-5 Turbo in n8n

Copy an example into n8n, or ask in your own words.

Use GLM-5 Turbo each weekday at 9 a.m. UTC to review the last 24 hours of support tickets. Summarize recurring problems, cite ticket IDs, and carry forward unresolved issues in a brief under 400 words.

GLM-5 Turbon8n
Try asking
  • Use GLM-5 Turbo daily to compare current operations metrics with the previous run. Check any discrepancy through the available data tools and report the evidence, likely explanation, and unresolved questions.

  • Use GLM-5 Turbo every afternoon to review active project tasks. Report changed deadlines, blocked dependencies, and overdue actions, using a compact summary from the previous run to avoid repeating old findings.

  • Every Monday at 9am: ask GLM-5 Turbo through Spiral to review the diff on this branch and list the three riskiest changes.

  • Get a second opinion from GLM-5 Turbo on this function, then tell me what the call cost.

How to set up GLM-5 Turbo in n8n

Pick the way that suits you. Each takes about two minutes.

Use the Spiral skill

  1. Send n8n this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run GLM-5 Turbo in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds GLM-5 Turbo, prices it and runs it each time the step fires.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GLM-5 Turbo

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "openrouter",
        "model": "z-ai/glm-5-turbo",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: n8n finds GLM-5 Turbo on Spiral, shows the price and runs it.

GLM-5 Turbo providers and prices

Spiral runs GLM-5 Turbo through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Z.ai: GLM 5 Turbo
z-ai/glm-5-turbo

Settings you can ask for

Ask n8n for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Top ka whole number from 0
Top p0 to 1
Max tokens1 to 131072

The most output tokens to generate.

Temperature0 to 2

Every API field of Z.ai: GLM 5 Turbo is on its tool page: open its card above.

What can you do with GLM-5 Turbo in n8n?

Produce recurring briefs from tool results and carry unfinished work into the next run. Give GLM-5 a clear reporting period, a compact record of prior findings, and a specific stopping point.

Reproduce and fix a backend bug

Give the agent a failing request, relevant logs, and expected behavior. Ask it to trace the cause, make a focused patch, and demonstrate the fix.

Plan a backend refactor

Map dependencies, identify behavior that must stay consistent, and divide the change into reviewable steps with acceptance checks.

Implement a feature from requirements

Turn a feature brief into an implementation plan, code changes, and a record of completed checks. State the expected user behavior before work begins.

Research a technical decision

Have the agent retrieve documentation, compare options against stated requirements, and produce a recommendation with supporting links and unresolved questions.

Extract records from text

Turn pasted notices, support requests, or meeting notes into consistently structured records. Define the expected structure and a rule for missing information.

Prepare a recurring operations brief

Combine recent tool results into a short report covering changes, unresolved problems, and next actions. Carry a compact summary between runs.

Investigate a data discrepancy

Ask the agent to compare reported totals, inspect relevant records through available tools, and explain which checks support its conclusion.

Questions about GLM-5 Turbo in n8n

Can n8n use GLM-5 Turbo?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run GLM-5 Turbo like any built-in tool.

How much does GLM-5 Turbo cost in n8n?

Up to $0.021354 per run at the default inputs. $1.56 per 1M input tokens, $5.20 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

Do I need an OpenRouter account to use GLM-5 Turbo in n8n?

You need no OpenRouter account. n8n uses one Spiral API key for every tool, and Spiral runs GLM-5 Turbo on its own OpenRouter account.

How long does it take to set up GLM-5 Turbo in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while GLM-5 Turbo runs?

GLM-5 Turbo runs in the background. n8n starts the run, checks on it and gives you the text, json when it's ready.

What is GLM-5 best suited for?

Use GLM-5 for software engineering and tasks that require planning, tool use, and several rounds of checking. GLM-5 emphasizes complex systems work; GLM-5 Turbo emphasizes persistent workflows with many actions.

How much text can GLM-5 handle?

Z.ai lists a 200K context window and a maximum output of 128K tokens for both GLM-5 and GLM-5 Turbo. Those figures describe capacity, so choose an answer length that fits the task.

When should I enable thinking?

Enable thinking for debugging, complex planning, and decisions with several constraints. Ask for a concise conclusion and verification evidence so the final answer stays useful.

How do I get useful JSON responses?

Specify the exact structure, required information, and how to handle missing values. Include a small example so the requested result is unambiguous.

How should I handle long research conversations?

Keep the current question, constraints, and relevant evidence in a compact working summary. The GLM-5 technical report found that accuracy can decline in extremely long contexts, so avoid carrying every old tool result forward.

Get started

Start using GLM-5 Turbo in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options