Hey everyone!
A common question I see on the forum: “I have the same workflow but need different system prompts for different clients/scenarios. How do I avoid duplicating the whole workflow?”
Built a template that solves this. One workflow handles unlimited clients — each with their own AI personality, tone, and instructions. No duplicating workflows, no giant Switch nodes with blocks of text.
How it works:
Each prompt lives in xR2 (prompt management platform) with a unique slug. The workflow receives a request with a prompt_slug parameter, fetches the matching prompt from xR2, sends it to OpenAI, and returns the response.
support-acme→ friendly support agent for ACME Corpsupport-globex→ formal assistant for Globex Industriessales-bot→ sales qualification bot
Same workflow. Different AI behavior. Change the prompt in xR2 dashboard — no need to touch n8n.
Workflow JSON (copy and import via Import from File):
One workflow, multiple AI prompts — dynamic prompt switching with xR2.json (6.0 KB)
Setup:
- Install xR2 node: Settings → Community Nodes → n8n-nodes-xr2
- Get free API key at xr2.uk
- Create prompts with slugs matching your use cases
- Import this workflow, add your credentials (xR2 + OpenAI)
- Test with: POST to webhook URL with body:
{“prompt_slug”: “support-acme”, “customer_name”: “John”, “message”: “How to reset password?”}
Video walkthrough: link
Happy to answer questions!
