By Roy F Rada, MD, PhD
Placed on LinkedIn: May 11, 2024
Keywords CRM, Salesforce, Neural Nets, Fine-Tuning, Retrieval Augmented Generation, RAG
Introduction
A friend asked me about AI and CRM. His startup offers AI-driven CRM via SaaS and wants to augment its LLM features. This essay reflects my preliminary response.
I created from scratch an ecommerce storefront forty years ago with Microsoft Visual Studio. Today, SaaS for complete ecommerce solutions is available from many vendors. When I examined creating an novel online organization two years ago, I looked for an open source, free software package that emphasized workflow and liked Odoo. Odoo has a CRM package and AI add-ins, as do many other vendors. What approach and tools would one use to craft a new CRM + AI service?
CRM manages customers. Information from current and potential customers is collected and analyzed and actions are taken to keep current customers buying and to capture new customers. Within each market niche these customers are different, such as patients of a hospital versus subscribers to a cellular phone network, and CRM approaches must be tailored.
The term AI describes any artifact whose input-output function reflects intelligence. With the discovery in 2022 that large neural networks operating on large document databases could manifest artificial general intelligence, the interest in AI has skyrocketed. CRM+AI means (www.sciencedirect.com/science/article/pii/S0268401224000318) that:
AI-generated insights enhance the prediction of customer purchasing behaviors across various touch-points and guide product development.
AI marketing performance benefits are both short-term (optimize operations, insight generation, cost reduction) and long-term (innovation acceleration, risk mitigation).
Programmatic advertising and virtual assistants increase long-term customer loyalty.
Customer experiences across diverse industries and platforms can be combined.
To successfully market a new CRM product, it should be CRM+AI.
Freshworks.com advertises “AI’s powerful automation capabilities can help you understand customers and make smarter decisions through insights, predictions, and recommendations from your CRM data.”
HubSpot.com offers CRM with AI for lead generation and for storing and organizing customer-company interactions.
Pipedrive.com offers an AI Sales Assistant to identify high-potential deals, an Email Generator to craft personalized emails, and a Summarizer to summarize incoming communications.
The CRM of the large company Zoho.com includes an AI assistant that provides contextual information, identifies anomalies, and suggests next steps.
Salesforce is the world’s biggest provider of enterprise software, including CRM, and states (www.salesforce.com/artificial-intelligence/cloud/):
You need real-time access to all your customer data, powerful analytics, and automation across your business to make AI work for you.
Salesforce has its own enterprise-focused LLM but also supports any LLM that the client wants to use. In 2023 Salesforce purchased airkit.ai which provides AI agents that resolve customer questions instantly.
My colleague from the Introduction is exploring various ways to tailor a LLM for CRM. Two popular techniques are fine-tuning and Retrieval Augmented Generation (RAG):
Fine-tuning takes a pre-trained LLM and extends the training on a company-specific dataset.
RAG combines a document retrieval system and LLM. A user query first retrieves a relevant document from the company’s document database and then that document+query is sent to the LLM.
The LLM response incorporates information from the document.
For fine-tuning or RAG many parameters need to be adjusted whose appropriate values are discovered by trial-and-error.
Fine-tuning is the process of taking the network learned by the foundational training, and further training the model. Often an added neural net classifier takes the top layer of the network as input to perform some downstream task, such as question answering. The foundation model learns a language model that instantiates word meaning that enables the model to be fine-tuned to the requirements of a downstream language understanding task.
The power of pretrained language models lies in their ability to extract generalizations from large amounts of text—generalizations that are useful for downstream applications. To make practical use of these generalizations, an interface connects these models to downstream applications through fine-tuning. Fine-tuning adds a small set of application-specific parameters buy using labeled data from the application to train these additional parameters. Typically, this training will freeze the pretrained language model parameters.
"RAG" stands for "Retrieval Augmented Generation," which is a technique that enhances the capabilities of a large language model by allowing it to access and incorporate relevant information from external knowledge bases before generating responses, essentially making its answers more accurate and contextually appropriate by pulling in fresh, specific data when needed, rather than relying solely on its pre-trained knowledge.
When a user asks a question, RAG first searches through a designated knowledge base (like a database or collection of documents) to retrieve the most relevant information related to the query. This retrieved data is then combined with the original prompt and fed into the LLM to generate a response that is grounded in the specific context. RAG is particularly useful in scenarios where a system needs to provide detailed and accurate information based on current data, such as customer service chatbots, knowledge-based question answering systems, and enterprise information retrieval applications.
This essay reviews the marketplace and potential of AI+CRM. Multiple AI tools that precede LLMs are useful in CRM, and a robust AI+CRM system will map each CRM problem to its appropriate tool in a multi-agent architecture. The most recent and revolutionary tool is the LLM, and to use that tool the crucial step for a company is to tailor the LLM via fine-tuning or RAG. The opportunities and challenges are many!