---
title: "Generate and use Magic Links (QR codes)"
description: "Create a magic link and its QR code to open a WhatsApp conversation with a pre-filled message that starts an automation."
url: https://help.getkanal.com/en/articles/40-generate-and-use-magic-links-qr-codes
collection: "Integrations"
updated: 2026-11-09
language: en
alternates: [fr-fr]
---

# Generate and use Magic Links (QR codes)

Create a magic link and its QR code to open a WhatsApp conversation with a pre-filled message that starts an automation.

A **magic link** opens WhatsApp with a message already written. The customer only has to tap Send, and that message can start an automation. Each link has its QR code, to print on your physical materials (parcels, flyers, store).

## How it works: one link, one trigger

1.  **The magic link** contains the message the customer will send you (e.g. "VIP CLUB").
    
2.  **The automation** uses the Inbound message trigger and replies when it recognizes that message (e.g. if the message is "VIP CLUB", send the welcome message).
    

## Step 1: create the reply automation

1.  Go to **Automations** > **Create Automation**.
    
2.  Choose the **Inbound message** trigger.
    
3.  Enter the keyword or phrase (e.g. _I want to join the VIP club_) and choose the matching mode. Exact match is the default. Other modes exist: any text, contains, starts with, ends with, regex. Upper and lower case are ignored by default.
    
4.  Set up the reply messages, save and activate the automation.
    

With exact match, reuse the keyword as is in the magic link. With contains or starts with, the link's message only needs to contain or start with the keyword.

## Step 2: create the magic link

1.  In the sidebar, in the Audience section, click **Magic links**.
    
2.  Click the button to create a magic link.
    
3.  **Name**: give it an internal name so you can find it later (e.g. _Summer packaging QR code_).
    
4.  **Pre-filled message**: enter the message the customer will send. It must trigger your automation (step 1).
    
5.  Confirm to create the link.
    

> **Warning:** The characters ! ? # and emojis are not accepted in the pre-filled message.

Each magic link is tied to one WhatsApp number. If you have several numbers, create a link for each one.

## Step 3: get the link and the QR code

-   **The link (URL)**: copy it for your website buttons, your stories (link sticker) or your social media bios. Only the URL can be copied.
    
-   **The QR code**: download it as a PNG. You can customize its color, background and margin.
    

The link card also shows the automations that the link will trigger.

## Manage your magic links

-   **Active or inactive**: you can deactivate a link. An inactive link no longer redirects to WhatsApp.
    
-   **Click counter**: track the number of clicks on each link.
    
-   **Management**: preview, edit, delete and search your links.
    

### Where to place your QR codes?

-   **On your parcels**: to offer a how-to tutorial or a repeat-purchase promo code.
    
-   **On your flyers or business cards**: to make it easier to reach customer support.
    
-   **In your physical store**: near the checkout counter, to invite customers to join a loyalty program.
    
-   **On your ad creatives**: to start a conversation right after someone sees an ad.
    

## Why use magic links?

The customer does not need to save your number in their contacts. When they scan the code, the conversation opens, the message is already written, and they only have to tap Send.

The customer's message opens a 24-hour conversation window: you can reply with free-form messages, without a template. Since October 1, 2026, these service messages are free up to 1,000 per number per month, then paid. See [How much do WhatsApp conversations cost?](https://help.getkanal.com/en/articles/49-quel-est-le-prix-des-conversations-whatsapp.md).

> **Info:** **Tip:** always test your QR code with your own phone before printing it, and check that the automation fires as expected.
