AutomationFlowsAI & RAG › Interactive Structured Prompt Builder with Gpt-4.1-mini and Guided Questions

Interactive Structured Prompt Builder with Gpt-4.1-mini and Guided Questions

BySpaGreen Creative @spagreen on n8n.io

This workflow is designed for content creators, prompt engineers, AI developers, and anyone who needs to create effective, structured prompts for AI agents. It helps transform vague ideas into detailed, well-formatted prompts by guiding users through a structured…

Event trigger★★★★☆ complexityAI-powered21 nodesOutput Parser StructuredOpenAI ChatFormForm TriggerOutput Parser AutofixingChain Llm
AI & RAG Trigger: Event Nodes: 21 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #11361 — we link there as the canonical source.

This workflow follows the Chainllm → Form Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "hbBzMsbRVg1RHa8P",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "AI Prompt Generator",
  "tags": [],
  "nodes": [
    {
      "id": "bdd2d35f-4d20-490b-b1cb-03027044214f",
      "name": "Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        336,
        560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5b4f2aae-c43c-4724-806c-0031f16dd703",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        192,
        560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "c1e9f65b-b7f7-482f-976a-b3f3e24b1d90",
      "name": "OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        400,
        160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3de75523-d676-4016-a85e-fad780e04e53",
      "name": "Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        592,
        144
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b9559a33-c552-4fe6-bf35-52b0ad0633eb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "65c18786-05d6-47db-ac64-f5939c3282d8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -368
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6f5e2d26-6502-4a34-bf9c-0c1335c9ddb4",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        -336
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d50a6fb1-061f-4af3-8a25-b88a1ded918d",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0eae6959-1be0-47dc-ad6b-4e17181842a4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        416
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c09dc961-411a-4c86-a8fe-e8178ff298f7",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9a1dc5d4-cc46-4232-82da-73dbf41423c7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1184,
        -112
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "60660783-c811-491f-ae35-b8933bbf6e4a",
      "name": "Loop question",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        768,
        336
      ],
      "parameters": {},
      "executeOnce": false,
      "typeVersion": 3
    },
    {
      "id": "a60969ed-493c-4136-a465-f4c94a9d24ec",
      "name": "Relevant question",
      "type": "n8n-nodes-base.form",
      "position": [
        992,
        352
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "37ec2338-b523-4ce2-afa0-c88e471b7240",
      "name": "Split question",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        544,
        336
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "93981074-ddf0-4e56-a173-60fbcb2f74c1",
      "name": "Base question",
      "type": "n8n-nodes-base.form",
      "position": [
        -176,
        48
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "734eab83-0bcf-4c6c-828c-0f7d3b70cdee",
      "name": "Form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -400,
        48
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b8795fe8-734f-4d23-a34b-89f5cfff0477",
      "name": "Fixing Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        464,
        -32
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a30324fe-6d3e-4aec-b6c6-65fbbc51a7a5",
      "name": "Send prompt",
      "type": "n8n-nodes-base.form",
      "position": [
        752,
        -240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2a8106f2-fe24-4a2b-8b11-271552745fbf",
      "name": "Prompt generator",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        400,
        -240
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 1.6
    },
    {
      "id": "000bb911-39be-43be-8b86-a1fe0fbb655c",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        224,
        -240
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "d00b6728-073f-462d-892a-ed7d368e4257",
      "name": "ChainLlm AI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        192,
        336
      ],
      "parameters": {},
      "typeVersion": 1.6
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9b5df786-e208-499b-a66e-935450f1a4c5",
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Prompt generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "ai_languageModel": [
        [
          {
            "node": "ChainLlm AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI1": {
      "ai_languageModel": [
        [
          {
            "node": "Prompt generator",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Fixing Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ChainLlm AI": {
      "main": [
        [
          {
            "node": "Split question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Base question": {
      "main": [
        [
          {
            "node": "ChainLlm AI",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fixing Output": {
      "ai_outputParser": [
        [
          {
            "node": "Prompt generator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Loop question": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "Relevant question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Fixing Output",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Split question": {
      "main": [
        [
          {
            "node": "Loop question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form submission": {
      "main": [
        [
          {
            "node": "Base question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt generator": {
      "main": [
        [
          {
            "node": "Send prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Relevant question": {
      "main": [
        [
          {
            "node": "Loop question",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "ChainLlm AI",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow is designed for content creators, prompt engineers, AI developers, and anyone who needs to create effective, structured prompts for AI agents. It helps transform vague ideas into detailed, well-formatted prompts by guiding users through a structured…

Source: https://n8n.io/workflows/11361/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow serves as a comprehensive "Workflow Nodes SEO & Documentation Generator". It uses AI to analyze, rename, and document n8n workflows, offering a streamlined way to optimize workflow reada

Form Trigger, n8n, Output Parser Autofixing +11
AI & RAG

This template attempts to replicate OpenAI's DeepResearch feature which, at time of writing, is only available to their pro subscribers.

Output Parser Structured, OpenAI Chat, Form Trigger +8
AI & RAG

My workflow 53. Uses formTrigger, httpRequest, lmChatOpenAi, form. Event-driven trigger; 74 nodes.

Form Trigger, HTTP Request, OpenAI Chat +15
AI & RAG

This workflow streamlines how employees request equipment/items and how those requests reach the Procurement team. It validates the employee by enrollment number, detects whether a manager exists, and

Form Trigger, Form, OpenAI Chat +4
AI & RAG

Content - Write Best Tools In Category Article. Uses formTrigger, httpRequest, slack, chainLlm. Event-driven trigger; 41 nodes.

Form Trigger, HTTP Request, Slack +6