{"id":5861,"date":"2025-04-03T11:32:15","date_gmt":"2025-04-03T09:32:15","guid":{"rendered":"https:\/\/wpiko.com\/docs\/\/\/shortcode-integration\/"},"modified":"2025-04-03T12:02:56","modified_gmt":"2025-04-03T10:02:56","slug":"shortcode-integration","status":"publish","type":"wpiko_docs","link":"https:\/\/wpiko.com\/docs\/chatbot\/chatbot-implementation-chatbot\/shortcode-integration\/","title":{"rendered":"Shortcode Integration"},"content":{"rendered":"\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-9b28faa\" id=\"overview\" data-block-id=\"9b28faa\"><h2 class=\"stk-block-heading__text\">Overview<\/h2><\/div>\n\n\n\n<p>The <strong>Shortcode Integration<\/strong> feature of WPiko AI Chatbot allows you to embed the chatbot directly into specific pages or posts on your WordPress site. This method provides flexibility in placement and enables you to integrate the chatbot seamlessly with your content.<\/p>\n\n\n\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-97ab97b\" id=\"using-the-shortcode\" data-block-id=\"97ab97b\"><h2 class=\"stk-block-heading__text\">Using the Shortcode<\/h2><\/div>\n\n\n\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-7610106\" id=\"basic-implementation\" data-block-id=\"7610106\"><h2 class=\"stk-block-heading__text\">Basic Implementation<\/h2><\/div>\n\n\n\n<p>To add the chatbot to any page or post, simply insert the following shortcode:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;wpiko_chatbot]<\/code><\/pre>\n\n\n\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-5e64463\" id=\"where-to-use-the-shortcode\" data-block-id=\"5e64463\"><h2 class=\"stk-block-heading__text\">Where to Use the Shortcode<\/h2><\/div>\n\n\n\n<p>You can use this shortcode in various locations:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Page or Post Content:<\/strong> Insert it directly in the content editor.<\/li>\n\n\n\n<li><strong>Text Widgets:<\/strong> Add it to sidebars or other widget areas.<\/li>\n\n\n\n<li><strong>Custom HTML Blocks:<\/strong> Use it within Gutenberg custom HTML blocks.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-b2f17f7\" id=\"configuring-shortcode-chatbot-settings\" data-block-id=\"b2f17f7\"><h2 class=\"stk-block-heading__text\">Configuring Shortcode Chatbot Settings<\/h2><\/div>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to <strong>WPiko AI Chatbot > Shortcode Chatbot<\/strong> in your WordPress dashboard.<\/li>\n\n\n\n<li>Here you can adjust settings specific to the shortcode implementation.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"adjusting-chatbot-size\">Adjusting Chatbot Size<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Locate <strong>&#8220;Chatbot Width (px)&#8221;<\/strong> and enter the desired maximum width in pixels.<\/li>\n\n\n\n<li><strong>Default:<\/strong> 1280px<\/li>\n\n\n\n<li><strong>Note:<\/strong> The chatbot will be responsive and adjust to fit smaller containers.<\/li>\n\n\n\n<li>Set the <strong>&#8220;Chatbot Height (px)&#8221;<\/strong> to adjust the height of the messages area.<\/li>\n\n\n\n<li><strong>Default:<\/strong> 500px<\/li>\n\n\n\n<li>Click <strong>&#8220;Save Shortcode Chatbot Settings&#8221;<\/strong> to apply changes.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"best-practices-for-shortcode-implementation\">Best Practices for Shortcode Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"strategic-placement\">Strategic Placement<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Consider adding the chatbot to <strong>FAQ pages, product pages, or support sections<\/strong>.<\/li>\n\n\n\n<li>Use it on <strong>landing pages<\/strong> to provide immediate assistance to potential customers.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"responsive-design\">Responsive Design<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The shortcode chatbot is designed to be responsive, but ensure it fits well within your page layout.<\/li>\n\n\n\n<li>Test on various screen sizes to verify proper display.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"content-integration\">Content Integration<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Introduce the chatbot with surrounding text to explain its purpose to visitors.<\/li>\n\n\n\n<li><strong>Example:<\/strong> <em>&#8220;Have questions? Our AI assistant is here to help!&#8221;<\/em><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"multiple-instances\">Multiple Instances<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can use the shortcode <strong>multiple times<\/strong> on the same page if needed.<\/li>\n\n\n\n<li>Be mindful of <strong>user experience<\/strong> when placing multiple chatbots.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"avoid-overuse\">Avoid Overuse<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>While versatile, avoid placing the chatbot on every page.<\/li>\n\n\n\n<li>Use it where it <strong>adds the most value<\/strong>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"customization-tips\">Customization Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The <strong>shortcode chatbot inherits styles<\/strong> set in the general Chatbot Style settings.<\/li>\n\n\n\n<li>For <strong>page-specific customizations<\/strong>, you can wrap the shortcode in a <code>div<\/code> with custom CSS classes.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>html\n&lt;div class=\"custom-chatbot-wrapper\">\n    &#91;wpiko_chatbot]\n&lt;\/div><\/code><\/pre>\n\n\n\n<p>Then, add custom CSS targeting <code>.custom-chatbot-wrapper<\/code> in your theme or custom CSS section.<\/p>\n\n\n\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-a46a040\" id=\"troubleshooting\" data-block-id=\"a46a040\"><h2 class=\"stk-block-heading__text\">Troubleshooting<\/h2><\/div>\n\n\n\n<p>If the chatbot doesn&#8217;t appear or function correctly:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Verify the shortcode is <strong>entered correctly<\/strong> with no extra spaces or characters.<\/li>\n\n\n\n<li>Check if there are any <strong>JavaScript errors<\/strong> in the browser console.<\/li>\n\n\n\n<li>Ensure the <strong>page\/post is published<\/strong> and visible to the intended audience.<\/li>\n\n\n\n<li>Verify that the <strong>WPiko AI Chatbot plugin<\/strong> is activated and properly configured.<\/li>\n<\/ul>\n","protected":false},"featured_media":0,"menu_order":0,"template":"","wpiko_doc_product":[46],"wpiko_doc_category":[48],"class_list":["post-5861","wpiko_docs","type-wpiko_docs","status-publish","hentry","wpiko_doc_product-chatbot","wpiko_doc_category-chatbot-implementation-chatbot"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/wpiko_docs\/5861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/wpiko_docs"}],"about":[{"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/types\/wpiko_docs"}],"version-history":[{"count":6,"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/wpiko_docs\/5861\/revisions"}],"predecessor-version":[{"id":5916,"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/wpiko_docs\/5861\/revisions\/5916"}],"wp:attachment":[{"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/media?parent=5861"}],"wp:term":[{"taxonomy":"wpiko_doc_product","embeddable":true,"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/wpiko_doc_product?post=5861"},{"taxonomy":"wpiko_doc_category","embeddable":true,"href":"https:\/\/wpiko.com\/wp-json\/wp\/v2\/wpiko_doc_category?post=5861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}