How to make a WhatsApp link with a pre-filled message
A pre-filled message saves your customer typing and tells you where they came from. Here’s how the text part of a WhatsApp link works.
The format
https://wa.me/<number>?text=<encoded message>
When someone opens the link, WhatsApp starts a chat with the number and puts the message in the text box. They can edit it, and nothing is sent until they tap send.
The quickest way to get it right is the WhatsApp link generator: type the message normally and it does the encoding.
Encoding the message
Web addresses can’t contain spaces and some symbols, so they’re replaced with codes that start with %. The most common ones:
| Character | Encoded | Character | Encoded |
|---|---|---|---|
| Space | %20 | New line | %0A |
| , | %2C | ? | %3F |
| & | %26 | # | %23 |
| ' | %27 | * | * |
| / | %2F | : | %3A |
The two that cause real problems are & and #. Left unencoded, an & starts a new parameter and # starts a page anchor, so everything after them disappears from your message.
Examples
“Hi, I’d like to book a table” becomes:
https://wa.me/971501234567?text=Hi%2C%20I%E2%80%99d%20like%20to%20book%20a%20table
Two lines, “Order #123” and “Is it ready?”:
https://wa.me/971501234567?text=Order%20%23123%0AIs%20it%20ready%3F
Emoji, bold and other languages
- Emoji and non-Latin scripts such as Arabic, Hindi or Chinese work fine. They’re encoded into longer codes, which is why links with emoji look long.
- Bold, italic and strikethrough use WhatsApp’s symbols:
*bold*,_italic_,~strike~. The stars and underscores can go into the link as they are. Preview them with the text formatter.
Messages without a number
Leave the number out to let people choose who to send your message to:
https://wa.me/?text=Check%20out%20this%20offer%3A%20https%3A%2F%2Fexample.com
This is a handy “Share on WhatsApp” link for articles, offers and invitations.
Writing a good pre-filled message
- Make it about them: “Hi, I’d like a quote for…” rather than “Hello [Business]!”.
- Use it as tracking: a different message per channel (“Hi, I found you on Instagram”) tells you which one brings customers.
- Include a reference for listings and products: “Hi, I’m interested in the 2-bed flat on Park Road (ref 2231)”.
- Keep it short. Very long messages make long links that some apps cut off, and dense QR codes.
Need ideas? Browse the message templates and tap Use in a link.