Skip to content
SocialMate

SocialMate – Messaging & AI Agent · Events and messages

Chat buttons and shortcodes

Buttons that work without a server.

No server needed

Buttons your visitors press to start a WhatsApp chat with you, with the first message already typed. Nothing is sent by your website, and they need no SocialMate server, no key and no paid plan — the button simply opens WhatsApp on the visitor’s phone or computer.

Before you start

  • No server needed The plugin installed. No connection needed.
  • The WhatsApp number visitors should reach, with its country code.
  • WooCommerce for the product and basket buttons; the floating button and [socialmate_chat] work on any site.

Steps

1Switch chat buttons on

Open SocialMate → Website → Chat buttons. While they are off the page says so; press Switch them on.

Website → Chat buttons: the number, and each button’s words.
Website → Chat buttons: the number, and each button’s words.

2Set the number a press opens

Under The number a press opens, type the WhatsApp number with its country code. It can be a different number from the one your messages are sent from. Until there is a usable number here, no button is shown at all.

3Set up the floating chat button

Under Chat button — the button that follows the visitor down every page:

  • Show it — on or off.
  • What it says — left empty it says “Chat with us”.
  • The message it starts them with — left empty they start with a blank message. You can use {site}, {page} and {url}.
  • Which side — Right or Left.
  • Where it appears — Every page, or Only the shop, basket and checkout.
The floating WhatsApp button on the storefront.
The floating WhatsApp button on the storefront.

4Add the shop buttons (WooCommerce)

  • Ask about this product → Show it on product pages. The message can use {product}, {price}, {sku} and {url}; left empty it names the product and links to it. Left unnamed, the button says “Ask about this product”.
  • Order on WhatsApp → Show it on the basket and checkout. The message can use {basket} and {total}; left empty it lists the basket and the total. Left unnamed, the button says “Order on WhatsApp”.

Press Save.

Shortcodes

Put a button anywhere else — in a page, a widget area or a template. Both use the number and words from the Chat buttons screen unless you override them.

  • [socialmate_chat] — a chat button. Optional label="…" for its text and message="…" for the first message.
  • [socialmate_order_button] — an “Order on WhatsApp” button carrying the visitor’s basket (WooCommerce). Optional label="…".
[socialmate_chat label="Talk to us" message="Hello, I have a question about {page}"]
[socialmate_order_button label="Send my order on WhatsApp"]

Good to know

An order started with a button is a conversation, not a WooCommerce order. With SocialMate Pro, the Claude Agent can turn it into one — switch on its shop tools under Tools.

  • The shortcodes only print while chat buttons are switched on and a number is set; otherwise they print nothing.
  • Anything in braces that is not one of the tags above is left exactly as you typed it.
  • Because nothing is sent by your site, chat buttons are not counted against your number’s sending limits.

Next

Your store, on WhatsApp, from your own number.

Install the free plugin, connect it to SocialMate with one token, and choose what should happen for each event. Messages work on every plan; the Claude Agent comes with Pro.

Free forever · no card Download free