Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
An n8n workflow that sends one chat request to a primary model and, when that call fails, sends the same request to a second model. Both calls use one gateway address and one key.
Chat request that falls back to a second model on error is an n8n workflow in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Manual test
It starts when you click Test workflow, using the values typed in Set inputs:
An answer, the name of the model that gave it, and a note saying whether the primary or the fallback model answered
What you need before you start.
Model gateway
Receives both chat requests and returns the answers of the two models.
NeedsA DaoXE API key in a Header Auth credential, and two model IDs from your account
Checked by Mindket on 13 Nov 2026
This n8n workflow asks one model a question and keeps a second model ready in case the first call fails. A Set node holds the prompt, a system line and the two model IDs. The primary call goes to a chat address, and an error sends the same request to the fallback model. The answer is saved with the name of the model that gave it. Six nodes do the work, beside a sticky note with the setup steps.
Developers who test models, and teams that want a backup when a model is down or refuses a call. Skip it if you want to switch on a slow or a poor answer. The fallback runs only after an error.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Build a backup into a call before they ship it | A developer pairs a large model with a cheaper one and tests that the second answers when the first is down. |
| Product teams | Product managers | Compare how two models answer the same prompt | A manager runs one prompt and reads which model served it. |
| Content | Editors | Keep drafts coming when one model is busy | An editor sets a second model so a morning run still finishes. |
| Operations | Automation builders | Use the pattern inside a larger workflow | A builder swaps the manual trigger for a webhook and reuses the two calls. |
You need a little n8n and a DaoXE account: import a file, add one credential and type in two model IDs. Its author puts setup at about 2 minutes.
Any n8n that can reach the gateway will run it. The answer stays in the run, so plan where it goes next.
Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. One key covers both calls.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| DaoXE | An account and an API key, for a Header Auth credential named Authorization |
| Two model IDs | Exact IDs that your account can use, one for each call |
workflow.json.Authorization and the value Bearer <YOUR_DAOXE_API_KEY>, using your own key. Select it in Primary model (DaoXE) and in Fallback model (DaoXE).Set inputs and replace YOUR_DAOXE_MODEL_ID and YOUR_DAOXE_FALLBACK_MODEL_ID with two model IDs from your account.Click Test workflow. The last node shows answer, served_model and via, which reads primary or fallback. For daily use, change the prompt in Set inputs or feed in your own.
| To change | Where |
|---|---|
| The question and the system line | prompt and system in Set inputs |
| The two models | primary_model and fallback_model in Set inputs |
| The trigger | Swap the manual trigger for your own, passing on the same four fields |
| The service | The address in both HTTP Request nodes |
A developer puts a large model in primary_model and a cheaper one in fallback_model, then clicks Test workflow with the sample prompt, which asks for three blog titles about automation.
When the large model answers, the result reads via: primary with its name in served_model. When that call returns an error, the second node asks the cheaper model and the result reads via: fallback.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one forks after the first call: one line leads to the answer, and a second line, used only after an error, leads to the backup. Break the first model ID on purpose and run it to see the fork.
For experts. The primary node’s On Error setting sends a failed call to its error output, and the fallback node reads the inputs back from Set inputs by name.
| Node | What it does | What to know |
|---|---|---|
Primary model (DaoXE) | HTTP Request 4.2, POST to https://daoxe.com/v1/chat/completions | Continue (using error output) feeds the second output into the fallback |
Fallback model (DaoXE) | The same request with fallback_model | Nothing follows it, so a second failure stops the run |
Answer (primary) and Answer (fallback) | Set 3.4 nodes that keep answer, served_model and via | answer is choices[0].message.content and served_model is the response’s model |
The backup runs only after an error, and a model ID left as a placeholder makes both calls fail.
YOUR_DAOXE_MODEL_ID and YOUR_DAOXE_FALLBACK_MODEL_ID stay in the file until you replace themAn n8n workflow that sends one chat request to a primary model and, when that call fails, sends the same request to a second
model. Both calls go to one gateway address with one key, and the answer says which model gave it.
workflow.json: the workflow as n8n exports it, six working nodes and one sticky note with the setup steps. It holds noREADME.md: these notes.Set inputs asked for blog titles about the gateway's own selling points. It now asks for three shortDaoXE tag.GET /v1/models.workflow.json.Authorization and the value Bearer <YOUR_DAOXE_API_KEY>, with your ownPrimary model (DaoXE) and in Fallback model (DaoXE).Set inputs. Replace YOUR_DAOXE_MODEL_ID and YOUR_DAOXE_FALLBACK_MODEL_ID with two exact model IDs from yourWhen clicking 'Test workflow' (Manual Trigger) starts the run by hand.Set inputs writes four fields: prompt, system, primary_model and fallback_model.Primary model (DaoXE) (HTTP Request 4.2) posts to https://daoxe.com/v1/chat/completions with the primary model, theAnswer (primary) keeps choices[0].message.content as answer, the response's model asserved_model, and sets via to primary.Fallback model (DaoXE) posts the same prompt to the same address with the fallback model, andAnswer (fallback) keeps the same fields with via set to fallback.Both request bodies are built with JSON.stringify, so quotes and line breaks in the prompt do not break them.
prompt and system in Set inputs.primary_model and fallback_model in Set inputs.Set inputs to build them.Fallback model (DaoXE).NOTICE.md 620 B README.md 4 KB workflow.json 8 KB
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…