Skip to main content

Magic Links: the Opt-In Journey and How to Localize It by Language

Explains what a customer experiences from clicking a magic link to becoming an opted-in WhatsApp subscriber, every message sent along the way, and how to run magic links and consent messages in more than one language.

Written by Coco team

This article walks through what a customer sees from the moment they tap a Magic Link to the moment they are an opted-in WhatsApp subscriber you can reach with Flows and campaigns (called Icebreakers in your dashboard). It also covers every message sent along the way, how to run Magic Links in more than one language, and what syncs to Klaviyo.

What happens when a customer clicks a magic link?

The customer taps the link, WhatsApp opens with your keyword already typed, they send it, CoCo asks them to confirm, and they reply "Yes" to opt in. A Magic Link is a wa.me URL that carries a pre-written keyword, so on mobile the whole journey is one tap and two sends. On desktop the link still works, but it needs the WhatsApp desktop app.

  1. The customer taps the Magic Link on your pop-up, email, or ad.

  2. WhatsApp opens with your keyword pre-filled, and they send it.

  3. CoCo replies asking them to confirm their consent.

  4. They reply "Yes" and are opted in.

This is the list-growth Magic Link. It is not the expiring link you use to log in to the CoCo dashboard, which is a different feature with the same name.

Does the customer have to reply "Yes", or is clicking the link enough?

They have to reply. Sending the keyword is the first opt-in step, and the "Yes" reply is the second. That reply is the consent record CoCo stores. A customer who sends the keyword and never confirms is not a subscriber and cannot be included in campaigns.

What messages does a subscriber receive as they opt in?

A Magic Link subscriber receives two messages from you: a consent request, then the reply message you configured. The full sequence is:

  1. The customer sends the pre-filled keyword.

  2. CoCo sends the consent request: "To continue on WhatsApp and receive messages from us, please reply YES to confirm your consent to marketing messages."

  3. The customer replies "Yes".

  4. CoCo sends the reply message you set up for that Magic Link, including a discount code if you added one.

The consent request is a plain WhatsApp session message sent by the AI. It is not the approved WhatsApp template used for checkout opt-in. Anything the subscriber receives after your reply message comes from your Welcome flow, which you build separately.

Is there an unsubscribe notice in these messages?

No, not automatically. The consent request and your reply message are both plain text, and CoCo does not add an unsubscribe or STOP footer to either one. The STOP footer that exists in CoCo appears only on the checkout double opt-in template, which is a different flow from Magic Links.

If you want a STOP notice on your Magic Link reply, write it into the reply message yourself, for example: "You can reply STOP at any time to stop receiving messages from us."

Can I add ?text=YES to the link so customers do not have to confirm?

No. The confirmation reply cannot be pre-filled or skipped today. The customer sends the keyword, then sends a separate "Yes". Pre-filling YES in the link would collapse both steps into one message, and there would be no separate consent record.

Where do I create and edit magic links?

Create and edit them on the Magic Links page at dashboard.my-coco.ai/magic-links. You can create as many as you want. Each Magic Link has:

  • Name: for your own internal tracking.

  • Keyword: the text the customer sends. Matching ignores upper and lower case.

  • Reply message: the message CoCo sends after the customer confirms.

  • Discount code: optional.

  • An on/off toggle.

The link you paste into a pop-up or email is a wa.me URL with your WhatsApp number and the keyword URL-encoded after ?text=. For a keyword of Summer Sale it looks like https://wa.me/<your WhatsApp number>?text=Summer%20Sale.

How do I create a magic link for a Klaviyo Forms pop-up?

Use the Magic Link URL as the CTA button on your Klaviyo pop-up. Nothing extra is needed on the Klaviyo side. Give the pop-up its own Magic Link with its own keyword, so you can see how many subscribers that placement produced separately from your email footer or ads.

How do I set up a separate magic link for a sale or promotion?

Create a second Magic Link with its own keyword, its own reply copy, and its own discount code. Turn it on for the length of the promotion and off again afterwards. Keep your evergreen link running the whole time: the two do not conflict because each one matches a different keyword.

How do I add a discount code to the reply?

Pick a code from the Discount code dropdown in the Magic Link editor. A {code} placeholder appears in your reply message, and that is where the customer's code is inserted. Dynamic codes generate a unique single-use code for each subscriber at send time and flow through to Shopify automatically.

Someone who is already subscribed does not get a fresh code by clicking the link again.

How do I run magic links in more than one language?

Create one Magic Link per language. Each language gets its own keyword and its own reply message written in that language, and you point each pop-up or email at the link that matches its language, for example the French link on French pop-ups.

There is no per-language field inside a single Magic Link. Each link holds one keyword and one reply message, so your language versions are separate links. Naming them by language, such as "Summer Sale FR" and "Summer Sale EN", keeps the list easy to scan.

What if I only write the reply in English?

CoCo translates it for you. If a subscriber's stored language is not English, CoCo translates the Magic Link reply into that language before sending, keeping your formatting and any discount code.

This translation runs whenever the stored language is not English, even when your reply is already written in that language, such as a French reply sent through your French link to a French-speaking contact. That means the message that goes out may be re-worded by auto-translation rather than sent exactly as you wrote it. Review the sent message in each language during testing.

How do I test a magic link opt-in in another language?

Testing opt-in and opt-out messages across languages, including the Try out your Coco test chat on the AI Settings and Data page, is covered in How to test flows, magic links, and the AI before going live.

Why did the consent message arrive in the wrong language?

On the Magic Link path, the consent request is always in English. It is a fixed message the AI sends, and it does not change with the subscriber's language, so a subscriber whose stored language is French or German still sees the consent request in English. This is expected behavior, not a bug.

The checkout double opt-in is a separate flow with its own language handling, covered in How CoCo chooses which language each contact receives.

What word should the customer reply in their own language?

Test it before launch rather than assuming a translated word works. The Magic Link consent request is English text that asks the customer to reply YES, and it gives no instruction to reply in another language. The checkout consent request is translated; that path is covered in How CoCo chooses which language each contact receives.

For every language you support, run a test opt-in, send the confirmation reply the way your customers would, and confirm on your own account that CoCo records it as consent.

Do magic link signups sync to Klaviyo?

Yes. CoCo writes each contact's WhatsApp opt-in status to their Klaviyo profile as the cocoWhatsAppStatus custom property, and profile and event data sync in both directions, so you can build Klaviyo segments from WhatsApp subscription and engagement. The two systems match contacts by phone number, not email.

Discount codes are the exception. A code CoCo generates for a Magic Link reply lives in Shopify and is not written back to Klaviyo.

Does the subscriber's language sync to Klaviyo?

No. CoCo sets a contact's language from their phone country code and from the language they use with the AI, but it does not write language to the Klaviyo profile. The only properties CoCo exports today are cocoWhatsAppStatus and cocoWhatsAppLogId.

A pop-up also cannot pass a language value into CoCo through a Magic Link. If you need language segments in Klaviyo, you cannot rely on a synced CoCo property for them.

Related articles

Did this answer your question?