Take a deep breathe, analyze these prompt instructions in-depth, take a step back, think…
- User
Take a deep breathe, analyze these prompt instructions in-depth, take a step back, think outside the box, ensure you completely comprehend every instruction detailed, pay attention to details, focus on quality in every area of your output, think step-by-step, and strictly follow every specification outlined in these instructions.
You are now an advanced Article Architect. Make this outline a comprehensive plan which various GPT assistants will each write an individual section of the entire article according the details listed below. Each GPT assistant needs very specific, comprehensive, and detailed individual instructions that specify exactly what content is to be expected of each GPT. Leave no room for errors or any quality less than what would be expected of the most respected content creators of modern times. .
Article Specifications
{ “article”: { “topic”: “Breast Augmentation and Enhancement”, “title”: “Innovations in Breast Augmentation: Dallas’s Leading Techniques”, “focusKeyword”: “Innovative Breast Augmentation Dallas”, “additionalTopics”: “[lift, reduction, combination procedures]”, “wordQuantity”: “3500-4500 word”, “h2Quantity”: “8-10 headings”, “author”: “Plastic Surgery Of Texas”, “tone”: “Informative, Relatable, Helpful, Engaging”, “pov”: “First Person Plural”, “writingStyle”: “Neil Patel”, “purpose”: “To create an informative and engaging post tailorer to address specific interests and concerns of potential patients”, “audience”: “potential patients”, “includeTechnicalInsights”: “true”, “includePatientCareInformation”: “true”, “includeEmotionalAspectsOfProcedures”: “true”, “includeBolding”: “true”, “includeItalics”: “true”, “includeTables”: “false”, “includeH3Headings”: “true”, } }
Expected Output
Thorough, extensive, comprehensive, specific, complex, but easy-to-understand instructions for each GPT assistant which ensure there is no possible way any of the assistants could produce anything less than stellar, captivating, engaging content that keeps potential patients interest and makes them want to read more as they read each section of the article.
Output Format
[assistantPrompt1] [assistantPrompt2] …(Notice how each prompt string is separated by new lines.)
- Assistant
- User
Continue
- Assistant
- User
Create a regex which splits each prompt into their own items
- Assistant
To create a regex pattern that splits each prompt into its own item, you can use the following regex pattern:
(?<=```)\n\n(?=\[assistantPrompt\d+\])Explanation:
(?<=```): This is a positive lookbehind assertion that ensures the split occurs after a sequence of three backticks (```) which marks the end of a code block in Markdown.\n\n: This matches two newline characters, which is the spacing used between each prompt in the provided format.(?=\[assistantPrompt\d+\]): This is a positive lookahead assertion that ensures the split occurs before the start of a new prompt, which is indicated by[assistantPromptfollowed by one or more digits and a closing bracket .
- User
Show me an example in JS
- Assistant
Certainly! Below is an example of how you can use JavaScript to split the text into individual prompts using the regex pattern provided. This example assumes you have a string
textthat contains all the prompts.const text = ` [assistantPrompt1] ...[assistantPrompt2] ...
... `; // The regex pattern to split each prompt const pattern = /(?<=```)\n\n(?=\[assistantPrompt\d+\])/; // Split the text into individual prompts const prompts = text.trim().split(pattern); // Now `prompts` is an array where each element is a separate prompt prompts.forEach((prompt, index) => { console.log(`Prompt ${index + 1}:\n${prompt}\n`); });In this JavaScript code snippet, we use the
splitmethod of the string object to separate the prompts based on the regex pattern. Thetrimmethod is used to remove any leading or trailing whitespace from the entire text before splitting.Please note that JavaScript's regex engine does not support lookbehind until ES2018. If you're running this in an environment that does not support ES2018 or later, you will need to modify the regex or use a different approach. If lookbehind is supported, the code above will work as expected.