This put up is co-written with Ross Ashworth at TP ICAP.
The power to shortly extract insights from buyer relationship administration techniques (CRMs) and huge quantities of assembly notes can imply the distinction between seizing alternatives and lacking them fully. TP ICAP confronted this problem, having hundreds of vendor assembly data saved of their CRM. Utilizing Amazon Bedrock, their Innovation Lab constructed a production-ready resolution that transforms hours of handbook evaluation into seconds by offering AI-powered insights, utilizing a mix of Retrieval Augmented Technology (RAG) and text-to-SQL approaches.
This put up exhibits how TP ICAP used Amazon Bedrock Data Bases and Amazon Bedrock Evaluations to construct ClientIQ, an enterprise-grade resolution with enhanced safety features for extracting CRM insights utilizing AI, delivering fast enterprise worth.
The problem
TP ICAP had amassed tens of hundreds of vendor assembly notes of their CRM system over a few years. These notes contained wealthy, qualitative data and particulars about product choices, integration discussions, relationship insights, and strategic path. Nevertheless, this information was being underutilized and enterprise customers have been spending hours manually looking out via data, understanding the data existed however unable to effectively find it. The TP ICAP Innovation Lab got down to make the data extra accessible, actionable, and shortly summarized for his or her inner stakeholders. Their resolution wanted to floor related data shortly, be correct, and preserve correct context.
ClientIQ: TP ICAP’s customized CRM assistant
With ClientIQ, customers can work together with their Salesforce assembly information via pure language queries. For instance:
- Ask questions on assembly information in plain English, comparable to “How can we enhance our relationship with prospects?”, “What do our shoppers take into consideration our resolution?”, or “How have been our shoppers impacted by Brexit?”
- Refine their queries via follow-up questions.
- Apply filters to limit mannequin solutions to a specific time interval.
- Entry supply paperwork instantly via hyperlinks to particular Salesforce data.
ClientIQ offers complete responses whereas sustaining full traceability by together with references to the supply information and direct hyperlinks to the unique Salesforce data. The conversational interface helps pure dialogue circulation, so customers can refine and discover their queries with out beginning over. The next screenshot exhibits an instance interplay (examples on this put up use fictitious information and AnyCompany, a fictitious firm, for demonstration functions).
ClientIQ performs a number of duties to meet a consumer’s request:
- It makes use of a big language mannequin (LLM) to investigate every consumer question to find out the optimum processing path.
- It routes requests to one in every of two workflows:
- The RAG workflow for getting insights from unstructured assembly notes. For instance, “Was matter A mentioned with AnyCompany the final 14 days?”
- The SQL technology workflow for answering analytical queries by querying structured information. For instance, “Get me a report on assembly rely per area for final 4 weeks.”
- It then generates the responses in pure language.
- ClientIQ respects present permission boundaries and entry controls, serving to confirm customers solely entry the information they’re approved to. For instance, if a consumer solely has entry to their regional accounts within the CRM system, ClientIQ solely returns data from these accounts.
Resolution overview
Though the staff thought-about utilizing their CRM’s built-in AI assistant, they opted to develop a extra custom-made, cost-effective resolution that might exactly match their necessities. They partnered with AWS and constructed an enterprise-grade resolution powered by Amazon Bedrock. With Amazon Bedrock, TP ICAP evaluated and chosen one of the best fashions for his or her use case and constructed a production-ready RAG resolution in weeks somewhat than months, with out having to handle the underlying infrastructure. They particularly used the next Amazon Bedrock managed capabilities:
- Amazon Bedrock basis fashions – Amazon Bedrock offers a variety of basis fashions (FMs) from suppliers, together with Anthropic, Meta, Mistral AI, and Amazon, accessible via a single API. TP ICAP experimented with completely different fashions for varied duties and chosen one of the best mannequin for every job, balancing latency, efficiency, and value. As an illustration, they used Anthropic’s Claude 3.5 Sonnet for classification duties and Amazon Nova Professional for text-to-SQL technology. As a result of Amazon Bedrock is totally managed, they didn’t have to spend time establishing infrastructure for internet hosting these fashions, lowering the time to supply.
- Amazon Bedrock Data Bases – The FMs wanted entry to the data in TP ICAP’s Salesforce system to supply correct, related responses. TP ICAP used Amazon Bedrock Data Bases to implement RAG, a way that enhances generative AI responses by incorporating related information out of your group’s information sources. Amazon Bedrock Data Bases is a totally managed RAG functionality with built-in session context administration and supply attribution. The ultimate implementation delivers exact, contextually related responses whereas sustaining traceability to supply paperwork.
- Amazon Bedrock Evaluations – For constant high quality and efficiency, the staff wished to implement automated evaluations. By utilizing Amazon Bedrock Evaluations and the RAG analysis software for Amazon Bedrock Data Bases of their improvement setting and CI/CD pipeline, they have been in a position to consider and examine FMs with human-like high quality. They evaluated completely different dimensions, together with response accuracy, relevance, and completeness, and high quality of RAG retrieval.
Since launch, their method scales effectively to investigate hundreds of responses and facilitates data-driven decision-making about mannequin and inference parameter choice, and RAG configuration.The next diagram showcases the structure of the answer.

The consumer question workflow consists of the next steps:
- The consumer logs in via a frontend React software, hosted in an Amazon Easy Storage Service (Amazon S3) bucket and accessible solely throughout the group’s community via an internal-only Software Load Balancer.
- After logging in, a WebSocket connection is opened between the consumer and Amazon API Gateway to allow real-time, bi-directional communication.
- After the connection is established, an AWS Lambda perform (connection handler) is invoked, which course of the payload, logs monitoring information to Amazon DynamoDB, and publishes request information to an Amazon Easy Notification Service (Amazon SNS) matter for downstream processing.
- Lambda capabilities for several types of duties devour messages from Amazon Easy Queue Service (Amazon SQS) for scalable and event-driven processing.
- The Lambda capabilities use Amazon Bedrock FMs to find out whether or not a query is greatest answered by querying structured information in Amazon Athena or by retrieving data from an Amazon Bedrock information base.
- After processing, the reply is returned to the consumer in actual time utilizing the prevailing WebSocket connection via API Gateway.
Information ingestion
ClientIQ must be repeatedly up to date with the most recent Salesforce information. Quite than utilizing an off-the-shelf choice, TP ICAP developed a customized connector to interface with their extremely tailor-made Salesforce implementation and ingest the most recent information to Amazon S3. This bespoke method supplied the flexibleness wanted to deal with their particular information buildings whereas remaining easy to configure and preserve. The connector, which employs Salesforce Object Question Language (SOQL) queries to retrieve the information, runs each day and has confirmed to be quick and dependable. To optimize the standard of the outcomes in the course of the RAG retrieval workflow, TP ICAP opted for a customized chunking method of their Amazon Bedrock information base. The customized chunking occurs as a part of the ingestion course of, the place the connector splits the information into particular person CSV recordsdata, one per assembly. These recordsdata are additionally mechanically tagged with related matters from a predefined listing, utilizing Amazon Nova Professional, to additional improve the standard of the retrieval outcomes. The ultimate outputs in Amazon S3 include a CSV file per assembly and an identical JSON metadata file containing tags comparable to date, division, model, and area. The next is an instance of the related metadata file:
As quickly as the information is accessible in Amazon S3, an AWS Glue job is triggered to populate the AWS Glue Information Catalog. That is later utilized by Athena when querying the Amazon S3 information.
The Amazon Bedrock information base can also be synced with Amazon S3. As a part of this course of, every CSV file is transformed into embeddings utilizing Amazon Titan v1 and listed within the vector retailer, Amazon OpenSearch Serverless. The metadata can also be ingested and obtainable for filtering the vector retailer outcomes throughout retrieval, as described within the following part.
Boosting RAG retrieval high quality
In a RAG question workflow, step one is to retrieve the paperwork which might be related to the consumer’s question from the vector retailer and append them to the question as context. Frequent methods to seek out the related paperwork embrace semantic search, key phrase search, or a mix of each, known as hybrid search. ClientIQ makes use of hybrid search to first filter paperwork based mostly on their metadata after which carry out semantic search throughout the filtered outcomes. This pre-filtering offers extra management over the retrieved paperwork and helps disambiguate queries. For instance, a query comparable to “discover notes from government conferences with AnyCompany in Chicago” can imply conferences with any AnyCompany division that happened in Chicago or conferences with AnyCompany’s division headquartered in Chicago.
TP ICAP used the handbook metadata filtering functionality in Amazon Bedrock Data Bases to implement hybrid search of their vector retailer, OpenSearch Serverless. With this method, within the previous instance, the paperwork are first pre-filtered for “Chicago” as Visiting_City_C. After that, a semantic search is carried out to seek out the paperwork that include government assembly notes for AnyCompany. The ultimate output incorporates notes from conferences in Chicago, which is what is anticipated on this case. The staff enhanced this performance additional by utilizing the implicit metadata filtering of Amazon Bedrock Data Bases. This functionality depends on Amazon Bedrock FMs to mechanically analyze the question, perceive which values will be mapped to metadata fields, and rewrite the question accordingly earlier than performing the retrieval.
Lastly, for added precision, customers can manually specify filters via the applying UI, giving them better management over their search outcomes. This multi-layered filtering method considerably improves context and last response accuracy whereas sustaining quick retrieval speeds.
Safety and entry management
To take care of Salesforce’s granular permissions mannequin within the ClientIQ resolution, TP ICAP applied a safety framework utilizing Okta group claims mapped to particular divisions and areas. When a consumer indicators in, their group claims are connected to their session. When the consumer asks a query, these claims are mechanically matched in opposition to metadata fields in Athena or OpenSearch Serverless, relying on the trail adopted.
For instance, if a consumer has entry to see data for EMEA solely, then the paperwork are mechanically filtered by the EMEA area. In Athena, that is achieved by mechanically adjusting the question to incorporate this filter. In Amazon Bedrock Data Bases, that is achieved by introducing a further metadata discipline filter for area=EMEA within the hybrid search. That is highlighted within the following diagram.

Outcomes that don’t match the consumer’s permission tags are filtered out, in order that customers can solely entry information they’re approved to see. This unified safety mannequin maintains consistency between Salesforce permissions and ClientIQ entry controls, preserving information governance throughout options.
The staff additionally developed a customized administrative interface for admins that handle permission in Salesforce so as to add or take away customers from teams utilizing Okta’s APIs.
Automated analysis
The Innovation Lab staff confronted a typical problem in constructing their RAG software: the right way to scientifically measure and enhance its efficiency. To deal with that, they developed an analysis technique utilizing Amazon Bedrock Evaluations that entails three phrases:
- Floor reality creation – They labored carefully with stakeholders and testing groups to develop a complete set of 100 consultant query solutions pairs that mirrored real-world interactions.
- RAG analysis – Of their improvement setting, they programmatically triggered RAG evaluations in Amazon Bedrock Evaluations to course of the bottom reality information in Amazon S3 and run complete assessments. They evaluated completely different chunking methods, together with default and customized chunking, examined completely different embedding fashions for retrieval, and in contrast FMs for technology utilizing a variety of inference parameters.
- Metric-driven optimization – Amazon Bedrock generates analysis studies containing metrics, scores, and insights upon completion of an analysis job. The staff tracked content material relevance and content material protection for retrieval and high quality, and accountable AI metrics comparable to response relevance, factual accuracy, retrieval precision, and contextual comprehension for technology. They used the analysis studies to make optimizations till they reached their efficiency targets.
The next diagram illustrates this method.

As well as, they built-in RAG analysis instantly into their steady integration and steady supply (CI/CD) pipeline, so each deployment mechanically validates that adjustments don’t degrade response high quality. The automated testing method offers the staff confidence to iterate shortly whereas sustaining persistently excessive requirements for the manufacturing resolution.
Enterprise outcomes
ClientIQ has remodeled how TP ICAP extracts worth from their CRM information. Following the preliminary launch with 20 customers, the outcomes confirmed that the answer has pushed a 75% discount in time spent on analysis duties. Stakeholders additionally reported an enchancment in perception high quality, with extra complete and contextual data being surfaced. Constructing on this success, the TP ICAP Innovation Lab plans to evolve ClientIQ right into a extra clever digital assistant able to dealing with broader, extra advanced duties throughout a number of enterprise techniques. Their mission stays constant: to assist technical and non-technical groups throughout the enterprise to unlock enterprise advantages with generative AI.
Conclusion
On this put up, we explored how the TP ICAP Innovation Lab staff used Amazon Bedrock FMs, Amazon Bedrock Data Bases, and Amazon Bedrock Evaluations to remodel hundreds of assembly data from an underutilized useful resource right into a helpful asset and speed up time to insights whereas sustaining enterprise-grade safety and governance. Their success demonstrates that with the proper method, companies can implement production-ready AI options and ship enterprise worth in weeks. To be taught extra about constructing related options with Amazon Bedrock, go to the Amazon Bedrock documentation or uncover real-world success tales and implementations on the AWS Monetary Providers Weblog.
Concerning the authors
Ross Ashworth works in TP ICAP’s AI Innovation Lab, the place he focuses on enabling the enterprise to harness Generative AI throughout a variety of initiatives. With over a decade of expertise working with AWS applied sciences, Ross brings deep technical experience to designing and delivering revolutionary, sensible options that drive enterprise worth. Exterior of labor, Ross is a eager cricket fan and former novice participant. He’s now a member at The Oval, the place he enjoys attending matches together with his household, who additionally share his ardour for the game.
Anastasia Tzeveleka is a Senior Generative AI/ML Specialist Options Architect at AWS. Her expertise spans the whole AI lifecycle, from collaborating with organizations coaching cutting-edge Massive Language Fashions (LLMs) to guiding enterprises in deploying and scaling these fashions for real-world purposes. In her spare time, she explores new worlds via fiction.

