Andrew Prokop
Andrew Prokop has been heavily involved in the world of communications since the early 1980s. He holds five United States...
Read Full Bio >>

Andrew Prokop | August 22, 2017 |


Enhancing Customer Experience with Natural Language Processing

Enhancing Customer Experience with Natural Language Processing Processing language into actionable components is the future of communication.

Processing language into actionable components is the future of communication.

If you talk to a man in a language he understands, that goes to his head. If you talk to him in his language, that goes to his heart.
-- Nelson Mandela

I would venture to guess that most people had their first encounter with natural language processing (NLP) when Apple added Siri to the iPhone. Starting with the iPhone 4S, you could ask "her" simple questions such as "Who was the 12th president of the United States?" (Zachary Taylor) and "Will you marry me?" (We hardly know one another). Personally, I use Siri on a near daily basis for getting me to where I need to go and finding the best Indian, Thai, or Mediterranean restaurant once I arrive there.

Of course, NLP isn't limited to iPhones, today. You can now talk to your Android devices, and contact centers are increasingly adding automated "Tell me what you are calling about" functionality. It's not out of the realm to envision a world where typing becomes as old fashioned as rotary telephones and stick shifts.

The Basics of Natural Language Processing
To understand NLP, it's important to know what's going on underneath the covers. While a detailed look at NLP is beyond the scope of this article, there are a few simple concepts that should supply most people with enough knowledge to consider themselves dangerous.

First, there is the intent. As it implies, intent is the intention conveyed by the user. For instance, "weather" is the intent of the question, "Will it rain today?"

You can classify intents into two groups. Casual intents are like small talk. Greetings such as "hello" and "goodbye" are casual intents. If I say "Hi" to a text bot, an appropriate response might be "What can I do for you today?" The same can be said for affirmative and negative responses -- "Yes," "Thank you," and "Not today" fall into the casual intent category.

The second group, business intents, correspond directly to the focus of the statement or conversation. "When will my package arrive?" would direct the NLP computer to return a date or send a tracking number.

The next big concept of NLP is entities. An entity is the metadata of an intent.

Like intents, entities come in multiple flavors. You can think of a nominal entity as a noun. For example, car is a nominal entity. So are city, book, movie, and person.

A named entity is more like a proper noun. Using my nominal entities above as examples, their named entity counterparts might be Chicago, "The Great Gatsby," "Love Actually," and, of course, "Andrew Prokop."

Returning to my "Will it rain today?" question, if weather is the intent, rain, snow, and hail are valid entities.

Composite entities consist of a number of component entities. Size, color, brand, and category could be the component entities for a product details composite entity.

Teach Me
Once you've designed your intents and entities, the next step is to train your system. This requires you to ask a series of questions that the NLP systems might encounter. For a weather bot, you might enter the following:

"Will it be sunny today?"

"What are the chances of it raining today?"

"Is there snow in the forecast?"

"Do I need to bring an umbrella to work?"

These questions train the system to the many ways that a user might ask for the same information. A simple rule for training is that you can never provide the system with too much data. Additionally, training is not a once-and-forget operation. A well behaved NLP system must be trained and retrained throughout its entire lifecycle.

NLP for the Masses
I learn best by doing, so I was overjoyed when I was told about Facebook's NLP engine. is a free cloud service that provides developers with an easy-to-use console to create intents and entities, and then train them into an "application." I put application in quotes because a application isn't an application in the traditional sense. It's more like an intelligent database of information that can be utilized by a "real" application to turn spoken and written languages into their actionable components.

Since is a cloud service, that means you would use Web services to interact with it. While exposes APIs to manage intents and entities, more importantly to the end-user application are the APIs that pass human speech to the service for processing.


For educational purposes, I created a logistics "application" and then wrote Python code to ask questions about product delivery. This code can be easily placed inside a text bot to interact with a human being who is interested in products that he or she has purchased.

Getting Geeky
Do you remember diagraming sentences in elementary school? As you might recall, you visualized the parts of a sentence by separating the subject from verbs, gerunds, participles, predicate nominatives, etc. Once diagramed, you can literally see the sentence. This allows you to be certain that your sentence is saying exactly what you want it to say.

Image from Wikipedia isn't all that different from sentence diagraming. In my application, I send it sentences and it returns a JSON representation of those sentences parsed into its actionable components.

For instance, if I sent "Send my package," it returns:*


* Note: I am leaving out most of the data that returns to keep this simple to read. knows that this sentence has something to do with delivery, but not much else. Of course, I didn't give it much information to work with. So, let's upgrade the sentence to "Send my package to 708 Lincoln Avenue, Saint Paul, Minnesota." With this new data, returns:


Notice how has pulled out the address portion.

Let's take this even deeper with "Send my package to 708 Lincoln Avenue, Saint Paul, Minnesota tomorrow morning."

I still receive:


But I also receive:


Not only do I still receive location, but I now have a date and time for that shipment. Also, notice that feels pretty confident that the data it is providing is correct. This parsed data can now be fed directly into an order entry system without any human interaction, reducing and even eliminating the risk of human error.

While supports text and speech (my Python application supports both), I've found that it parses text with a high degree of accuracy, but speech is hit or miss. While mostly decent, there were quite a few addresses it never understood. For instance, Arapaho Road always turned into something like "Are wrapping hope roar road."

Mischief Managed
It's important to realize that the goal of NLP is not to take action on the data it parses. That job is left to the next piece (or pieces) of software down the line. In the case of my application, it asks to parse the data, but it relies on other services (e.g. Open Weather Map) to answer the user's question. However, knowing that the user wants to know about "rain" in "Saint Paul, Minnesota" "next Thursday" makes an application's job simple.

So, where is this technology useful? A better question might be, "Where isn't it useful?" From help desks, to contact centers, to text bots, to whatever, processing language into actionable components is the future of communication. In fact, I will venture to say that within the next several years, it will be nearly impossible to know "who" you are talking to when you make that customer service call or chat. For better or worse, machines will become indistinguishable from humans.

Follow Andrew Prokop on Twitter and LinkedIn!
Andrew Prokop on LinkedIn


October 24, 2018

With disparate workplaces and ever-expanding volumes of information to manage, the challenges for collaborating effectively are only intensifying. Many critical applications are not integrated, and

October 10, 2018

Businesses are growing across international borders quicker than ever, but scaling operations to follow suit can be a harder, longer process.

This webinar focuses on scaling your next-generat

September 26, 2018

Join Kevin Kieller, Microsoft UC&C expert, along with Ribbon Communications and Polycom, for an update on Microsoft Ignite, and a focus on critical things you need to know about your voice deployme

March 12, 2018
An effective E-911 implementation doesn't just happen; it takes a solid strategy. Tune in for tips from IT expert Irwin Lazar, of Nemertes Research.
March 9, 2018
IT consultant Steve Leaden lays out the whys and how-tos of getting the green light for your convergence strategy.
March 7, 2018
In advance of his speech tech tutorial at EC18, communications analyst Jon Arnold explores what voice means in a post-PBX world.
February 28, 2018
Voice engagement isn't about a simple phone call any longer, but rather a conversational experience that crosses from one channel to the next, as Daniel Hong, a VP and research director with Forrester....
February 16, 2018
What trends and technologies should you be up on for your contact center? Sheila McGee-Smith, Contact Center & Customer Experience track chair for Enterprise Connect 2018, gives us the lowdown.
February 9, 2018
Melanie Turek, VP of connected work research at Frost & Sullivan, walks us through key components -- and sticking points -- of customer-oriented digital transformation projects.
February 2, 2018
UC consultant Marty Parker has crunched lots of numbers evaluating UC options; tune in for what he's learned and tips for your own analysis.
January 26, 2018
Don't miss out on the fun! Organizer Alan Quayle shares details of his pre-Enterprise Connect hackathon, TADHack-mini '18, showcasing programmable communications.
December 20, 2017
Kevin Kieller, partner with enableUC, provides advice on how to move forward with your Skype for Business and Teams deployments.
December 20, 2017
Zeus Kerravala, principal analyst with ZK Research, shares his perspective on artificial intelligence and the future of team collaboration.
December 20, 2017
Delanda Coleman, Microsoft senior marketing manager, explains the Teams vision and shares use case examples.
November 30, 2017
With a ruling on the FCC's proposed order to dismantle the Open Internet Order expected this month, communications technology attorney Martha Buyer walks us through what's at stake.
October 23, 2017
Wondering which Office 365 collaboration tool to use when? Get quick pointers from CBT Nuggets instructor Simona Millham.
September 22, 2017
In this podcast, we explore the future of work with Robert Brown, AVP of the Cognizant Center for the Future of Work, who helps us answer the question, "What do we do when machines do everything?"
September 8, 2017
Greg Collins, a technology analyst and strategist with Exact Ventures, delivers a status report on 5G implementation plans and tells enterprises why they shouldn't wait to move ahead on potential use ....
August 25, 2017
Find out what business considerations are driving the SIP trunking market today, and learn a bit about how satisfied enterprises are with their providers. We talk with John Malone, president of The Ea....
August 16, 2017
World Vision U.S. is finding lots of goodness in RingCentral's cloud communications service, but as Randy Boyd, infrastructure architect at the global humanitarian nonprofit, tells us, he and his team....
August 11, 2017
Alicia Gee, director of unified communications at Sutter Physician Services, oversees the technical team supporting a 1,000-agent contact center running on Genesys PureConnect. She catches us up on th....
August 4, 2017
Andrew Prokop, communications evangelist with Arrow Systems Integration, has lately been working on integrating enterprise communications into Internet of Things ecosystems. He shares examples and off....
July 27, 2017
Industry watcher Elka Popova, a Frost & Sullivan program director, shares her perspective on this acquisition, discussing Mitel's market positioning, why the move makes sense, and more.
July 14, 2017
Lantre Barr, founder and CEO of Blacc Spot Media, urges any enterprise that's been on the fence about integrating real-time communications into business workflows to jump off and get started. Tune and....
June 28, 2017
Communications expert Tsahi Levent-Levi, author of the popular blog, keeps a running tally and comprehensive overview of communications platform-as-a-service offerings in his "Choosing a W....
June 9, 2017
If you think telecom expense management applies to nothing more than business phone lines, think again. Hyoun Park, founder and principal investigator with technology advisory Amalgam Insights, tells ....
June 2, 2017
Enterprises strategizing on mobility today, including for internal collaboration, don't have the luxury of learning as they go. Tony Rizzo, enterprise mobility specialist with Blue Hill Research, expl....
May 24, 2017
Mark Winther, head of IDC's global telecom consulting practice, gives us his take on how CPaaS providers evolve beyond the basic building blocks and address maturing enterprise needs.
May 18, 2017
Diane Myers, senior research director at IHS Markit, walks us through her 2017 UC-as-a-service report... and shares what might be to come in 2018.
April 28, 2017
Change isn't easy, but it is necessary. Tune in for advice and perspective from Zeus Kerravala, co-author of a "Digital Transformation for Dummies" special edition.
April 20, 2017
Robin Gareiss, president of Nemertes Research, shares insight gleaned from the firm's 12th annual UCC Total Cost of Operations study.
March 23, 2017
Tim Banting, of Current Analysis, gives us a peek into what the next three years will bring in advance of his Enterprise Connect session exploring the question: Will there be a new model for enterpris....
March 15, 2017
Andrew Prokop, communications evangelist with Arrow Systems Integration, discusses the evolving role of the all-important session border controller.
March 9, 2017
Organizer Alan Quayle gives us the lowdown on programmable communications and all you need to know about participating in this pre-Enterprise Connect hackathon.
March 3, 2017
From protecting against new vulnerabilities to keeping security assessments up to date, security consultant Mark Collier shares tips on how best to protect your UC systems.
February 24, 2017
UC analyst Blair Pleasant sorts through the myriad cloud architectural models underlying UCaaS and CCaaS offerings, and explains why knowing the differences matter.
February 17, 2017
From the most basics of basics to the hidden gotchas, UC consultant Melissa Swartz helps demystify the complex world of SIP trunking.
February 7, 2017
UC&C consultant Kevin Kieller, a partner at enableUC, shares pointers for making the right architectural choices for your Skype for Business deployment.
February 1, 2017
Elka Popova, a Frost & Sullivan program director, shares a status report on the UCaaS market today and offers her perspective on what large enterprises need before committing to UC in the cloud.
January 26, 2017
Andrew Davis, co-founder of Wainhouse Research and chair of the Video track at Enterprise Connect 2017, sorts through the myriad cloud video service options and shares how to tell if your choice is en....
January 23, 2017
Sheila McGee-Smith, Contact Center/Customer Experience track chair for Enterprise Connect 2017, tells us what we need to know about the role cloud software is playing in contact centers today.