Who is this for?
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 question-and-answer process that captures all necessary details.
What this Workflow Does / Key Features
- An interactive form interface that collects initial project information from users
- AI-powered question generation that identifies information gaps and creates relevant follow-up questions
- Sequential question presentation with a clean, user-friendly interface
- Intelligent merging of all user responses into a comprehensive dataset
- Structured prompt generation with role, inputs, tools, instructions, constraints, and conclusions
- Final prompt display in a clean, ready-to-use format
- Automatic output parsing to ensure consistent formatting
Requirements
- OpenAI API credentials (GPT-4.1-mini model)
- Basic understanding of prompt engineering concepts
How to Use — step-by-step Setup
- Credentials
- OpenAI: Add your OpenAI API credentials to n8n (flow example name: "OpenAI account 2")
- Ensure webhook endpoints are accessible for form interactions
- Configure the Initial Form
- The "BaseQuestions" form collects initial information about the project
- Customize form fields if needed to match your specific use case
- The form asks about what they want to create, available tools, expected inputs, and desired outputs
- Configure AI Question Generation
- The "RelatedQuestionAI" node uses OpenAI to generate 3 follow-up questions
- Adjust the prompt in this node if you want different types of questions
- The "Structured Output" parser ensures questions are properly formatted
- Configure Final Prompt Generation
- The "PromptGenerator" node creates a structured prompt based on all user input
- Modify the prompt template if you need different output formats
- The "Output Parser" ensures the final prompt is properly structured
Important Notes
- The workflow uses GPT-4.1-mini for both question generation and prompt creation
- All form interfaces use a consistent green theme with soft gradients
- The workflow processes questions sequentially to avoid overwhelming users
- Output parsers ensure consistent formatting of AI responses
- The final prompt follows a specific structure with role, inputs, tools, instructions, constraints, and conclusions
- The workflow includes an auto-fixing output parser to handle formatting errors