{"id":987533567,"date":"2026-11-25T10:02:02","date_gmt":"2026-11-25T07:02:02","guid":{"rendered":"https:\/\/aliraqia.edu.iq\/?page_id=987533567"},"modified":"2026-11-25T10:08:23","modified_gmt":"2026-11-25T07:08:23","slug":"%d8%a7%d8%ae%d8%aa%d8%a8%d8%a7%d8%b1-chatbot","status":"publish","type":"page","link":"https:\/\/aliraqia.edu.iq\/en\/%d8%a7%d8%ae%d8%aa%d8%a8%d8%a7%d8%b1-chatbot\/","title":{"rendered":"\u0627\u062e\u062a\u0628\u0627\u0631 ChatBot"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"987533567\" class=\"elementor elementor-987533567\">\n\t\t\t\t<div class=\"elementor-element elementor-element-77f60ef e-flex e-con-boxed e-con e-parent\" data-id=\"77f60ef\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3fae728 elementor-widget elementor-widget-html\" data-id=\"3fae728\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\r\n  flowise-chatbot { direction: ltr; }\r\n<\/style>\r\n\r\n<script type=\"module\">\r\n  import Chatbot from \"https:\/\/cdn.jsdelivr.net\/npm\/flowise-embed@3.1.6\/dist\/web.js\";\r\n\r\n  \/\/ ===== \u0639\u062f\u0651\u0644 \u0647\u0630\u0647 \u0627\u0644\u0642\u064a\u0645 \u0641\u0642\u0637 =====\r\n  const MAIN_COLOR  = \"#0B5394\";   \/\/ \u0639\u062f\u0651\u0644: \u0644\u0648\u0646 \u0627\u0644\u062c\u0627\u0645\u0639\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a (\u064a\u062c\u0628 \u0623\u0646 \u064a\u0643\u0648\u0646 \u062f\u0627\u0643\u0646\u0627\u064b \u0644\u064a\u0638\u0647\u0631 \u0627\u0644\u0646\u0635 \u0627\u0644\u0623\u0628\u064a\u0636)\r\n  const LIGHT_COLOR = \"#EAF1F8\";   \/\/ \u0639\u062f\u0651\u0644: \u062f\u0631\u062c\u0629 \u0641\u0627\u062a\u062d\u0629 \u062c\u062f\u0627\u064b \u0645\u0646 \u0627\u0644\u0644\u0648\u0646 \u0646\u0641\u0633\u0647 \u0644\u0641\u0642\u0627\u0639\u0627\u062a \u0627\u0644\u0628\u0648\u062a\r\n  const LOGO = \"https:\/\/aliraqia.edu.iq\/wp-content\/uploads\/2026\/11\/1d99e05b-514b-478e-90a7-3b8e9302a28b.jpeg\";   \/\/ \u0639\u062f\u0651\u0644: \u0631\u0627\u0628\u0637 \u0627\u0644\u0634\u0639\u0627\u0631\r\n  const UNIVERSITY = \"\u062c\u0627\u0645\u0639\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064a\u0629\";  \/\/ \u0639\u062f\u0651\u0644: \u0627\u0633\u0645 \u0627\u0644\u0643\u0644\u064a\u0629 \u0623\u0648 \u0627\u0644\u062c\u0627\u0645\u0639\u0629\r\n  \/\/ ==============================\r\n\r\n  Chatbot.init({\r\n    chatflowid: \"b2d91b98-a994-4946-afb9-dd9131d1f953\",   \/\/ \u0639\u062f\u0651\u0644: \u0627\u0646\u0633\u062e\u0647 \u0645\u0646 \u0643\u0648\u062f\u0643 \u0627\u0644\u0642\u062f\u064a\u0645\r\n    apiHost: \"https:\/\/chatbot.aliraqia.edu.iq\",      \/\/ \u0639\u062f\u0651\u0644: \u0627\u0646\u0633\u062e\u0647 \u0645\u0646 \u0643\u0648\u062f\u0643 \u0627\u0644\u0642\u062f\u064a\u0645\r\n    theme: {\r\n      customCSS: `\r\n        p, li, h1, h2, h3, h4, blockquote, td, th { direction: rtl !important; text-align: right !important; }\r\n        ul, ol { padding-right: 1.5em !important; padding-left: 0 !important; }\r\n        textarea, input { direction: rtl !important; text-align: right !important; }\r\n        span.font-semibold { position: absolute !important; left: 0 !important; right: 0 !important; text-align: center !important; pointer-events: none !important; }\r\n      `,\r\n      button: {\r\n        backgroundColor: MAIN_COLOR,\r\n        iconColor: \"white\"\r\n      },\r\n      chatWindow: {\r\n        title: \"\u0627\u0644\u0645\u0633\u0627\u0639\u062f \u0627\u0644\u0630\u0643\u064a\",\r\n        titleBackgroundColor: MAIN_COLOR,\r\n        titleTextColor: \"#ffffff\",\r\n        titleAvatarSrc: LOGO,\r\n        welcomeMessage: `\u0645\u0631\u062d\u0628\u0627\u064b! \u0623\u0646\u0627 \u0627\u0644\u0645\u0633\u0627\u0639\u062f \u0627\u0644\u0622\u0644\u064a \u0644\u0644${UNIVERSITY}\u060c  \u0643\u064a\u0641 \u064a\u0645\u0643\u0646\u0646\u064a \u0645\u0633\u0627\u0639\u062f\u062a\u0643\u061f`,\r\n        errorMessage: \"\u0639\u0630\u0631\u0627\u064b\u060c \u062d\u062f\u062b \u062e\u0637\u0623. \u062d\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062e\u0631\u0649.\",\r\n        starterPrompts: [\"\u0643\u0645 \u0639\u062f\u062f \u0645\u062e\u062a\u0628\u0631\u0627\u062a \u0627\u0644\u0643\u0644\u064a\u0629\u061f\", \"\u0645\u0646 \u0647\u0648 \u0639\u0645\u064a\u062f \u0627\u0644\u0643\u0644\u064a\u0629\u061f\"],\r\n        clearChatOnReload: true,\r\n        botMessage: { backgroundColor: LIGHT_COLOR, textColor: \"#303235\", showAvatar: true, avatarSrc: LOGO },\r\n        userMessage: { backgroundColor: MAIN_COLOR, textColor: \"#ffffff\" },\r\n        textInput: { placeholder: \"\u0627\u0643\u062a\u0628 \u0633\u0624\u0627\u0644\u0643 \u0647\u0646\u0627\", sendButtonColor: MAIN_COLOR },\r\n        footer: {\r\n        text: \"\",\r\n        company: \"\u0627\u0644\u062c\u0627\u0645\u0639\u0629 \u0627\u0644\u0639\u0631\u0627\u0642\u064a\u0629\",\r\n        companyLink: \"https:\/\/aliraqia.edu.iq\"}\r\n      }\r\n    }\r\n  });\r\n\r\n  \/\/ \u0645\u0633\u062d \u0627\u0644\u0645\u062d\u0627\u062f\u062b\u0629 \u0639\u0646\u062f \u0625\u063a\u0644\u0627\u0642 \u0627\u0644\u0646\u0627\u0641\u0630\u0629\r\n  let wasOpen = false;\r\n  setInterval(() => {\r\n    const root = document.querySelector(\"flowise-chatbot\")?.shadowRoot;\r\n    const box = root?.querySelector(\"textarea, input:not([type='file']):not([type='hidden'])\");\r\n    if (!box) return;\r\n    const w = box.getBoundingClientRect().width;\r\n    if (w > 100) wasOpen = true;\r\n    else if (w < 5 && wasOpen) {\r\n      wasOpen = false;\r\n      Chatbot.clearChat();\r\n    }\r\n  }, 500);\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"rs_blank_template":"","rs_page_bg_color":"","slide_template_v7":"","footnotes":""},"class_list":["post-987533567","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/pages\/987533567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/comments?post=987533567"}],"version-history":[{"count":8,"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/pages\/987533567\/revisions"}],"predecessor-version":[{"id":987533577,"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/pages\/987533567\/revisions\/987533577"}],"wp:attachment":[{"href":"https:\/\/aliraqia.edu.iq\/en\/wp-json\/wp\/v2\/media?parent=987533567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}