Deploying AI’s Power with NLP for Smarter Business

Artificial intelligence is the shiny new toy for organizational leaders. CTOs are given a clear directive to “figure out how to use AI in our company,” then wind up running around attempting to force AI into any possible application — or other departments set off on their own to implement AI themselves. All of this leads to disorganized, unregulated, and insecure use of the technology across the organization. Months later, they’re no better off than they were before, and there’s no true benefit from the exercise. They give up on AI as a whole and remain stuck in their ways. 

When used effectively, AI allows organizations to collect varying data and make sense of it in meaningful ways. That begs the question, how can organizations actually use AI to make things like automation, security, and other applications smarter, faster, and better?

Using NLP and neural data models to enable accessibility

There are countless articles harping on the transformative nature of AI. These broad stroke narratives make bold statements about how AI will change everything and transform business as we know it. While such statements are true, they aren’t necessarily helpful from the perspective of the end user. AI is so new and unknown that, from a technology standpoint, specifically for use cases in business, we are merely at the precipice of what AI is capable of. Generative AI, autonomous AI thinking, new reasoning models like OpenAI o1 (Strawberry), and micro models like GPT-4o are constantly evolving to make AI more accessible in the marketplace. 

It’s all exciting, but generally, users don’t care as deeply about the particular amalgamation of technology that makes up a solution, they care that it works. What does AI, and more specifically NLP, enable businesses to do to make revenues stronger, reduce costs, minimize human intervention, and provide data analytics through common chat AI prompts? 

Analytics and reporting

People are used to seeking out information in the form of a question. Chat GPT, Copilot, Siri, Alexa and other voice prompting applications have familiarized users with asking AI questions in the form of a prompt. Now NLP allows AI to interpret a prompt or question in the context of the request. AI’s ability to understand, dissect, and return a result using NLP is one of the biggest leaps thus far in regard to AI’s application to consumer and business automation. 

How can NLP change my business? 

In the example of a business’ procurement process, business intelligence (BI) and reporting tools have historically been the primary mechanism for analytics and research when a problem arises. To date, most organizations need to run month-end or quarterly reports to understand a wide swath of information within their processes, such as what orders were shipped, which invoices have no receiving data, cumulative totals per vendor, or automation rates or approval times by approver. In the present state, a user needs to access their reports user interface (UI), which is embedded in their ERP or a separate browser or desktop UI. Then, a report needs to be built with inputs and outputs defined, which may require a developer, then the output must be formatted to only provide the data they’re seeking out. Depending on the output requirements, they’ll likely need to build both detailed row/column, summation, and matrix reports. At the end of this multistep, heavily involved process, the report is ready to use. 

Today, thanks to NLP, it’s a different story. Using custom prompting applications, like AI Hub in Power Automate against their local database or Microsoft’s Dataverse, users can simply ask the prompt agent a question from within their Teams application and a single or tabular result is returned. 

If a user asked for the cumulative total of invoices processed in 2024, within seconds the prompt would return the total dollar amount for all invoices from 1/1/2024 to the current date. The prompt understands the word “cumulative” to mean an aggregate of the total amount of each invoice. The prompt agent also knows 2024 starts on 1/1/2024 and ends on 12/31/2024. It uses the context of the prompt to generate a holistic response. Without NLP, AI alone would not be able to interpret the question.

Furthermore, when issuing a prompt question such as, “what is the cumulative total of invoices with a ‘pending’ status with an invoice date in September 2024?” NLP and the AI understand that in the context of this question, “status” is a column header name and “pending” is a data value within that column. Context, in this case, is the ability for AI to deinterlace and recognize that “pending status” is actually Status = Pending. Same goes for “invoice date,” which is a database column. “September 2024” could mean September 2 or September 24, but the AI understands that month and year were provided but not a day value. 

Key components of NLP 

The underlying technology that creates these seemingly simple and straightforward outputs is relatively complex. It is assumed NLP is linked to a data model, such as large language models (LLMs), large action models (LAMs), small language models (SLMs), state space models (SSMs), or any one of the new variations of neural data models. The techniques and algorithms for deep learning models are too much to review individually, as each methodology could be given its own article. 

Focus is instead placed on the most common methodologies, such as retrieval augmented generation (RAG). RAG is one of the most important ML techniques or methodologies designed to support NLP. By combining retrieval and generation capabilities in a single algorithm, RAG allows for better accuracy and reliability due to its ability to ground responses of a LLM without constantly rebuilding models. It also reduces hallucinations, instances where models generate incorrect information. RAG can validate model references, reducing the chances of generating false information. RAG is critical to NLP for tasks such as conversational AI, summarization, and answering questions. Let’s break down the techniques that make up NLP.

As in our example above, where a prompt such as “What is the cumulative total of invoices with a pending status with an invoice date in September 2024?” is sent, the first thing NLP does is tokenization, which breaks down sentences into bite size, smaller words or phrases. For example, “What is NLP” would be tokenized into “What,” “is,” and “NLP.” 

NLP utilizes n-grams, a sequence of n successive items in a text document that may include words, numbers, symbols, and punctuation as well as tokenization.  In this process, words become sequences of n items from a string of text. For instance, in the string “What is NLP,” the query is recognized into bigrams, or “What is” and “is NLP.” Breaking down individual words, as well as knowing the next word in the phrase, provides context to the string of text.

Next comes part of speech tagging that identifies grammatical portions of a speech (nouns, verbs, adjectives) in a string of text. Coupling this NLP key tagging with a context technique of noun phrases, NLP is able to extract nouns within phrases to help understand the subject or object in question. Since words can be plural, which can change the meaning, NLP uses stemming and lemmatization, techniques used to reduce a word to its base or root word—for instance, “swimming” may be reduced to “swim.” It groups together different inflected forms of the same word to express grammatical function such as tense, mood, person, number, case, and gender.

Another key component of NLP is using a named entity recognition technique that identifies and classifies elements of a string of text into categories like people, places, things, location, etc. Coupled with context techniques like themes and facets, this allows NLP to understand the main topics or themes within the string of text. 

What business processes are impacted by NLP?

Data retrieval – using all of these techniques, NLP coupled with generative AI models can perform a host of different use cases, as explained above using custom prompts in a reporting scenario to return data.

• AP clerks, CFOs, and financial analysts can ask specific questions using NLP to parse and return data matching the parsed words as well as the context in which the words are sequentially written.

Sentiment analysis – allows NLP to understand the positive or negative sentiment expressed in text. Of note is that Microsoft Power Automate has a precanned AI Hub component strictly developed for sentiment analysis.

• Customer service, surveys and even call center voice recordings can be analyzed for feelings associated with a product or service. NLP and AI can then be used to route negative sentiment to customer success managers who can immediately triage unhappy customers. In the past, a customer service rep would have to physically read every correspondence to understand and summarize sentiment, whereas with NLP, customer correspondence can be analyzed immediately without a human.

Text summarization – creates concise summaries of text, like paragraphs, articles or documents. Asking any one of the LLM AI engines like ChatGPT a prompt or natural language instruction can summarize the article or document. You may have seen Zoom or Teams offer add-on AI tools that transcribe an hour-long call into a concise summary of the meeting, organizing discussion points throughout the call into sections, independent on when the comment was made in the call.

Classify text – classifies the question prompt against a list of categories. For example, if the question was, “what is the best beach to visit?” and the categories are seasonal (summer, winter, spring, fall), the classify text component decides what is the best category for the question. Since a beach is typically visited in the summer, the response from the engine is summer.

Responding to a complaint – crafts a response to the string of text provided by the customer to its vendor. For example, if an email is sent to customer service saying, “I’m not happy with the level of service,” the data model using NLP should return a courteous response highlighting acknowledgment and readiness to help. 

The customer is then sent “I’m sorry to hear that you’re not satisfied with the level of service provided. Your feedback is valuable, and I’m here to assist you further. Could you please provide more details about your experience so I can address your concerns appropriately? Thank you for sharing your feedback.” 

The vague nature of the customer email provides very little context to the problem. The prompt can’t provide a resolution, so it asks a question, “Could you please provide more details about your experience so I can address your concerns appropriately?” Custom prompts can consume one question, ask another responding question, and then wait for the customer to respond, all the while keeping track of the cadence of the conversation.

More than just
buzzwords

Buried beneath the technical speak, generative AI maintains its place as a fully transformative technology when harnessed correctly. AI has been a generic umbrella term used very widely (and often incorrectly) across use cases, horizontals, and verticals, and has many components. 

Yes, AI as a concept is transformative, but components like data models and document automation need NLP to fully realize productivity gains. NLP has been the mechanism that has brought AI to the forefront of consumers, where ChatGPT-type questions/prompts are able to drive the instruction tuning of the data model. Without prompting, and conversely NLP, there would be far less access to consume GenAI. NLP is a game changer, thanks to its ability to allow every day, non-techy users to consume AI models through just a simple question.