{"id":2396,"date":"2025-04-16T09:28:13","date_gmt":"2025-04-16T09:28:13","guid":{"rendered":"https:\/\/www.external-cmo.de\/?page_id=2396"},"modified":"2025-04-16T14:58:50","modified_gmt":"2025-04-16T14:58:50","slug":"fire-control-agent","status":"publish","type":"page","link":"https:\/\/www.external-cmo.de\/de\/fire-control-agent\/","title":{"rendered":"Fire Control\u2122 Agent"},"content":{"rendered":"<div id=\"fc-chat\">\n<h3>Fire Control\u2122 Commander<\/h3>\n<p>  <textarea id=\"fc-input\" placeholder=\"Was blockiert deine F\u00fchrungsmannschaft, Commander?\"><\/textarea><br \/>\n  <button id=\"fc-button\">Analyse starten<\/button><\/p>\n<div id=\"fc-response\"><\/div>\n<\/div>\n<p><script>\n  document.addEventListener(\"DOMContentLoaded\", function () {\n    const btn = document.getElementById(\"fc-button\");\n    const textarea = document.getElementById(\"fc-input\");\n    const response = document.getElementById(\"fc-response\");<\/p>\n<p>    if (btn && textarea && response) {\n      btn.addEventListener(\"click\", function () {\n        const input = textarea.value;\n        response.innerHTML = \"Analyse l\u00e4uft...\";<\/p>\n<p>        fetch(\"https:\/\/firecontrolcommander.app.n8n.cloud\/webhook\/3b07bf25-7322-4fd4-bcfa-4b58497443aa\/chat\", {\n          method: \"POST\",\n          headers: { \"Content-Type\": \"application\/json\" },\n          body: JSON.stringify({ topic: \"fuehrung\", user_input: input }),\n        })\n          .then((res) => res.json())\n          .then((data) => {\n            response.innerHTML = data.result || \"Keine Antwort vom Commander.\";\n          })\n          .catch((err) => {\n            response.innerHTML = \"Fehler: \" + err.message;\n          });\n      });\n    }\n  });\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fire Control\u2122 Commander Analyse starten<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"wp-custom-template-fire-control-agent","meta":{"content-type":"","_surecart_dashboard_logo_width":"180px","_surecart_dashboard_show_logo":true,"_surecart_dashboard_navigation_orders":true,"_surecart_dashboard_navigation_invoices":true,"_surecart_dashboard_navigation_subscriptions":true,"_surecart_dashboard_navigation_downloads":true,"_surecart_dashboard_navigation_billing":true,"_surecart_dashboard_navigation_account":true,"_monsterinsights_skip_tracking":false,"footnotes":""},"class_list":["post-2396","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/pages\/2396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/comments?post=2396"}],"version-history":[{"count":17,"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/pages\/2396\/revisions"}],"predecessor-version":[{"id":2418,"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/pages\/2396\/revisions\/2418"}],"wp:attachment":[{"href":"https:\/\/www.external-cmo.de\/de\/wp-json\/wp\/v2\/media?parent=2396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}