Increase Customer Engagement with Click-to-Text

Mapping out how to increase customer engagement with click to text
November 29, 2022
Written by
Reviewed by
Paul Kamp
Twilion

Are you still wondering about the power of text? According to Gartner, SMS open and response rates are as high as 98% and 45%, respectively — in contrast to corresponding figures of 20% and 6% for email. And according to Statista, Mobile browsing accounts for about 60% of all website traffic, and continues to grow. And further, according to explodingtopics.com, there are approximately 4.32 billion active mobile internet users, and 42% ordered a product using their smartphones.

For these reasons (and more!), using a specially designed link or button on your mobile webpage or QR codes at your store will help you improve your customer engagement. How’s that?

  1. Speed: Quickly and seamlessly opt-in your users with just a click.
  2. Accuracy: You don’t need to worry about your users typing in the wrong phone numbers or keywords.
  3. Tracking: You can also track based on keywords where your customers are coming from.

In this blog post, you will see how to create a QR code or click-to-text link or button for your mobile website or marketing emails. We will reduce friction, and auto-fill it with your To: number and SMS body text to improve response rates.

Then, we will show you how to use Twilio Studio to respond automatically to SMS requests. This helps, for example, you respond with a different promo code per store.

Finally, we will show you how to enable your workforce to respond to requests on your customer’s desired channel. For example, when someone sends a message with “Call” in the message body, this message will be routed by Twilio Studio to Twilio Flex (Twilio’s flexible cloud contact center), where you will be able to call users back.

Developing a click-to-text solution with Twilio

Imagine mobile product web pages with a simple click-to-text link that produces an Opt-In embedded message like: “Yes, please keep me updated about …”, or “Please sign up for coupons. Text BUYMORE and get 10% off your order”.

Click-to-Text teaser with Twilio

At a store, well placed visuals with QR codes that allow click-to-text can provide a nice thank you coupon for customers visiting the store:

Floor display with click-to-text option

One of the advantages of this approach is that you can obtain customer Opt-In on the spot, and engage with your customers for additional marketing promotions later via text.

Another important use case is for text-to-call, to show a button to request a call from support or help from an expert. For example, a “Request a call from a designer” button that will create a pre-populated message with the correct To: number and a message “Need a fashion designer. Call”. This message will be routed to the company’s call center, and a fashion designer can accept the request and call the customer.  

 

Paging a fashion designer with click-to-text

You can see how click-to-text would be powerful for your company. Here’s the architecture diagram for what we’ll be building today:

Architecture diagram for Twilio click-to-text solution

We’ll generate a QR code that customers can scan, then use a variety of Twilio products to route requests to agents on a Twilio Flex instance. From there, they’ll help the customer with what they need.

Let’s get started!

Prerequisites

To get started you will need:

Set up your Twilio Flex account

Go to twilio.com and sign up for a free account (or log in to your existing account).

In order to use Twilio's Flex programmable contact center, we will need to create a new Flex-specific account. Check this guide and follow the steps below:

  1. Access the Flex Overview page in your Twilio Console.
  2. Click Create my Flex Account.
Create a Flex Account button
  • Enter the desired account name, and then click Verify.
  • Verify an email address and phone number to continue.

    Note: We will test sending a text reply and an outbound call later on, and Trial accounts can only send messages or place calls to the number you verified in this step.

  • Please wait while your new hosted Flex instance is being built. When ready, you will automatically be loaded into Flex.
  •  

Once the project is up and running, a Twilio number will be automatically provisioned for you. Take note of this number as we will use it in our next step.

Go to Phone Numbers - Manage - Active numbers:

Managing Active Numbers

To enable a simple dialpad on the Agent Flex UI to make outbound calls, we need to go to Flex - Manage - Voice, then check the Enabled checkbox under Enable Dialpad. Choose the Caller ID as your Twilio Number, the Task Queue as “Everyone”, TaskRouter Workflow as “Assign to Anyone” and update the Country with “United States of America”:

Setting up Voice in Flex

Hit Save at the bottom of the page.

Log into the Flex UI. Go to Flex - Overview, then select Launch Flex.

Launch Flex button in the Twilio Console

For this simple test, select Login with Twilio:

Test a Flex instance by logging in with a Twilio Admin account

Feel free to explore Flex and its huge amount of features. For our simple test, go to the Agent view, and change your Status to “Available”:

Set yourself to "Available" in Flex

Perform a quick test. Call or Message your Twilio Number (from the number you used to Verify your Flex account) and you will see the requests being routed to your agent.

Incoming conversations in Flex

Modify our Studio Messaging Flow for our click-to-text use case

Go to Studio - Flows - Messaging Flow. Click on Messaging Flow:

Studio flows listed

You should see a pre-provisioned Studio Flow like this:

Pre-provisioned Studio Flow

For our use case, we will manually modify this flow for our 4 use cases:

  1. Customer visits a mobile website, clicks on a click-to-text link, and requests a coupon (and opts in for a SMS Marketing Campaign)
  2. Customer is at the Store, scans a QR code that generates a text message with the specific store, and requests a gift coupon (and we use that information to track Store success)
  3. Customer visits a mobile website, clicking on a Request a call from … button that generates a text message with the request (and we use that information to route the request to an agent or specialist, for example, a fashion designer). 
  4. Customer visits a mobile website, clicking on a Request a chat from … button that generates a text message with the request (and we use that information to route the request to an agent or specialist, for example, a fashion designer).

If you are new to Studio, check the Get Started with Twilio Studio first.

Then follow these steps:

  1. Delete the Flex widget SendMessageToAgent connected to the Trigger “Incoming Message”. We will use Conversations instead.
  2. Remove a transition from Trigger “Incoming Conversation” to the Flex widget.
Conversations Widget in Studio
  • Add a Split Based On …. Widget:
Add a split-based-on widget
  • Connect it to the Trigger Incoming Conversation, name it check-use-case (or a name you see fit) and configure the VARIABLE TO TEST as trigger.conversation.Body, then hit Save.
Adding a transition in Studio
  • Select Transitions, then NEW CONDITION +, then from the pull down, select Contains, then type “BUYMORE”, then click on Set condition.
Set condition and using 'Contains' in a Studio widget
  • Select NEW CONDITION +, then from the pull down, select Contains, then type “AB123”, then click on Set condition.
  • Select NEW CONDITION +, then from the pull down, select Contains, then Call, then click on Set condition.
  • Select NEW CONDITION +, then from the pull down, select Contains, then Text, then click on Set condition.
  • Click Save.
Save button in the Studio canvas
  • Add a Send Message Widget. Name it help, and on the MESSAGE BODY, enter: “Please text "Call" to request an agent to call you or "Text" to request an agent to message you back.” then hit Save.
Set the message body in the Send Message widget
  • Add a Send Message Widget. Name it Coupon, and on the MESSAGE BODY, enter: “Thank you for Opt In to our Marketing Campaign. Here is your gift coupon: 10%COUPON.” then hit Save.
Add a coupon Send Message widget
  • Add a Send Message Widget. Name it “store-AB123-gift”, and for the MESSAGE BODY, enter: “Thank you for visiting us today. Here is your gift coupon: 10%GIFT.” then hit Save.
Add a Gift Code Send Message widget
  • Connect the Split for No Condition Matches to help, BUYMORE to Coupon, AB123 to store-AB123-gift, and Call and Text to SendConversationsFlex, then hit Publish:
Connect the 'No Condition Matches' Widget

 

 

 

 

 

Set up your mobile webpage

Use this tool to generate click-to-text links, buttons, and QR codes for the tutorial (you’ll need to swap it out for production):

https://tinyurl.com/SESELL

It will take you to our click-to-text tool:

Our tutorial click-to-text tool

 

When you build this in production, use mechanisms to prevent abusive usage or fraud, such as limiting the amount of requests per device or using Captchas to detect bots prior to providing the link.

On your mobile webpage, use tools to determine if you are dealing with a mobile device or not, and hide the link/button accordingly.  

Here is one example of a HTML link names Coupon that pops up the Messaging app and pre-populate the To: number to (123)456-7890 and the Body with BUYMORE:

<a href="sms:1234567890?body=BUYMORE">
  Coupon
</a>

Here is the same example for a button:

<button onclick="window.location.href='sms:1234567890?body=BUYMORE';">
  Coupon
</button>

Here is the same example for a QR code:

An example QR code

Test it out

Let's test the first 2 use cases from a mobile phone. Again, use the phone number you used to Verify your Flex Account.

Trial accounts can only send messages or place calls to the number you verified on this step. You can upgrade your account following this guide to be able to send and call any number.

Place this link on your mobile web browser and test:

https://tinyurl.com/SESELL

Enter your Flex Phone number, then test the first use case. On the message, type “BUYMORE”.

Example QR code to text workflow

To test the second use case, we will need a computer to generate the QR code to be read by your mobile device. Use a computer's web browser, add your Flex number, and type “At Store 123, I want the gift coupon. Promo code AB123” to generate the QR code. Scan the QR code with your phone, select Click to Call. A new message will be generated. Hit Send.

Click-to-text to QR to text message example

Test the third use case, go back to the mobile device and the mobile browser tool. Type “Need assistance with a new account. Call”, then use the button to generate the automated message. Hit Send. The request will be sent to Flex. Accept the request:

Accept a summoning request in Flex

In Flex, you can see the customer request for a Call. Use the dialpad and type the customer’s number. A call is received on the customer’s mobile phone as requested.

Call back after a customer request

Success – you're now ready to personalize your customer communications – and we can’t wait to see what you build!

Al Kiramoto is a Solutions Architect at Twilio. He lives in Dallas - TX and enjoys working with customers and solving business problems - besides a good barbecue and TexMex food. He can be reached at akiramoto [at] twilio.com

Phil Bredeson is a Solutions Architect at Twilio. He helps Twilio customers design scalable and performant solution architectures.

Natalie Huynh is a Solutions Engineer at Twilio. She is always looking for new ways to improve the customer experience through digital communication. She can be reached at nhuynh [at] twilio.com