{"id":6903,"date":"2025-09-22T15:52:00","date_gmt":"2025-09-22T10:22:00","guid":{"rendered":"https:\/\/holithemes.com\/plugins\/click-to-chat\/?post_type=docs&#038;p=6903"},"modified":"2025-11-14T15:55:34","modified_gmt":"2025-11-14T10:25:34","slug":"pre-filled-message","status":"publish","type":"docs","link":"https:\/\/holithemes.com\/plugins\/click-to-chat\/docs\/pre-filled-message\/","title":{"rendered":"Prefilled Message"},"content":{"rendered":"\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">The Pre-Filled message is a&nbsp;<strong>text that appears automatically<\/strong>&nbsp;in the WhatsApp chat Window when the page visitor clicks on the WhatsApp button\/Image.&nbsp;<\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">To add the Prefilled Message Navigate to <strong>Click to Chat<\/strong> and add <strong>Pre-filled Message <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"157\" height=\"159\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/Click-to-Chat-Navigation.png\" alt=\"\" class=\"wp-image-6930\"\/><\/figure>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">We&nbsp;can add multiple lines in the Pre-Filled Message along with the variables.&nbsp;<\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><strong>Along with the text,&nbsp;<\/strong><strong>we<\/strong><strong>&nbsp;can add&nbsp;<\/strong><strong>variables&nbsp;<\/strong><strong>like&nbsp;<\/strong><strong>{<\/strong><strong>URL<\/strong><strong>}<\/strong><strong>,<\/strong><strong>&nbsp;{site}<\/strong><strong>&nbsp;<\/strong><strong>{t<\/strong><strong>itle<\/strong><strong>}<\/strong>&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<li><strong>{site}<\/strong> &#8211;&nbsp;Name of the website&nbsp;[e.g. HoliThemes]<\/li>\n\n\n\n<li><strong>{title}<\/strong> &#8211; The current page title [e.g. Ruby shades Necklace]<\/li>\n\n\n\n<li><strong>{url}<\/strong> &#8211; The current page link [e.g. https:\/\/example.com\/ruby-shades-necklace]<\/li>\n\n\n\n<li><strong>[url]<\/strong> &#8211;&nbsp;url&nbsp;in square brackets \u2013&nbsp;replaces with full&nbsp;URL including the query parameters<br> [e.g. https:\/\/example.com\/ruby-shades-necklace\/path?carat=24&amp;diamond=true]<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><strong>Example:&nbsp;<\/strong>&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code wp-embed-aspect-16-9 wp-has-aspect-ratio\"><code>Hello {site}!\nLike to know more information about the <strong>{url}<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">This Pre-Filled text will display in the WhatsApp chat window. Variables will be replaced based on the page where the user clicks on WhatsApp Icon\/Button.<\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">At the chat window, the variables are replaced with the below values.<\/p>\n\n\n\n<pre class=\"wp-block-code wp-embed-aspect-16-9 wp-has-aspect-ratio\"><code>Hello HoliThemes!\nName:\nLike to know more information about the <strong>https:\/\/holithemes.com\/plugins<\/strong><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"679\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-default-prefilled-1-1024x679.webp\" alt=\"\" class=\"wp-image-6936\" style=\"width:664px;height:auto\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-default-prefilled-1-1024x679.webp 1024w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-default-prefilled-1-300x199.webp 300w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-default-prefilled-1-768x509.webp 768w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-default-prefilled-1.webp 1101w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading wp-embed-aspect-16-9 wp-has-aspect-ratio has-ast-global-color-8-color has-text-color\"><strong>WooCommerce variables<\/strong><\/h3>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">Click to Chat have some variables specific to WooCommerce pages like the <a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/whatsapp-chat-in-woocommerce-shop-page\/\" target=\"_blank\" rel=\"noreferrer noopener\">Shop page<\/a>, <a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/woocommerce-single-product-pages\/\" target=\"_blank\" rel=\"noreferrer noopener\">Single Product Pages<\/a>, <a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/change-values-at-page-level\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cart page, Account page, and Checkout page<\/a>.<\/p>\n\n\n\n<ul class=\"wp-block-list wp-embed-aspect-16-9 wp-has-aspect-ratio\">\n<li><strong>{product}<\/strong> &#8211; Name of the Product<\/li>\n\n\n\n<li><strong>{price}<\/strong> &#8211; The discounted price of the Product<\/li>\n\n\n\n<li><strong>{regular_price}<\/strong> &#8211; Price of the Product\/Undiscounted price of the Product<\/li>\n\n\n\n<li><strong>{sku}<\/strong> &#8211; Stock left<\/li>\n\n\n\n<li><strong>{{price}}:<\/strong>&nbsp;Price with currency formatting (symbol, decimal &amp; thousand separator)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adding Greeting Form Data to the Pre-Filled Message<\/strong><\/h3>\n\n\n\n<p>If we are using the Greeting Form (<a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/pricing\/\" data-type=\"page\" data-id=\"1722\">Pro feature<\/a>), we can also include the data our visitors enter in that form inside the Pre-Filled Message.<\/p>\n\n\n\n<p>To add Form data to Prefilled Message, Navigate to <strong>Click to Chat<\/strong> -&gt; <strong>Greetings<\/strong> &#8211; <strong>Select Form<\/strong><\/p>\n\n\n\n<p><br>Add fields and in the field options simply check the box <strong>\u201cAdd to Pre-Filled Message\u201d<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img decoding=\"async\" width=\"709\" height=\"281\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/Add-to-Prefilled-Message.webp\" alt=\"\" class=\"wp-image-6935\" style=\"width:613px;height:auto\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/Add-to-Prefilled-Message.webp 709w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/Add-to-Prefilled-Message-300x119.webp 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>When enabled, the visitor\u2019s form details (like Name, Email, or Query entered in the Greeting Form) will automatically be added to the Pre-Filled Message sent to WhatsApp.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-prefilled-mockup-1-1024x683.webp\" alt=\"\" class=\"wp-image-6937\" style=\"width:650px;height:auto\" srcset=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-prefilled-mockup-1-1024x683.webp 1024w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-prefilled-mockup-1-300x200.webp 300w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-prefilled-mockup-1-768x512.webp 768w, https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-content\/uploads\/2025\/09\/form-prefilled-mockup-1.webp 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Benefits of adding Greeting Form data:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It reduces drop-offs because visitors don\u2019t have to type the same info twice.<strong><br><\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We instantly receive the visitor\u2019s details along with their message in WhatsApp \u2014 no need to ask for them again.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>We can respond faster and more personally.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Prefilled Message\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/D5ESCMG0HJM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity wp-embed-aspect-16-9 wp-has-aspect-ratio\"\/>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\">Want to grab your website visitors attention right away? Use a Call to Action to invite users to chat.<br><\/p>\n\n\n\n<p class=\"wp-embed-aspect-16-9 wp-has-aspect-ratio\"><a href=\"https:\/\/holithemes.com\/plugins\/click-to-chat\/call-to-action\/\">Call to Action Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Pre-Filled message is a&nbsp;text that appears automatically&nbsp;in the WhatsApp chat Window when the page visitor clicks on the WhatsApp button\/Image.&nbsp; To add the Prefilled Message Navigate to Click to Chat and add Pre-filled Message We&nbsp;can add multiple lines in the Pre-Filled Message along with the variables.&nbsp; Along with the text,&nbsp;we&nbsp;can add&nbsp;variables&nbsp;like&nbsp;{URL},&nbsp;{site}&nbsp;{title}&nbsp; Example:&nbsp;&nbsp; This Pre-Filled [&hellip;]<\/p>\n","protected":false},"featured_media":0,"parent":0,"menu_order":0,"template":"","meta":{"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":"","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":"","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":""}},"_htd2_assets":[]},"class_list":["post-6903","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/docs\/6903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/types\/docs"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/click-to-chat\/wp-json\/wp\/v2\/media?parent=6903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}