In the Single Agent layout, the Message From Agent field lets you display a custom introductory message inside the chat bubble. To make this message dynamic, you can insert variables that automatically pull in site details, product data, or user information.
✅ Available Variables #
Global Variables
{siteTitle}
→ Website title{siteEmail}
→ Website email{currentURL}
→ Current page URL{currentTitle}
→ Current page title{siteURL}
→ Main site URL{ip}
→ Visitor’s IP address{date}
→ Current date
WooCommerce Variables (works if used on product pages, wrapped in conditionals)
{productName}
{productSlug}
{productSku}
{productPrice}
{productRegularPrice}
{productSalePrice}
{productStockStatus}
Conditional Blocks
{PRODUCT_START}...{PRODUCT_END}
→ Show content only if WooCommerce product data is available.{NOT_PRODUCT_START}...{NOT_PRODUCT_END}
→ Show content when no WooCommerce product data exists.{LOGGEDIN_START}...{LOGGEDIN_END}
→ Show content only for logged-in users.{NOT_LOGGEDIN_START}...{NOT_LOGGEDIN_END}
→ Show content only for visitors who are not logged in.
📌 Example Message Template #
👋 Hello! Thanks for visiting {siteTitle}.
{PRODUCT_START}I see you’re interested in {productName}. Price: {productPrice}.
Stock: {productStockStatus}{PRODUCT_END}
Click below to start chatting with me on WhatsApp!
Result inside chat bubble (on a product page):
👋 Hello! Thanks for visiting MyShop.
I see you’re interested in Premium Leather Jacket. Price: $149.
Stock: In Stock
Click below to start chatting with me on WhatsApp!
👉 Using variables here ensures your agent greeting feels personal and context-aware, helping users start the conversation with less effort.