{"id":2877,"date":"2025-09-12T13:39:47","date_gmt":"2025-09-12T13:39:47","guid":{"rendered":"https:\/\/wpbot.pro\/docs\/?post_type=kbx_knowledgebase&#038;p=2877"},"modified":"2025-10-30T12:01:55","modified_gmt":"2025-10-30T12:01:55","slug":"shortcode-for-floating-icon-to-chat","status":"publish","type":"kbx_knowledgebase","link":"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/","title":{"rendered":"Shortcode for floating icon to Chat"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h3 data-start=\"225\" data-end=\"263\"><strong>Shortcode<\/strong>: <code data-start=\"238\" data-end=\"261\">[wpbot-floating-icon]<\/code><\/h3>\n<p data-start=\"265\" data-end=\"433\">The <code data-start=\"269\" data-end=\"292\">[wpbot-floating-icon]<\/code> shortcode displays the WPBot floating chat widget on your website. You can customize it with parameters such as template and assistant ID.<\/p>\n<hr data-start=\"435\" data-end=\"438\" \/>\n<p>Available Parameters<\/p>\n<p data-start=\"467\" data-end=\"678\"><strong data-start=\"467\" data-end=\"479\">template<\/strong><br data-start=\"479\" data-end=\"482\" \/>This parameter allows you to choose which chatbot template design will be displayed.<br data-start=\"566\" data-end=\"569\" \/>Available values: <code data-start=\"587\" data-end=\"591\">01<\/code>, <code data-start=\"593\" data-end=\"597\">02<\/code>, <code data-start=\"599\" data-end=\"603\">03<\/code>, \u2026 (depending on installed templates). The default value is <code data-start=\"660\" data-end=\"664\">01<\/code>.<br data-start=\"665\" data-end=\"668\" \/>Example:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-php\">[wpbot-floating-icon template=<span class=\"hljs-string\">\"02\"<\/span>]<br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"727\" data-end=\"730\" \/>\n<p data-start=\"732\" data-end=\"898\"><strong data-start=\"732\" data-end=\"752\">gpt_assistant_id<\/strong><br data-start=\"752\" data-end=\"755\" \/>This parameter lets you connect a specific OpenAI GPT assistant to the chatbot. If left empty, the default assistant will be used.<br data-start=\"885\" data-end=\"888\" \/>Example:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-php\">[wpbot-floating-icon gpt_assistant_id=<span class=\"hljs-string\">\"asst_1234567890\"<\/span>]<br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"968\" data-end=\"971\" \/>\n<h4 data-start=\"973\" data-end=\"991\">Example Usage<\/h4>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre! language-php\">[wpbot-floating-icon template=<span class=\"hljs-string\">\"03\"<\/span> gpt_assistant_id=<span class=\"hljs-string\">\"asst_1234567890\"<\/span>]<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"1076\" data-end=\"1177\">This example will display the chatbot using <strong data-start=\"1120\" data-end=\"1135\">Template 03<\/strong> with a specific GPT Assistant attached.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Shortcode: [wpbot-floating-icon] The [wpbot-floating-icon] shortcode displays the WPBot floating chat widget on your website. You can customize it with [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"kbx_category":[23,18],"kbx_tag":[],"class_list":["post-2877","kbx_knowledgebase","type-kbx_knowledgebase","status-publish","hentry","kbx_category-open-ai","kbx_category-shortcode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Shortcode for floating icon to Chat - WPBot Pro Docs<\/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:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Shortcode for floating icon to Chat - WPBot Pro Docs\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Shortcode: [wpbot-floating-icon] The [wpbot-floating-icon] shortcode displays the WPBot floating chat widget on your website. You can customize it with [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/\" \/>\n<meta property=\"og:site_name\" content=\"WPBot Pro Docs\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-30T12:01:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/knowledgebase\\\/shortcode-for-floating-icon-to-chat\\\/\",\"url\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/knowledgebase\\\/shortcode-for-floating-icon-to-chat\\\/\",\"name\":\"Shortcode for floating icon to Chat - WPBot Pro Docs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/#website\"},\"datePublished\":\"2025-09-12T13:39:47+00:00\",\"dateModified\":\"2025-10-30T12:01:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/knowledgebase\\\/shortcode-for-floating-icon-to-chat\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpbot.pro\\\/docs\\\/knowledgebase\\\/shortcode-for-floating-icon-to-chat\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/knowledgebase\\\/shortcode-for-floating-icon-to-chat\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/knowledgebase\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Shortcode for floating icon to Chat\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/\",\"name\":\"Get the #1 ChatBot for WordPress \u2013 WPBot\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/#\\\/schema\\\/person\\\/770bebd298cfb4e7525960a804bfd88d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/#\\\/schema\\\/person\\\/770bebd298cfb4e7525960a804bfd88d\",\"name\":\"WPBot\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/chatbot-for-wordpress-wpbot-logo-1.png\",\"url\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/chatbot-for-wordpress-wpbot-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/chatbot-for-wordpress-wpbot-logo-1.png\",\"width\":202,\"height\":70,\"caption\":\"WPBot\"},\"logo\":{\"@id\":\"https:\\\/\\\/wpbot.pro\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/chatbot-for-wordpress-wpbot-logo-1.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Shortcode for floating icon to Chat - WPBot Pro Docs","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:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/","og_locale":"en_US","og_type":"article","og_title":"Shortcode for floating icon to Chat - WPBot Pro Docs","og_description":"&nbsp; Shortcode: [wpbot-floating-icon] The [wpbot-floating-icon] shortcode displays the WPBot floating chat widget on your website. You can customize it with [&hellip;]","og_url":"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/","og_site_name":"WPBot Pro Docs","article_modified_time":"2025-10-30T12:01:55+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/","url":"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/","name":"Shortcode for floating icon to Chat - WPBot Pro Docs","isPartOf":{"@id":"https:\/\/wpbot.pro\/docs\/#website"},"datePublished":"2025-09-12T13:39:47+00:00","dateModified":"2025-10-30T12:01:55+00:00","breadcrumb":{"@id":"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpbot.pro\/docs\/knowledgebase\/shortcode-for-floating-icon-to-chat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpbot.pro\/docs\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/wpbot.pro\/docs\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"Shortcode for floating icon to Chat"}]},{"@type":"WebSite","@id":"https:\/\/wpbot.pro\/docs\/#website","url":"https:\/\/wpbot.pro\/docs\/","name":"Get the #1 ChatBot for WordPress \u2013 WPBot","description":"","publisher":{"@id":"https:\/\/wpbot.pro\/docs\/#\/schema\/person\/770bebd298cfb4e7525960a804bfd88d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpbot.pro\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/wpbot.pro\/docs\/#\/schema\/person\/770bebd298cfb4e7525960a804bfd88d","name":"WPBot","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2024\/09\/chatbot-for-wordpress-wpbot-logo-1.png","url":"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2024\/09\/chatbot-for-wordpress-wpbot-logo-1.png","contentUrl":"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2024\/09\/chatbot-for-wordpress-wpbot-logo-1.png","width":202,"height":70,"caption":"WPBot"},"logo":{"@id":"https:\/\/wpbot.pro\/docs\/wp-content\/uploads\/2024\/09\/chatbot-for-wordpress-wpbot-logo-1.png"}}]}},"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase\/2877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase"}],"about":[{"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/types\/kbx_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/comments?post=2877"}],"version-history":[{"count":3,"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase\/2877\/revisions"}],"predecessor-version":[{"id":2880,"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/kbx_knowledgebase\/2877\/revisions\/2880"}],"wp:attachment":[{"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/media?parent=2877"}],"wp:term":[{"taxonomy":"kbx_category","embeddable":true,"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/kbx_category?post=2877"},{"taxonomy":"kbx_tag","embeddable":true,"href":"https:\/\/wpbot.pro\/docs\/wp-json\/wp\/v2\/kbx_tag?post=2877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}