{"id":930,"date":"2025-10-11T19:29:22","date_gmt":"2025-10-11T19:29:22","guid":{"rendered":"https:\/\/midigitalworld.com\/?page_id=930"},"modified":"2025-10-11T19:32:57","modified_gmt":"2025-10-11T19:32:57","slug":"lyra-prompt","status":"publish","type":"page","link":"https:\/\/midigitalworld.com\/?page_id=930","title":{"rendered":"Lyra Prompt"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"930\" class=\"elementor elementor-930\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-634b750b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"634b750b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-38367643\" data-id=\"38367643\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3699a0a0 elementor-widget elementor-widget-text-editor\" data-id=\"3699a0a0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p>    <div class=\"min-h-screen bg-gradient-to-b from-white to-slate-50 p-6 flex items-start justify-center\">\n      <div class=\"w-full max-w-4xl bg-white shadow-lg rounded-2xl p-6\">\n        <header class=\"mb-6\">\n          <h1 class=\"text-2xl font-extrabold mb-2\">Lyra \u2014 AI Prompt Optimizer<\/h1>\n          <p class=\"text-sm text-slate-600 whitespace-pre-line\">\n            Hello! I&#8217;m Lyra, your AI prompt optimizer. I transform vague requests into precise, effective prompts that deliver better results.\\n\\n\n            **What I need to know:**\\n\n            &#8211; **Target AI:** ChatGPT, Claude, Gemini, or Other\\n\n            &#8211; **Prompt Style:** DETAIL (I&#8217;ll ask clarifying questions first) or BASIC (quick optimization)\\n\\n\n            **Examples:**\\n\n            &#8211; &#8220;DETAIL using ChatGPT &#8211; Write me a marketing email&#8221;\\n\n            &#8211; &#8220;BASIC using Claude &#8211; Help with my resume&#8221;\\n\\n\n            Just share your rough prompt and I&#8217;ll handle the optimization!\n          <\/p>\n        <\/header>\n\n        <form id=\"lyraForm\" class=\"space-y-4\">\n          <div>\n            <label class=\"block text-sm font-medium\">Target AI<\/label>\n            <select id=\"targetAI\" class=\"mt-1 w-full border rounded-md p-2\">\n              <option>ChatGPT<\/option>\n              <option>Claude<\/option>\n              <option>Gemini<\/option>\n              <option>Other<\/option>\n            <\/select>\n          <\/div>\n\n          <div>\n            <label class=\"block text-sm font-medium\">Prompt Style<\/label>\n            <select id=\"promptStyle\" class=\"mt-1 w-full border rounded-md p-2\">\n              <option>BASIC<\/option>\n              <option>DETAIL<\/option>\n            <\/select>\n          <\/div>\n\n          <div>\n            <label class=\"block text-sm font-medium\">Your rough prompt<\/label>\n            <textarea id=\"roughPrompt\" class=\"mt-1 w-full border rounded-md p-3 h-40\" placeholder=\"e.g. Write a blog post about AI for beginners\"><\/textarea>\n          <\/div>\n\n          <div id=\"clarifyingSection\" class=\"hidden\">\n            <label class=\"block text-sm font-semibold\">DETAIL mode \u2014 clarifying questions<\/label>\n            <input id=\"clarifying1\" type=\"text\" class=\"w-full border rounded-md p-2 mt-2\" placeholder=\"Clarifying Q1 (e.g. target audience or tone)\" \/>\n            <input id=\"clarifying2\" type=\"text\" class=\"w-full border rounded-md p-2 mt-2\" placeholder=\"Clarifying Q2 (e.g. length, format, or constraints)\" \/>\n          <\/div>\n\n          <button type=\"button\" id=\"optimizeBtn\" class=\"w-full bg-blue-600 text-white py-2 rounded-md font-medium\">Optimize Prompt<\/button>\n        <\/form>\n\n        <div id=\"outputSection\" class=\"hidden mt-6 border-t pt-4\">\n          <h2 class=\"text-lg font-semibold\">Optimized Prompt<\/h2>\n          <pre id=\"optimizedOutput\" class=\"bg-gray-100 p-3 rounded-md overflow-x-auto whitespace-pre-wrap mt-2\"><\/pre>\n          <button id=\"copyBtn\" class=\"mt-3 border rounded-md px-4 py-2\">Copy<\/button>\n        <\/div>\n\n        <footer class=\"mt-6 text-sm text-slate-600 border-t pt-4\">\n          <div class=\"flex items-center justify-between\">\n            <div>Made with \u2665 by Lyra \u2014 Prompt optimization toolkit<\/div>\n          <\/div>\n        <\/footer>\n      <\/div>\n    <\/div>\n\n    <script>\n      document.addEventListener('DOMContentLoaded', function() {\n        const styleSelect = document.getElementById('promptStyle');\n        const clarifyingSection = document.getElementById('clarifyingSection');\n        const optimizeBtn = document.getElementById('optimizeBtn');\n        const outputSection = document.getElementById('outputSection');\n        const output = document.getElementById('optimizedOutput');\n        const copyBtn = document.getElementById('copyBtn');\n\n        styleSelect.addEventListener('change', () => {\n          clarifyingSection.classList.toggle('hidden', styleSelect.value !== 'DETAIL');\n        });\n\n        optimizeBtn.addEventListener('click', () => {\n          const ai = document.getElementById('targetAI').value;\n          const style = document.getElementById('promptStyle').value;\n          const prompt = document.getElementById('roughPrompt').value.trim();\n          const q1 = document.getElementById('clarifying1').value;\n          const q2 = document.getElementById('clarifying2').value;\n\n          let optimized = '';\n\n          if (style === 'BASIC') {\n            optimized = `You are an expert ${ai} assistant.\\nUser request: ${prompt || '(none provided)'}\\nOutput: Be concise, structured, and under 300 words.`;\n          } else {\n            optimized = `You are Lyra \u2014 a master-level AI prompt optimizer for ${ai}.\\nInput: ${prompt || '(none provided)'}\\nClarifying answers: ${q1}, ${q2}.\\nDecompose the task, apply examples, and output a clear, detailed prompt.`;\n          }\n\n          output.textContent = optimized;\n          outputSection.classList.remove('hidden');\n        });\n\n        copyBtn.addEventListener('click', () => {\n          navigator.clipboard.writeText(output.textContent);\n          alert('Optimized prompt copied to clipboard!');\n        });\n      });\n    <\/script>\n    <\/p>\n\n<p>\u00a0<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u00a0<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-930","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/midigitalworld.com\/index.php?rest_route=\/wp\/v2\/pages\/930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/midigitalworld.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/midigitalworld.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/midigitalworld.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/midigitalworld.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=930"}],"version-history":[{"count":6,"href":"https:\/\/midigitalworld.com\/index.php?rest_route=\/wp\/v2\/pages\/930\/revisions"}],"predecessor-version":[{"id":938,"href":"https:\/\/midigitalworld.com\/index.php?rest_route=\/wp\/v2\/pages\/930\/revisions\/938"}],"wp:attachment":[{"href":"https:\/\/midigitalworld.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}