{"id":10,"date":"2026-10-04T09:01:18","date_gmt":"2026-10-04T09:01:18","guid":{"rendered":"https:\/\/bookmintora.com\/?page_id=10"},"modified":"2026-10-04T11:00:36","modified_gmt":"2026-10-04T11:00:36","slug":"create-book","status":"publish","type":"page","link":"https:\/\/bookmintora.com\/index.php\/create-book\/","title":{"rendered":"Create Your Book"},"content":{"rendered":"  <div class=\"bm-studio\">\r\n    <div class=\"bm-progress\"><span class=\"active\">1. Idea<\/span><span>2. Outline<\/span><span>3. Manuscript<\/span><span>4. Export<\/span><\/div>\r\n    <form id=\"bm-form\">\r\n      <label>What is your book about?<\/label>\r\n      <textarea id=\"bm-topic\" required placeholder=\"Example: A practical book about the psychology of loneliness, written for general readers.\"><\/textarea>\r\n      <div class=\"bm-grid\">\r\n        <div><label>Language<\/label><select id=\"bm-language\"><option>English<\/option><option>Espa\u00f1ol<\/option><option>Fran\u00e7ais<\/option><option>Deutsch<\/option><option>Italiano<\/option><option>Portugu\u00eas<\/option><option>T\u00fcrk\u00e7e<\/option><option>\u0627\u0644\u0639\u0631\u0628\u064a\u0629<\/option><option>\u0939\u093f\u0928\u094d\u0926\u0940<\/option><option>\u09ac\u09be\u0982\u09b2\u09be<\/option><option>\u4e2d\u6587<\/option><option>\u65e5\u672c\u8a9e<\/option><option>\ud55c\uad6d\uc5b4<\/option><option>\u0420\u0443\u0441\u0441\u043a\u0438\u0439<\/option><option>\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430<\/option><option>Polski<\/option><option>Nederlands<\/option><option>\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac<\/option><option>Rom\u00e2n\u0103<\/option><option>Bahasa Indonesia<\/option><option>Ti\u1ebfng Vi\u1ec7t<\/option><\/select><\/div>\r\n        <div><label>Book type<\/label><select id=\"bm-type\"><option>Professional<\/option><option>Academic<\/option><option>Fiction<\/option><option>Biography<\/option><option>Textbook<\/option><option>Children&#039;s Book<\/option><option>Business<\/option><\/select><\/div>\r\n        <div><label>Target length<\/label><select id=\"bm-pages\"><option>50 pages<\/option><option>100 pages<\/option><option selected>200 pages<\/option><option>300 pages<\/option><\/select><\/div>\r\n        <div><label>Audience<\/label><select id=\"bm-audience\"><option>General readers<\/option><option>Students<\/option><option>Professionals<\/option><option>Children<\/option><option>Researchers<\/option><\/select><\/div>\r\n      <\/div>\r\n      <label>Author name <small>(optional)<\/small><\/label><input id=\"bm-author\" type=\"text\" placeholder=\"Name to appear on the book\">\r\n      <button type=\"submit\">Create My Book Plan \u2192<\/button>\r\n    <\/form>\r\n    <div id=\"bm-result\" hidden>\r\n      <div class=\"bm-badge\">BOOK PLAN READY<\/div>\r\n      <h2 id=\"bm-title\"><\/h2>\r\n      <p id=\"bm-meta\"><\/p>\r\n      <div id=\"bm-outline\"><\/div>\r\n      <div class=\"bm-actions\"><button type=\"button\" id=\"bm-edit\">\u2190 Edit details<\/button><button type=\"button\" id=\"bm-generate\">Generate Full Book<\/button><\/div>\r\n      <p id=\"bm-note\"><\/p>\r\n    <\/div>\r\n  <\/div>\r\n  <style>\r\n  .bm-studio{max-width:900px;margin:40px auto;padding:34px;border:1px solid #ded5c7;border-radius:18px;background:#fffdf8;box-shadow:0 18px 55px rgba(24,37,31,.08);font-family:Georgia,serif;color:#18251f}\r\n  .bm-progress{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}.bm-progress span{padding:7px 12px;border-radius:99px;background:#eee9df;font:600 12px Arial,sans-serif}.bm-progress .active{background:#18251f;color:#fff}\r\n  .bm-studio label{display:block;font:700 14px Arial,sans-serif;margin:18px 0 8px}.bm-studio textarea,.bm-studio input,.bm-studio select{width:100%;box-sizing:border-box;border:1px solid #d8cdbb;border-radius:9px;padding:14px;background:#fff;font-size:16px}.bm-studio textarea{min-height:130px;resize:vertical}.bm-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}\r\n  .bm-studio button{border:0;border-radius:9px;background:#b66b35;color:#fff;padding:15px 22px;font-weight:700;font-size:15px;cursor:pointer;margin-top:22px}.bm-studio button:hover{filter:brightness(.93)}\r\n  .bm-badge{font:700 12px Arial,sans-serif;color:#8a5a2b;letter-spacing:.12em}.bm-chapter{padding:14px 0;border-bottom:1px solid #eee6da}.bm-chapter strong{display:block}.bm-actions{display:flex;gap:10px}.bm-actions #bm-edit{background:#eee9df;color:#18251f}#bm-note{font:14px Arial,sans-serif;color:#69736e}\r\n  @media(max-width:650px){.bm-studio{margin:15px;padding:20px}.bm-grid{grid-template-columns:1fr}.bm-actions{display:block}.bm-actions button{width:100%}}\r\n  <\/style>\r\n  <script>\r\n  (()=>{const f=document.getElementById('bm-form'),r=document.getElementById('bm-result');\r\n  const esc=s=>s.replace(\/[&<>\"']\/g,m=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#039;'}[m]));\r\n  f.addEventListener('submit',e=>{e.preventDefault();const topic=document.getElementById('bm-topic').value.trim(),lang=document.getElementById('bm-language').value,type=document.getElementById('bm-type').value,pages=document.getElementById('bm-pages').value,aud=document.getElementById('bm-audience').value;\r\n  const title=topic.split(\/[.!?]\/)[0].slice(0,85);document.getElementById('bm-title').textContent=title||'Untitled Book';document.getElementById('bm-meta').textContent=lang+' \u00b7 '+type+' \u00b7 '+pages+' \u00b7 '+aud;\r\n  let chapters=['Introduction: Why This Matters','Foundations and Essential Concepts','Understanding the Core Problem','Historical and Contemporary Perspectives','Key Principles and Frameworks','Real-World Applications','Challenges, Risks and Misconceptions','Methods, Tools and Practical Strategies','Case Studies and Examples','A Step-by-Step Action Framework','Future Directions','Conclusion and Next Steps'];\r\n  if(type==='Fiction') chapters=['Opening Scene','The World and Its Rules','The Inciting Incident','Crossing the Threshold','Rising Conflict','First Major Reversal','New Alliances and Risks','Midpoint Revelation','Consequences','The Final Approach','Climax','Resolution and Epilogue'];\r\n  document.getElementById('bm-outline').innerHTML=chapters.map((c,i)=>'<div class=\"bm-chapter\"><strong>Chapter '+(i+1)+'<\/strong>'+esc(c)+'<\/div>').join('');\r\n  f.hidden=true;r.hidden=false;});\r\n  document.getElementById('bm-edit').onclick=()=>{r.hidden=true;f.hidden=false};\r\n  document.getElementById('bm-generate').onclick=()=>{document.getElementById('bm-note').innerHTML='<strong>Engine stage prepared.<\/strong> Full AI manuscript generation, account credits and DOCX\/PDF delivery are activated when the production API and billing keys are connected.'};\r\n  })();\r\n  <\/script>\r\n  \n\n<script>\ndocument.addEventListener('DOMContentLoaded',function(){\n const f=document.getElementById('bm-form'),r=document.getElementById('bm-result'); if(!f||!r)return;\n const esc=s=>String(s).replace(\/[&<>\"']\/g,m=>({'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;',\"'\":'&#039;'}[m]));\n f.addEventListener('submit',async function(e){e.preventDefault();e.stopImmediatePropagation();\n  const topic=document.getElementById('bm-topic').value.trim(),language=document.getElementById('bm-language').value,type=document.getElementById('bm-type').value,pages=document.getElementById('bm-pages').value,audience=document.getElementById('bm-audience').value,author=document.getElementById('bm-author').value;\n  try{\n   const p=await fetch('\/?rest_route=\/bookmintora\/v1\/project',{method:'POST',headers:{'Content-Type':'application\/json'},body:JSON.stringify({topic,language,type,pages,audience,author})}).then(x=>x.json());\n   if(!p.project_id){alert('Please enter a more detailed book idea.');return;}\n   window.bmProject=p.project_id;\n   const o=await fetch('\/?rest_route=\/bookmintora\/v1\/outline\/'+p.project_id,{method:'POST',headers:{'Content-Type':'application\/json'},body:'{}'}).then(x=>x.json());\n   document.getElementById('bm-title').textContent=p.title||'Untitled Book';\n   document.getElementById('bm-meta').textContent=language+' \u00b7 '+type+' \u00b7 '+pages+' \u00b7 '+audience;\n   document.getElementById('bm-outline').innerHTML=(o.chapters||[]).map((c,i)=>'<div class=\"bm-chapter\"><strong>Chapter '+(i+1)+'<\/strong>'+esc(c)+'<\/div>').join('');\n   f.hidden=true;r.hidden=false;\n  }catch(err){alert('Please try again.');}\n },true);\n const g=document.getElementById('bm-generate');\n if(g)g.addEventListener('click',async function(e){e.preventDefault();e.stopImmediatePropagation();if(!window.bmProject)return;g.disabled=true;g.textContent='Preparing manuscript\u2026';try{const m=await fetch('\/?rest_route=\/bookmintora\/v1\/manuscript\/'+window.bmProject,{method:'POST',headers:{'Content-Type':'application\/json'},body:'{}'}).then(x=>x.json());document.getElementById('bm-note').innerHTML='<strong>Book project #'+window.bmProject+' prepared.<\/strong> '+(m.target_words||'')+' target words across '+((m.chapters||[]).length)+' chapters. Production queue is ready.';g.textContent='Manuscript Queued';}catch(err){g.disabled=false;g.textContent='Generate Full Book';}},true);\n});\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10","page","type-page","status-publish","hentry"],"blocksy_meta":{"has_hero_section":"disabled","page_structure_type":"type-4","content_style_source":"custom","content_style":"wide","vertical_spacing_source":"custom","content_area_spacing":"none","disable_featured_image":"yes","styles_descriptor":{"styles":{"desktop":"[data-prefix=\"single_page\"] [class*=\"ct-container\"] > article[class*=\"post\"] {--has-boxed:var(--false);--has-wide:var(--true);}","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/pages\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/pages\/10\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/pages\/10\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/bookmintora.com\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}