Opening WhatsApp conversations from your CRM

With a WhatsApp link in your CRM, your team gets from a customer record to the WhatsApp conversation with that customer in one click. An administrator sets the link up once. After that, an operator clicks it next to a customer's mobile number, and the Message Center opens the right conversation. If a message template is needed, the template dialog opens with the template and its texts already filled in. The link never sends a message by itself: the operator always checks the message and clicks "Send".

How does it work?

  1. An operator clicks the link in your CRM. The link contains the customer's mobile number and, optionally, the WhatsApp channel, a message template and the texts for it.
  1. The Message Center opens and finds the contact with that mobile number.
  1. If the contact has an active WhatsApp conversation, it opens. If not, a new conversation is started.
  1. If the 24-hour service window is closed, or the conversation is new, the template dialog opens with the template from the link selected and its placeholders filled in.
  1. The operator checks the message and clicks "Send".

How do I build the link?

Every link starts with the address of your Message Center and the contact's mobile number:
`https://app.lime-connect.com/#/whatsapp?phone=%2B4917612345678`
`%2B` is the `+` of `+4917612345678`. Every value in the link must be URL-encoded: write a space as `%20`, a `+` as `%2B`, a comma as `%2C` and an `&` as `%26`. Many CRMs encode field values for you when they build a link.
Add more parameters with `&`:
  • phone (required): the contact's mobile number, ideally with the country code. Spaces, brackets and dashes are ignored.
  • channel: the ID of the WhatsApp channel to use. In the Dashboard, go to "Channels > WhatsApp" and open the channel. The ID is the number in the address bar after `details/`, for example `123` in `.../channel/whatsapp/details/123/edit`.
  • template: the unique name of the WhatsApp message template to preselect. The name shown in your template list is a display name and does not work in the link. To find the unique name, open the channel under "Channels > WhatsApp", go to the "Templates" tab, click on the three dots next to the template, choose "More info" and copy the "Unique template name". Upper and lower case must match.
  • header: the text for the placeholder in the template's text header. Image, video and document headers are not filled in.
  • body1, body2, and so on: the texts for the placeholders `{{1}}`, `{{2}}`, and so on in the template's body.
  • button: the text for the placeholder in the template's URL button.
Texts are put into the template on one line: line breaks in a text become spaces.
The "More info" window of the template "appointment update" with its "Unique template name"
The "More info" window of the template "appointment update" with its "Unique template name"
Example
The template "appointment update" has the unique name `appointment_update_jjilnwtgvhh0` and the text "Hi {{1}}, your appointment is confirmed for {{2}}. Reply to this message if you have any questions." To send it to Alex with the appointment "Monday, 10:00" on channel 123, the link is:
`https://app.lime-connect.com/#/whatsapp?phone=%2B4917612345678&channel=123&template=appointment_update_jjilnwtgvhh0&body1=Alex&body2=Monday%2C%2010%3A00`
In your CRM, replace the number, the name and the date with the fields of the customer record, so each contact gets their own link. The link contains customer data such as the phone number and the template texts, so it is kept in the browser history of everyone who clicks it.

Which permissions do operators need?

An administrator sets these in the Dashboard under "Team > Roles", under "Contact permissions":
  • Start conversations: needed to start a new WhatsApp conversation from the link. Without it, the page shows "Missing permissions" when no active conversation exists.
  • Start conversations on all channels: needed to start conversations on WhatsApp channels that are not connected to the operator's group.
  • Contact overview: needed to find contacts that have no WhatsApp conversation yet. Without it, the link only finds contacts with a WhatsApp conversation the operator can see.

What happens when I open the link?

The Message Center opens the page "Open WhatsApp conversation" and looks up the contact with this mobile number. What happens next depends on the contact's WhatsApp conversations. Active means the status New, Open or Pending; ended conversations are skipped. If the link names a channel, only a conversation on that channel counts.
  • Active conversation, 24-hour service window open: the conversation opens and you can write right away. The template and its texts from the link are not used.
  • Active conversation, 24-hour service window closed: the conversation opens with the template dialog on top, so you can send a message template to resume it.
  • No active conversation: Lime Connect starts a new conversation and opens the template dialog.
For a new conversation, Lime Connect uses the channel from the link if you may start conversations on it. If the link names no channel and only one WhatsApp channel is available to you, it uses that one. Otherwise, the page asks you to choose a channel. Click on the channel to start the conversation on.
The "Open WhatsApp conversation" page asking which WhatsApp channel to start the conversation on
The "Open WhatsApp conversation" page asking which WhatsApp channel to start the conversation on

How is the message template filled in?

When the template dialog opens and the link names a template, that template is already selected. The texts from `header`, `body1`, `body2` and `button` are filled into its placeholders, and the preview on the right shows the message as the contact will receive it. A placeholder the link leaves out or leaves empty keeps the value the dialog would show without the link, or stays empty for you to fill in. Check the preview, change any text you want, and click on "Send".
The template dialog with "appointment update" selected and its placeholders filled with "Alex" and "Monday, 10:00" from the link
The template dialog with "appointment update" selected and its placeholders filled with "Alex" and "Monday, 10:00" from the link
If the template from the link does not exist on the channel, is not approved, or is not visible to your operator group, the dialog says "The template “appointment_update_jjilnwtgvhh0” from the link is not available. Choose another template." The texts from the link are then not used. Choose another template and fill in its placeholders yourself. If the template could not be checked, for example because of a network error, the dialog says "The template “appointment_update_jjilnwtgvhh0” from the link could not be loaded. Choose a template."

What if I am not logged in?

Log in as usual, with your password or with single sign-on. After the login, the Message Center opens the link you clicked, not the start page.

What if no contact or several contacts match?

Lime Connect looks for contacts whose mobile number ends with the number from the link. If several contacts have exactly that number, it takes the one with the most recent WhatsApp message, preferring a conversation on the channel from the link.
The "Open WhatsApp conversation" page saying that no contact with the mobile number was found
The "Open WhatsApp conversation" page saying that no contact with the mobile number was found
  • No contact found: the page says "No contact with the mobile number <number> was found. The contact may not have been created or synced yet." Check how the number is saved on the contact first. A contact saved without the country code, for example `0176 12345678`, is not found by a link with the country code. If the contact really is missing, create it, or wait until your CRM has synced it, and open the link again.
  • Several countries match: a link with the number `017612345678`, without country code, matches both `+49 176 12345678` and `+43 176 12345678`. The page then says "The mobile number <number> matches several contacts with different numbers. Use the number with its country code, or search the contacts." Click on the link "search the contacts" in that message to find the right contact in the contact list.
  • Not a mobile number: if the link has no number, or fewer than 8 digits not counting leading zeros, the page says "This link does not contain a valid mobile number."
  • No channel: if no WhatsApp channel is available to you, the page says "No WhatsApp channel is available to start a conversation."
  • The conversation could not be started: the page shows the reason and the link "Start the conversation manually.", which opens the form to start it yourself.
Save mobile numbers in Lime Connect and in your CRM with their country code. Then the link finds the contact directly.