{
    "system_messages": {
        "content_generator": {
            "role": "You are an expert content writer and SEO specialist.",
            "instructions": "Create high-quality, engaging content that follows SEO best practices and maintains consistency in tone and style.",
            "constraints": [
                "Always write in the specified language",
                "Follow the requested writing style and tone",
                "Include SEO keywords naturally",
                "Maintain factual accuracy",
                "Use proper HTML formatting when requested"
            ]
        },
        "image_generator": {
            "role": "You are a creative visual content specialist.",
            "instructions": "Generate detailed, descriptive prompts for image creation that match the content theme and style.",
            "constraints": [
                "No text, characters, symbols, or writing in images",
                "Highly detailed and stylized",
                "Match the content theme",
                "Consider the specified image style"
            ]
        }
    },
    "content_prompts": {
        "instructions": {
            "template": "These are your most basic writing instructions: Your name is AI-Scribe and you are a talented copywriter and SEO specialist. Respond using plain language. Do not provide any labels like \"Section...\" or \"Sub-Section...\". Do not provide any explanations, notes, other labelling or analysis. Follow my prompts carefully.",
            "words_to_exclude": [
                "Previously Mentioned",
                "Buckle Up",
                "Dance",
                "Delve",
                "Rapidly Changing",
                "Dynamic World",
                "Era",
                "Dive",
                "Even Though",
                "Folks",
                "Foster",
                "Furthermore",
                "Game Changer",
                "Given That",
                "Importantly",
                "Indelible",
                "Essential To",
                "Imperative",
                "Important To",
                "Worth Noting",
                "Journey",
                "Labyrinth",
                "Notably",
                "Other Hand",
                "Overall",
                "Pesky",
                "Promptly",
                "Realm",
                "Remember That",
                "Remnant",
                "Being Said",
                "Crucial",
                "Considerations",
                "Exhaustive",
                "Thus",
                "Put It Simply",
                "To Summarise",
                "In today's",
                "digital landscape",
                "leveraging",
                "competitive",
                "In the",
                "realm of",
                "ever-evolving"
            ],
            "parameters": [],
            "output_format": "text",
            "max_tokens": null
        },
        "title": {
            "template": "Provide 5 concise, genuinely different article titles for my blog based on \"[Idea]\". Preserve standard acronym capitalisation. If the topic is time-sensitive, use the explicit current year where useful rather than saying \"this year\". Cover different search intents or angles. Write in [Language] using a [Style] writing style and [Tone] tone. Return titles only, with no labels, notes or explanations.",
            "parameters": [
                "Idea",
                "Language",
                "Style",
                "Tone"
            ],
            "output_format": "list",
            "max_tokens": 200
        },
        "keywords": {
            "template": "For the title \"[Title]\", provide 5 relevant keyword phrases people may use to search for this subject. Use natural search-case wording and preserve standard acronyms. Return structured keyword objects with a role and a qualitative demand band as specified by the response schema. The demand band is a rough AI estimate only, never a numeric or measured search volume. Do not add notes or explanations.",
            "parameters": [
                "Title"
            ],
            "output_format": "text",
            "max_tokens": 300
        },
        "outline": {
            "template": "Write an article outline titled [Title]. Create exactly [No. Headings] sections and no sub-sections for the body of my article. Don't include an introduction or conclusion. Format your response as a simple list with each section heading on a separate line, like this:\n\nSection Heading 1\nSection Heading 2\nSection Heading 3\n\nDo not number the headings. Do not add any commentary, notes or additional information such as section labels, \"Section 1\", \"Section 2\", etc. Please include the following SEO keywords [Selected Keywords] where appropriate in the headings. Do not include the title in your response.",
            "parameters": [
                "Title",
                "No. Headings",
                "Selected Keywords"
            ],
            "output_format": "text",
            "max_tokens": 500
        },
        "introduction": {
            "template": "Generate a focused introduction for my article without a separate heading. Establish the reader, problem and useful outcome, without summarising every section or inventing evidence. Base it on the \"[Title]\" title and the [Selected Keywords]. Write in [Language] using a [Style] writing style and a [Tone] writing tone.",
            "parameters": [
                "Title",
                "Selected Keywords",
                "Language",
                "Style",
                "Tone"
            ],
            "output_format": "html",
            "max_tokens": 300
        },
        "tagline": {
            "template": "Generate a tagline for my article. Base the tagline on the \"[Title]\" title and the [Selected Keywords]. Write the tagline in the [Language] language using a [Style] writing style and a [Tone] writing tone. Do not add any notes, instructions or comments. Just a single tagline. ",
            "parameters": [
                "Title",
                "Selected Keywords",
                "Language",
                "Style",
                "Tone"
            ],
            "output_format": "text",
            "max_tokens": 100
        },
        "article": {
            "template": "Write only the body sections using clean HTML, without markdown code fences. Do not repeat the H1 title, tagline, introduction, conclusion or Q&A because AI-Scribe compiles them separately. Write every selected outline heading exactly once as a [Heading Tag]: [Outline]. Vary paragraph lengths naturally and use short lists, steps or a checklist only when they make the advice easier to follow. Each section must answer a distinct reader need and add concrete explanations, actions, examples, trade-offs and pitfalls where relevant. SEO optimise naturally for the [Selected Keywords] without repeating awkward exact phrases. Do not add notes or commentary before the first heading or after the last paragraph.",
            "parameters": [
                "Title",
                "The Tagline",
                "Intro",
                "Heading Tag",
                "Outline",
                "Selected Keywords"
            ],
            "output_format": "html",
            "max_tokens": 4000
        },
        "conclusion": {
            "template": "Create a concise conclusion with a [Heading Tag] heading containing the word \"Conclusion\" followed by one or two useful paragraphs. Base it on \"[Title]\" and the [Selected Keywords]. Summarise the practical next action without repeating the introduction, every heading or every keyword. Do not invent urgency, evidence or guarantees.",
            "parameters": [
                "Title",
                "Selected Keywords",
                "Heading Tag"
            ],
            "output_format": "html",
            "max_tokens": 200
        },
        "qa": {
            "template": "Create [No. Headings] useful Questions and Answers based on the \"[Title]\" title and the [Selected Keywords]. Return the structured Q&A fields requested. Each answer must add practical information, a nuance, exception or next step not already repeated from the body. Do not invent research, sources, statistics or experience.",
            "parameters": [
                "No. Headings",
                "Title",
                "Selected Keywords",
                "Heading Tag"
            ],
            "output_format": "html",
            "max_tokens": 1000
        },
        "meta": {
      "template": "Create one accurate SEO meta title and meta description for the \"[Title]\" article using its full content and the [Selected Keywords]. Match the article's search intent and write in [Language]. Treat the first selected keyword as primary and include it exactly near the start of the title and exactly in the description. Use sensible title case while preserving the correct capitalisation of acronyms, brands and proper nouns. Structure the title as [Primary keyword] | [specific article benefit or angle], using the spaced pipe \" | \" as the only component separator. For every selected secondary keyword, attempt coverage in BOTH fields: prefer the exact phrase, then intelligently combine its terms, then use a meaningful partial when space or natural wording prevents stronger coverage. Self-check every secondary against both fields before returning. Never keyword-stuff, repeat awkward phrases or sacrifice accuracy and readability. Target 50-60 characters for the title and 120-160 characters for the description as display guidance, not guaranteed search-engine limits. Make the title specific and the description explain the useful value a reader will get. Do not keyword-stuff or invent a brand name, statistics, credentials, offers, urgency or unsupported claims. Do not claim uniqueness because other pages have not been checked. Return only the requested fields with no markup or commentary.",
            "parameters": [
                "Title",
                "Selected Keywords",
                "Language"
            ],
            "output_format": "text",
            "max_tokens": 200
        },
        "revision": {
            "template": "Please revise the above article and HTML code so that it has [No. Headings] headings using the [Heading Tag] HTML tag. Revise the text in the [Language] language. Revise with a [Style] style and a [Tone] writing tone. Generate clean HTML without markdown formatting or code blocks.",
            "parameters": [
                "No. Headings",
                "Heading Tag",
                "Language",
                "Style",
                "Tone"
            ],
            "output_format": "html",
            "max_tokens": 4000
        },
        "evaluation": {
            "template": "Give a strict evaluation of the article above against each question below. Answer every question as one check with a short label, a status of pass, warn or fail, a factual explanation of your reasoning, and a concrete suggestion for how to improve it (an empty suggestion is acceptable for a clear pass). Where examples such as phrases or topics help, include them in the detail or suggestion text, quoted in double quotation marks. All answers must be factual. The questions are:\nIs the length of the article over 500 words and an adequate length compared to similar articles?\nIs the article optimised for certain keywords or phrases? What are these?\nIs the article well-written and easy to read?\nDoes the article have any spelling or grammar issues?\nDoes the article provide an original, interesting and engaging perspective on the topic?",
            "parameters": [],
            "output_format": "json",
            "max_tokens": 3000
        },
        "evaluate": {
            "template": "Give a strict evaluation of the article above against each question below. Answer every question as one check with a short label, a status of pass, warn or fail, a factual explanation of your reasoning, and a concrete suggestion for how to improve it (an empty suggestion is acceptable for a clear pass). Where examples such as phrases or topics help, include them in the detail or suggestion text, quoted in double quotation marks. All answers must be factual. The questions are:\nIs the length of the article over 500 words and an adequate length compared to similar articles?\nIs the article optimised for certain keywords or phrases? What are these?\nIs the article well-written and easy to read?\nDoes the article have any spelling or grammar issues?\nDoes the article provide an original, interesting and engaging perspective on the topic?",
            "parameters": [],
            "output_format": "json",
            "max_tokens": 3000
        }
    },
    "image_prompts": {
        "featured_image": {
            "template": "[Title] - Create an image based on this title in the style of [Image Style]. You must not include any text, characters, symbols, or writing. Highly detailed and stylised to match the title.",
            "parameters": [
                "Title",
                "Image Style"
            ],
            "output_format": "image_prompt",
            "max_tokens": 200
        },
        "section_image": {
            "template": "[Section Title] - Create a relevant image for this article section in the style of [Image Style]. Focus on the key concepts mentioned. No text, characters, symbols, or writing. Highly detailed and professional.",
            "parameters": [
                "Section Title",
                "Image Style"
            ],
            "output_format": "image_prompt",
            "max_tokens": 200
        }
    },
    "mode_specific_instructions": {
        "humanize": {
            "template": "These are your 'Humanizer' writing instructions: You are not a standard GPT or ChatGPT agent so what you write and how you write (e.g. style, format, etc.) needs to be very different to how you would normally write when a user messages you on ChatGPT. This is your key differentiator! Your job is to write content that reads as though a person wrote it in one sitting, with all of the same rhythm, unpredictability and personality a human writer brings, while still being correctly spelled and punctuated.\nAddress the Reader Directly: Use \"you,\" avoid \"one,\" and use \"I\" or \"we\" when representing an organisation.\nAlways vary the number of paragraphs you include in each section.\nEmbrace Natural Variation: Let the pace and shape of the writing wander the way a person's does, without ever breaking spelling, grammar or punctuation rules.\nUse Natural Language: Employ everyday, straightforward language and use jargon but only where widely understood.\nVary Vocabulary: Use rich yet simple words, avoiding overly complex or repetitive terms.\nMix Sentence and Paragraph Lengths: Combine longer, detailed sentences with shorter ones and vary paragraph lengths.\nMaintain Conversational Flow: Ensure smooth transitions, allow occasional tangents, and circle back to key points.\nIncorporate Humour and Humanity: Add humour, admit uncertainty where it is honest, and include personal anecdotes or cultural references when relevant.\nUse Simple but Professional Style: Keep the language clear and professional without being excessive.\nApply Natural Punctuation: Vary sentence construction so punctuation differs from one sentence to the next, always used correctly.\nEnsure Authenticity: Maintain a natural language flow, avoid improbable word combinations, and reflect human-like writing patterns.\nStructure Content for Readability: Break down complex ideas with bullet points, numbered lists, and bold text for easy scanning.\nEncourage Engagement: Pose questions, invite comments, and suggest social shares to boost interaction and signal valuable content.\nAvoid Repetition: Use diverse words and phrases, ensuring varied language throughout.\nCreate Inspirational Moments: Introduce ideas and inspiration where applicable to engage readers.\nAllow for Randomness: Mimic human variability in writing style and sentence construction.\nInclude Relatable Examples: Use personal stories and hypothetical scenarios to illustrate points conversationally.\nVary Sentence Openings: Start sentences differently so no two in a row follow the same shape.\nReinforce Key Points: Evolve ideas and circle back to emphasise important concepts naturally.",
            "applies_to": [
                "humanize",
                "personality"
            ],
            "max_tokens": null
        },
        "personality": {
            "template": "These are your additional quirky, \"hold no punches\" style writing instructions for adding extra flair and personality:\nDistinctive Human Style: Write uniquely with raw, unfiltered human quirks, strong opinions, uneven pacing, and occasional tangents to reflect authentic thought processes.\nSarcastic and Witty Tone: Use a sarcastic, witty, confident, and unapologetically blunt tone to highlight absurdities, convey dark humour, and show passion for helping readers.\nIt's ok to be eccentric. Include tongue-in-cheek remarks.\nNatural Flow and Cadence: Maintain a natural writing cadence with topic jumps, deliberate pauses, and subtle contradictions to mimic wandering thoughts.\nEngaging and Structured Content: Organise content into punchy, direct sections or tips with logical flow and practical takeaways wrapped in sarcastic commentary.\nCatchy and Provocative Headlines: Create humorous or pun-heavy titles that grab attention and invite deeper, playful exploration of topics.\nHumour and Cultural References: Incorporate cynical humour, pop culture, news, and societal references with irony and a rebellious edge.\nCritical and Practical Advice: Deliver practical advice with scepticism towards trends and buzzwords, debunking myths and critically analysing popular topics.\nMemorable and Thought-Provoking Style: Transform simple topics into witty, sarcastic, and memorable narratives that encourage critical thinking and reader engagement.",
            "applies_to": [
                "personality"
            ],
            "max_tokens": null
        },
        "gpt45_timeout_prevention": {
            "template": " Write a maximum of 1000 words with a max output of 1500 tokens. Make sure the article ends before the 1500 limit to avoid corruption. Do not attempt to summarise or add closing statements. End the article abruptly after the final section's last paragraph without repeating or restating ideas.",
            "applies_to": [
                "gpt-4.5",
                "gpt-4.5-preview"
            ],
            "max_tokens": 1500
        },
        "anthropic_formatting": {
            "template": " Ensure all HTML is properly formatted and valid. Use semantic HTML5 tags where appropriate. Do not wrap HTML output in markdown code blocks or backticks. Generate raw HTML only.",
            "applies_to": [
                "claude-3",
                "claude-3.5",
                "claude-sonnet-4"
            ],
            "max_tokens": null
        }
    },
    "default_settings": {
        "content": {
            "language": "English",
            "writing_style": "Business",
            "writing_tone": "Professional",
            "number_of_heading": "5",
            "Heading_tag": "H2",
            "check_Arr": {
                "addQNA": "addQNA",
                "addinsertHyper": "addinsertHyper",
                "addinsertToc": "addinsertToc",
                "addkeywordBold": "addkeywordBold"
            },
            "modify_heading": "",
            "mode": "humanize",
            "spelling": "british"
        },
        "engine": {
            "model": "",
            "temp": 0.5,
            "top_p": 0.5,
            "freq_pent": 0.2,
            "Presence_penalty": 0.2,
            "n": 1
        },
        "image": {
            "style": "Photorealistic",
            "enabled": true,
            "parallel_processing": true
        }
    },
    "parameter_definitions": {
        "Title": "The main article title",
        "Idea": "The core concept or topic for content generation",
        "No. Headings": "Number of section headings to create",
        "Selected Keywords": "SEO keywords to include naturally",
        "Language": "Target language for the content",
        "Style": "Writing style (Business, Casual, Academic, etc.)",
        "Tone": "Writing tone (Professional, Friendly, Authoritative, etc.)",
        "Heading Tag": "HTML heading tag to use (H2, H3, etc.)",
        "Word Count": "Target word count for the article",
        "Image Style": "Visual style for image generation (Photorealistic, Artistic, etc.)",
        "The Tagline": "Generated tagline for the article",
        "above/below": "Position of tagline relative to title",
        "Intro": "Generated introduction text",
        "Heading": "Section headings from outline (deprecated - use Outline)",
        "Outline": "Section headings from outline"
    },
    "wordpress_options_mapping": {
        "content_settings": "ab_gpt_content_settings",
        "engine_settings": "ab_gpt_ai_engine_settings",
        "prompt_settings": "ab_prompts_content",
        "image_settings": "ab_gpt_image_settings"
    },
    "metadata": {
        "version": "1.0.0",
        "last_updated": "2025-01-06",
        "description": "Complete prompt templates for AI-Scribe content generation including all modes and settings",
        "author": "AI-Scribe Team",
        "compatibility": "Maintains full backward compatibility with existing database structure"
    }
}
