{"id":1105,"date":"2023-08-07T19:39:18","date_gmt":"2023-08-07T19:39:18","guid":{"rendered":"https:\/\/patris.ai\/?page_id=1105"},"modified":"2023-08-07T19:39:18","modified_gmt":"2023-08-07T19:39:18","slug":"chat-integration","status":"publish","type":"page","link":"https:\/\/patris.ai\/en\/chat-integration\/","title":{"rendered":"Chat Integration Guide"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8220;1&#8243; _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; custom_padding=&#8220;120px||||false|false&#8220; global_colors_info=&#8220;{}&#8220;][et_pb_row _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; global_colors_info=&#8220;{}&#8220;][et_pb_column type=&#8220;4_4&#8243; _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; global_colors_info=&#8220;{}&#8220;][et_pb_text _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; header_font=&#8220;Poppins|700|||||||&#8220; header_text_color=&#8220;#0536fc&#8220; header_font_size=&#8220;36px&#8220; header_letter_spacing=&#8220;-1.2px&#8220; header_line_height=&#8220;1.2em&#8220; hover_enabled=&#8220;0&#8243; global_colors_info=&#8220;{}&#8220; sticky_enabled=&#8220;0&#8243;]<\/p>\n<h1><strong>Patris Chat Integration Guide<\/strong><\/h1>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; header_2_font=&#8220;Poppins|700|||||||&#8220; header_3_font=&#8220;Poppins|600|||||||&#8220; header_4_font=&#8220;Poppins|600|||||||&#8220; header_5_font=&#8220;Poppins|600|||||||&#8220; header_6_font=&#8220;Poppins|600|||||||&#8220; hover_enabled=&#8220;0&#8243; global_colors_info=&#8220;{}&#8220; sticky_enabled=&#8220;0&#8243;]<\/p>\n<p><span style=\"font-weight: 400;\">The Patris.ai chat provides an easy way to embed a dynamic chat interface to your website. This guide will show you how to integrate the Patris.ai chat into your website using the provided JavaScript script.<\/span><\/p>\n<h2><strong><\/strong><\/h2>\n<h2><strong>Requirements<\/strong><\/h2>\n<p><span style=\"font-weight: 400;\">&#8211; Access to your website&#8217;s source code or CMS (Content Management System).<br \/><\/span><span style=\"font-weight: 400;\">&#8211; A valid Patris.ai module `id` which will be used to interact with the chat.<\/span><\/p>\n<h2><strong><\/strong><\/h2>\n<h2><strong>Integration Steps<\/strong><\/h2>\n<h3><strong>1. Load the Script:<\/strong><\/h3>\n<p><span style=\"font-weight: 400;\">First, you need to load the Patris.ai script in your HTML. Place the following line of code before the closing `&lt;\/body&gt;` tag:<\/span><\/p>\n<p>[\/et_pb_text][et_pb_dmb_code_snippet code=&#8220;PHNjcmlwdCBzcmM9Imh0dHBzOi8vdGVzdC5wYXRyaXMuYWkvcHVibGljL3BhdHJpcy1jaGF0LmpzIj48L3NjcmlwdD4=&#8220; style=&#8220;atelier-cave-light&#8220; linenums=&#8220;on&#8220; copy_button=&#8220;on&#8220; copy_button_tooltip=&#8220;Kopieren&#8220; _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; hover_enabled=&#8220;0&#8243; border_radii=&#8220;on|12px|12px|12px|12px&#8220; global_colors_info=&#8220;{}&#8220; sticky_enabled=&#8220;0&#8243;][\/et_pb_dmb_code_snippet][et_pb_dmb_code_snippet code=&#8220;PHNjcmlwdD4KIHBhdHJpc0FJKHsKIGlkOiAnYjIyYjI2Y2U3NGI5MTI3OGRmZ3JlZWM3ZmNlMmI3OTBmODEnLCAgLy8gSW5zZXJ0IHlvdXIgbW9kdWxlIElEIGhlcmUKIHRleHQ6ICdDaGF0JywKIGNvbG9yOiAnIzc5YmFmZicsCiB1bmlxdWVJZDogJ3BhdHJpc0NoYXQnCiB9KTsKPC9zY3JpcHQ+Cg==&#8220; style=&#8220;atelier-cave-light&#8220; linenums=&#8220;on&#8220; copy_button=&#8220;on&#8220; copy_button_tooltip=&#8220;Kopieren&#8220; _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; hover_enabled=&#8220;0&#8243; border_radii=&#8220;on|12px|12px|12px|12px&#8220; global_colors_info=&#8220;{}&#8220; sticky_enabled=&#8220;0&#8243;][\/et_pb_dmb_code_snippet][et_pb_text _builder_version=&#8220;4.21.0&#8243; _module_preset=&#8220;default&#8220; header_2_font=&#8220;Poppins|700|||||||&#8220; header_3_font=&#8220;Poppins|600|||||||&#8220; header_4_font=&#8220;Poppins|600|||||||&#8220; header_5_font=&#8220;Poppins|600|||||||&#8220; header_6_font=&#8220;Poppins|600|||||||&#8220; hover_enabled=&#8220;0&#8243; global_colors_info=&#8220;{}&#8220; sticky_enabled=&#8220;0&#8243;]<\/p>\n<h2><span style=\"font-weight: 400;\"><\/span><strong>2. Initialize the Chat:<\/strong><\/h2>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">After loading the script, you can initialize the chat by calling the `patrisAI` function. The only mandatory parameter is `id`, which should be the `id` of the Patris.ai module you wish to interact with.<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">You can also provide optional parameters to adjust the chat bubble appearance and behavior:<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">&#8211; `text`: An optional label for the chat bubble.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; `color`: An optional color for the chat bubble.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; `uniqueId`: The element id prefix to add custom stylings through CSS<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">Here&#8217;s a sample initialization:<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">&#8222;`javascript<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;script&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0patrisAI({<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0id: &#8218;b22b26ce74b91278dfgreec7fce2b790f81&#8216;,\u00a0 \/\/ Insert your module ID here<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0text: &#8218;Chat&#8216;,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0color: &#8218;#79baff&#8216;,<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0uniqueId: &#8218;patrisChat&#8216;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0});<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&lt;\/script&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8222;`<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">## Optional Configuration Parameters:<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">&#8211; `id` (required): The Patris.ai module id you wish to interact with.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; `text` (optional): The text label for the chat bubble.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; `color` (optional): The color of the chat bubble. Default is blue.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; `uniqueId` (optional): The element id prefix to add custom stylings through CSS<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">## Notes:<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">&#8211; Ensure you replace `b22b26ce74b91278dfgreec7fce2b790f81` with your actual Patris.ai module id.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; If the chat bubble&#8217;s appearance does not fit your website&#8217;s design, you can adjust the `text` and `color` properties to suit your needs.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&#8211; The chat bubble will dynamically adapt its size and position based on the viewport&#8217;s width.<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">## Support<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">For any issues or further customization requirements, please reach out to Patris.ai support.<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">## Conclusion<\/span><\/p>\n<h2><\/h2>\n<p><span style=\"font-weight: 400;\">By following this guide, you can seamlessly integrate the Patris.ai chat interface into your website, offering your visitors an interactive and dynamic chat experience.<\/span><\/p>\n<h2><br style=\"font-weight: 400;\" \/><br style=\"font-weight: 400;\" \/><\/h2>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>","protected":false},"excerpt":{"rendered":"<p>Patris Chat Integration GuideThe Patris.ai chat provides an easy way to embed a dynamic chat interface to your website. This guide will show you how to integrate the Patris.ai chat into your website using the provided JavaScript script. Requirements &#8211; Access to your website&#8217;s source code or CMS (Content Management System).- A valid Patris.ai module [&hellip;]<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"dipi_cpt_category":[],"class_list":["post-1105","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Chat Integration Guide - patris<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/patris.ai\/en\/chat-integration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Chat Integration Guide - patris\" \/>\n<meta property=\"og:description\" content=\"Patris Chat Integration GuideThe Patris.ai chat provides an easy way to embed a dynamic chat interface to your website. This guide will show you how to integrate the Patris.ai chat into your website using the provided JavaScript script. Requirements - Access to your website&#039;s source code or CMS (Content Management System).- A valid Patris.ai module [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/patris.ai\/en\/chat-integration\/\" \/>\n<meta property=\"og:site_name\" content=\"patris\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/patris.ai\/chat-integration\/\",\"url\":\"https:\/\/patris.ai\/chat-integration\/\",\"name\":\"Chat Integration Guide - patris\",\"isPartOf\":{\"@id\":\"https:\/\/patris.ai\/#website\"},\"datePublished\":\"2023-08-07T19:39:18+00:00\",\"dateModified\":\"2023-08-07T19:39:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/patris.ai\/chat-integration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/patris.ai\/chat-integration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/patris.ai\/chat-integration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/patris.ai\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Chat Integration Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/patris.ai\/#website\",\"url\":\"https:\/\/patris.ai\/\",\"name\":\"patris\",\"description\":\"Einfache KI L\u00f6sung f\u00fcr den Mittelstand\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/patris.ai\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Chat Integration Guide - patris","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/patris.ai\/en\/chat-integration\/","og_locale":"en_US","og_type":"article","og_title":"Chat Integration Guide - patris","og_description":"Patris Chat Integration GuideThe Patris.ai chat provides an easy way to embed a dynamic chat interface to your website. This guide will show you how to integrate the Patris.ai chat into your website using the provided JavaScript script. Requirements - Access to your website's source code or CMS (Content Management System).- A valid Patris.ai module [&hellip;]","og_url":"https:\/\/patris.ai\/en\/chat-integration\/","og_site_name":"patris","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/patris.ai\/chat-integration\/","url":"https:\/\/patris.ai\/chat-integration\/","name":"Chat Integration Guide - patris","isPartOf":{"@id":"https:\/\/patris.ai\/#website"},"datePublished":"2023-08-07T19:39:18+00:00","dateModified":"2023-08-07T19:39:18+00:00","breadcrumb":{"@id":"https:\/\/patris.ai\/chat-integration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/patris.ai\/chat-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/patris.ai\/chat-integration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/patris.ai\/"},{"@type":"ListItem","position":2,"name":"Chat Integration Guide"}]},{"@type":"WebSite","@id":"https:\/\/patris.ai\/#website","url":"https:\/\/patris.ai\/","name":"patris","description":"Einfache KI L\u00f6sung f\u00fcr den Mittelstand","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/patris.ai\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/pages\/1105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/comments?post=1105"}],"version-history":[{"count":3,"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/pages\/1105\/revisions"}],"predecessor-version":[{"id":1109,"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/pages\/1105\/revisions\/1109"}],"wp:attachment":[{"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/media?parent=1105"}],"wp:term":[{"taxonomy":"dipi_cpt_category","embeddable":true,"href":"https:\/\/patris.ai\/en\/wp-json\/wp\/v2\/dipi_cpt_category?post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}