{"id":4314,"date":"2024-02-16T13:13:03","date_gmt":"2024-02-16T12:13:03","guid":{"rendered":"https:\/\/www.knowboard.de\/?p=4314"},"modified":"2024-02-16T13:13:07","modified_gmt":"2024-02-16T12:13:07","slug":"add-myalice-chatbot-to-wordpress","status":"publish","type":"post","link":"https:\/\/www.knowboard.de\/add-myalice-chatbot-to-wordpress\/","title":{"rendered":"Add MyAlice Chatbot to WordPress"},"content":{"rendered":"\n
\n\n\/*\n\/\/ADD MYALICE\nfunction my_footer_script() {\n?>\n<script>\n\n\t\/\/ Put this code snippet inside script tag\n\t(function () {\n\t\tvar div = document.createElement('div');\n\t\tdiv.id = 'icWebChat';\n\t\tvar script = document.createElement('script');\n\t\tscript.type = 'text\/javascript';\n\t\tscript.async = true;\n\t\tscript.src = 'https:\/\/webchat.getalice.ai\/index.js';\n\t\tvar lel = document.body.getElementsByTagName('script');\n\t\tvar el = lel[lel.length - 1];\n\t\tel.parentNode.insertBefore(script, el);\n\t\tel.parentNode.insertBefore(div, el);\n\t\tscript.addEventListener('load', function () {\n\t\t\tICWebChat.init({ selector: '#icWebChat',\n\t\t\t\t\t\t\tplatformId: '7726',\n\t\t\t\t\t\t\tprimaryId: 'dac43e86ac2911ecbe130242ac120008',\n\t\t\t\t\t\t\ttoken: '774fe0287a0038a903a40c93a3a5de56a61c846ebcd93d13' });\n\t\t});\n\t})();\n\n<\/script>\n<?php\n}\nadd_action( 'wp_footer', 'my_footer_script' );\n*\/<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\/* \/\/ADD MYALICE function my_footer_script() { ?> <script> \/\/ Put this code snippet inside script tag (function () { var div = document.createElement('div'); div.id = 'icWebChat'; var script = document.createElement('script'); script.type = 'text\/javascript'; script.async = true; script.src = 'https:\/\/webchat.getalice.ai\/index.js'; var lel = document.body.getElementsByTagName('script'); var el = lel[lel.length - 1]; el.parentNode.insertBefore(script, el); el.parentNode.insertBefore(div, el); script.addEventListener('load', function…","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-4314","post","type-post","status-publish","format-standard","hentry","category-allgemein","entry","no-media"],"_links":{"self":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/4314"}],"collection":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/comments?post=4314"}],"version-history":[{"count":1,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/4314\/revisions"}],"predecessor-version":[{"id":4317,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/4314\/revisions\/4317"}],"wp:attachment":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media?parent=4314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/categories?post=4314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/tags?post=4314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}