Implementing Question-Answering Over Sales Conversations with Deal Me at Gong

gong · Tech · 2023 · source Agentic: no · promotional bias: low · summary-only (no fetched source) · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Natural-language question answering over B2B sales conversation and deal data

Gong needed a way for sales managers and representatives to ask free-form questions over complex deal histories that include calls, emails, CRM metadata, pricing changes, stakeholders, and long sales cycles. The system had to answer quickly, avoid hallucinating unsupported deal facts, cite source material, manage long contexts and cost, and decide when a purpose-built Gong feature was better than an LLM answer.

Constraints:

Architecture

Gong built Ask Me as a natural-language Q&A layer over unified deal intelligence data. The architecture first normalizes calls, emails, CRM metadata, meeting notes, and summaries into a unified API. At query time, the system uses prompt engineering, metadata injection, query rewriting, HyDE-style retrieval, and source-by-source querying rather than stuffing an entire deal history into one prompt. Parallel source results are merged by an aggregation chain into a final answer, then validated against source data and decorated with citations that link back to call or email locations. Usage analysis later added a routing layer: questions that match existing specialized features are directed there, while novel questions receive the full LLM treatment.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  Sales_user["Sales user"] --> Ask_Me_UI["Ask Me UI"]
  Ask_Me_UI --> Query_router["Query router"]
  Query_router --> Specialized_Gong_features["Specialized Gong features"]
  Query_router --> Prompt_engineering_layer["Prompt engineering layer"]
  Prompt_engineering_layer --> Unified_deal_data_API["Unified deal data API"]
  Unified_deal_data_API --> Call_transcript_store["Call transcript store"]
  Unified_deal_data_API --> Email_store["Email store"]
  Unified_deal_data_API --> CRM_metadata_store["CRM metadata store"]
  Unified_deal_data_API --> Meeting_notes_and_summaries["Meeting notes and summaries"]
  Prompt_engineering_layer --> HyDE_retrieval_layer["HyDE retrieval layer"]
  HyDE_retrieval_layer --> Source_query_workers["Source query workers"]
  Prompt_engineering_layer --> Source_query_workers
  Call_transcript_store --> Source_query_workers
  Email_store --> Source_query_workers
  CRM_metadata_store --> Source_query_workers
  Source_query_workers --> Aggregation_chain["Aggregation chain"]
  Aggregation_chain --> Validation_layer["Validation layer"]
  Validation_layer --> Citation_resolver["Citation resolver"]
  Call_transcript_store --> Citation_resolver
  Email_store --> Citation_resolver
  Citation_resolver --> Ask_Me_UI
  Prompt_engineering_layer --> QA_and_evaluation_pipeline["QA and evaluation pipeline"]
  Validation_layer --> QA_and_evaluation_pipeline
  Cost_and_latency_controls["Cost and latency controls"] --> Query_router
  Cost_and_latency_controls --> Source_query_workers
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Sales user Manager, sales representative, or executive asking a natural-language question about a deal. Ask Me UI, Specialized Gong features
Ask Me UI Natural-language interface for asking questions over deal intelligence data. Sales user, Query router, Prompt engineering layer, Citation resolver
Query router Determines whether a question should go to an existing specialized feature or the LLM Q&A pipeline. Ask Me UI, Specialized Gong features, Prompt engineering layer
Specialized Gong features Purpose-built lower-cost product features for common questions with better UX and accuracy. Query router, Sales user
Prompt engineering layer Adds deal metadata, user role, deal stage, chain-of-thought style processing, and query rewriting. Query router, Unified deal data API, HyDE retrieval layer, Source query workers
Unified deal data API Common representation over call transcripts, email threads, CRM metadata, meeting notes, and summaries. Prompt engineering layer, Call transcript store, Email store, CRM metadata store, Meeting notes and summaries
Call transcript store Conversation transcripts and recordings used as one evidence source for answers. Unified deal data API, Source query workers, Citation resolver
Email store Email threads and batches used as another evidence source for deal Q&A. Unified deal data API, Source query workers, Citation resolver
CRM metadata store Structured deal data such as deal stage, pricing, and contacts. Unified deal data API, Source query workers
Meeting notes and summaries Additional deal context made queryable through the unified API. Unified deal data API, Source query workers
HyDE retrieval layer Generates hypothetical answers or questions to improve similarity matching between queries and relevant content. Prompt engineering layer, Source query workers
Source query workers Parallel workers that query individual conversations, email batches, or metadata slices before synthesis. Prompt engineering layer, HyDE retrieval layer, Call transcript store, Email store, CRM metadata store, Aggregation chain
Aggregation chain Collects source-level results and merges them into a coherent final answer. Source query workers, Validation layer, Citation resolver
Validation layer Checks generated claims against source data to reduce hallucinations before returning responses. Aggregation chain, Citation resolver
Citation resolver Links each answer back to exact call or email locations, including transcript segments and audio clips. Validation layer, Call transcript store, Email store, Ask Me UI
QA and evaluation pipeline Testing infrastructure used to adapt prompts and models as provider versions change. Prompt engineering layer, Validation layer
Cost and latency controls Optimization layer that limits which sources to query, chooses parallelism, and balances model size, quality, and cost. Query router, Source query workers, QA and evaluation pipeline

Data flow

A sales user asks a question about a deal. The system enriches the query with deal context, user role, and deal stage, then queries selected sources such as conversations, emails, and CRM metadata at conversation or email-batch granularity. HyDE and query rewriting improve retrieval, individual source answers are collected, and a synthesis step produces the final response. A validation layer checks claims against source data, citations link claims to exact transcripts or emails, and routing logic may send common questions to specialized Gong features instead of the free-form LLM path.

3 supporting quotes
“The system aggregates information from multiple sources (calls, emails, CRM metadata) and uses LLMs to provide real-time answers within a 5-second latency target.”summary, stated
“Individual sources are queried separately • Results are collected and merged • A final synthesis step produces the coherent answer”summary, stated
“The system identifies when a query matches an existing specialized feature • Users are directed to those features for the 70% of queries that match”summary, stated

Why this architecture

The architecture avoids a single huge prompt over an entire deal history. Querying at conversation or email-batch granularity improves accuracy and keeps context manageable, parallel aggregation helps meet the 5-second target, validation and citations build trust, and routing common questions to specialized features reduces cost while improving UX.

“Their current optimal approach operates at approximately the conversation level—feeding the query plus one conversation (or a batch of emails) at a time”summary, stated
“This parallel processing architecture was necessary to meet latency requirements.”summary, stated

• Dramatically reduces costs • Provides better user experience for common queries"

— summary, stated

Models used: large language models for deal Q&A · HyDE hypothetical answer/question generation · fine-tuned models in specialized Gong features · GPT-3.5 · general LLMs for synthesis and validation

Scale

Alternatives considered (roads not taken)

Stuff entire deal histories into a single prompt

Rejected because: Long contexts caused models to lose information and hurt accuracy, so the team queried at conversation or email-batch granularity.

“models (especially circa 2023) struggled with very long contexts, often "losing" information in the middle of long documents”summary, stated
“feeding the query plus one conversation (or a batch of emails) at a time, rather than trying to stuff entire deal histories into single prompts”summary, stated

Free-form Q&A for all user questions

Rejected because: Most questions matched existing purpose-built features with better accuracy, UX, and cost profile.

“70% of questions users asked were for information that Gong already provided through specialized, purpose-built features”summary, stated
“Higher accuracy (fine-tuned models instead of general LLMs) • Better UX (visualizations, tables, interactive elements vs. plain text)”summary, stated

Return unsupported answers without traceability

Rejected because: Customers needed to trust answers, so v2 added source citations down to transcript and audio locations.

“A critical feature that was NOT in v1 but was added in v2 (based on customer demand) was the ability to trace answers back to their source.”summary, stated
“Allows users to click through to the exact transcript segment • Enables listening to the actual audio clip”summary, stated

Sequentially query every possible source

Rejected because: The 5-second latency target forced the team to choose sources carefully and parallelize processing.

"This constraint was described as "very limiting" and required careful optimization of:

• Which sources to query (can't query everything)"

“Parallel vs. sequential processing decisions • Model selection (speed vs. quality tradeoffs)”summary, stated

Assume prompts remain stable across model versions

Rejected because: Model version changes changed prompt behavior, so Gong needed QA, testing, and adaptation infrastructure.

“prompts that worked well on a June version of GPT-3.5 might not work on a November version”summary, stated

• Comprehensive QA and testing infrastructure • Continuous evaluation pipelines"

— summary, stated

Patterns

rag-retrieval (knowledge-architecture)

Ask Me retrieves and synthesizes deal evidence from calls, emails, CRM metadata, notes, and summaries rather than answering from the model alone.

"Data Unification Pipeline

The first major technical challenge was unifying all deal data into a format that could be fed to an LLM."

“Call transcripts and recordings • Email threads • CRM metadata (deal stage, pricing, contacts) • Meeting notes and summaries”summary, stated

query-rewriting (retrieval)

The prompt layer can reformulate the user's question with deal context before retrieval and answer generation.

“Query rewriting: The user's question is potentially reformulated with additional context”summary, stated

prompt-chaining (workflow-orchestration)

The system queries individual sources, aggregates intermediate answers, and synthesizes a final response through a multi-step chain.

“Since answers may need to synthesize information from multiple sources (calls, emails, metadata), the system implements an aggregation chain”summary, stated
“Individual sources are queried separately • Results are collected and merged • A final synthesis step produces the coherent answer”summary, stated

guardrails-io-filtering (quality)

A post-generation validation layer verifies claims against source data before answers are returned.

“The solution involved adding a validation layer after generation that verifies claims against source data before returning responses.”summary, stated
“if no such person exists in the deal, the system should not fabricate an answer.”summary, stated

cost-aware-routing (operations)

Gong routes common questions to cheaper specialized features and reserves LLM inference for novel queries.

“Only the 30% of truly novel queries get the full LLM-based treatment”summary, stated
“Dramatically reduces costs • Provides better user experience for common queries”summary, stated

latency-optimization (operations)

The team optimized source selection, parallelism, and model choice to meet a roughly 5-second response target.

“The team set a target of approximately 5 seconds for end-to-end response time.”summary, stated
“Which sources to query (can't query everything) • Parallel vs. sequential processing decisions • Model selection (speed vs. quality tradeoffs)”summary, stated

eval-driven-development (quality)

Model version drift forced comprehensive QA, continuous evaluation, and rapid prompt/model adaptation.

"This necessitated building:

• Comprehensive QA and testing infrastructure • Continuous evaluation pipelines"

“Ongoing balancing of model size, quality, and cost”summary, stated

retrieval-ranking (retrieval)

HyDE improves matching between questions and relevant content by generating hypothetical answers or questions for embedding search.

“The team implemented HyDE (Hypothetical Document Embeddings) to improve retrieval quality.”summary, stated
“Uses these to improve similarity matching • Can work bidirectionally (hypothetical questions for documents, hypothetical answers for queries)”summary, stated

Tradeoffs

Context granularity

Chose conversation-level or email-batch querying over entire deal histories in one prompt.

Rationale: Smaller source units improved accuracy and kept context manageable while still supporting synthesis through aggregation.

“feeding the query plus one conversation (or a batch of emails) at a time, rather than trying to stuff entire deal histories into single prompts”summary, stated
“This granular approach improved accuracy while keeping context manageable.”summary, stated

Hybrid product routing

Chose route common queries to purpose-built features over send every question through Ask Me's full LLM pipeline.

Rationale: Specialized features often had higher accuracy, better UX, and lower cost than general LLM answers.

“Higher accuracy (fine-tuned models instead of general LLMs) • Better UX (visualizations, tables, interactive elements vs. plain text) • Lower cost”summary, stated
“Only the 30% of truly novel queries get the full LLM-based treatment”summary, stated

Latency target

Chose approximately 5-second answers with careful source and parallelism choices over querying all possible sources for maximum completeness.

Rationale: The response-time constraint was limiting, so source selection and parallel processing were necessary.

“The team set a target of approximately 5 seconds for end-to-end response time. This constraint was described as "very limiting"”summary, stated
“Which sources to query (can't query everything) • Parallel vs. sequential processing decisions”summary, stated

Source-backed explainability

Chose citations to exact call/email evidence over opaque natural-language answers.

Rationale: Users needed to trust and verify answers, so the product had to expose supporting source locations.

“Provides transparency that builds trust in the system's answers This explainability feature was described as "very, very, very important" to customers.”summary, stated
“Allows users to click through to the exact transcript segment • Enables listening to the actual audio clip”summary, stated

Ship and learn from real query patterns

Chose launch quickly and analyze actual usage over fully anticipating customer needs before deployment.

Rationale: Actual user questions revealed a large gap between free-form Q&A expectations and better existing product flows.

“Rather than trying to anticipate customer needs a priori, launch quickly and analyze actual usage patterns”summary, stated
“Perhaps the most valuable insight from the deployment came from analyzing actual user queries at scale.”summary, stated

Gotchas (what bit them)

A single prompt over all deal data was too large and inaccurate.

Root cause: Deal histories can contain hundreds of emails, thousands of call transcripts, and metadata; long-context models lost information in the middle.

Resolution: Query at approximately the conversation or email-batch level and aggregate the results.

“Longer context provides richer, more nuanced answers, but models (especially circa 2023) struggled with very long contexts”summary, stated
“This granular approach improved accuracy while keeping context manageable.”summary, stated

Hallucinated deal facts could mislead sales users.

Root cause: The model might fabricate entities or events, such as a person who never joined the deal.

Resolution: Add a validation layer that checks claims against source data before returning responses.

“The example given was a manager asking "What happened when Michael Jordan joined the deal?"—if no such person exists in the deal”summary, stated
“The solution involved adding a validation layer after generation that verifies claims against source data before returning responses.”summary, stated

Trust required citations, not just fluent answers.

Root cause: Customers needed to verify where claims came from in calls or emails.

Resolution: v2 added source tracing to call/email locations, transcript segments, and audio clips.

“A critical feature that was NOT in v1 but was added in v2 (based on customer demand) was the ability to trace answers back to their source.”summary, stated
“Returns the specific location in a call or email that supports each claim • Allows users to click through to the exact transcript segment”summary, stated

LLM cost became a product architecture constraint.

Root cause: Thousands of users across thousands of customer companies could issue multiple queries per day.

Resolution: Route common questions to existing specialized features and optimize model/source selection for the remaining novel questions.

“With approximately 4,000 customer companies, each containing thousands of users who might make multiple queries per day, costs quickly became a critical concern.”summary, stated
“This led to a pivot in the product strategy. Instead of treating Ask Me purely as a free-form Q&A system, the current version implements intelligent routing”summary, stated

Provider model versions changed prompt behavior.

Root cause: Prompts that worked on one GPT-3.5 version could fail or behave differently months later.

Resolution: Build comprehensive QA, continuous evaluation, and fast adaptation paths for new model versions.

“prompts that worked well on a June version of GPT-3.5 might not work on a November version.”summary, stated
“The ability to quickly adapt to new model versions • Ongoing balancing of model size, quality, and cost”summary, stated

A general LLM UI exposed product gaps rather than simply solving them.

Root cause: User queries showed that many needs were already better served by specialized features, but users did not always know those features existed.

Resolution: Use query analysis to route users and reveal where the product's existing capabilities should be surfaced.

“The team discovered that approximately 70% of questions users asked were for information that Gong already provided through specialized, purpose-built features”summary, stated
“Exposes users to parts of the platform they didn't know existed • Reserves LLM resources for cases where they add unique value”summary, stated

Evaluation

Gong's evaluation approach combined hallucination validation against source data, citation traceability, QA and testing infrastructure for model version changes, continuous evaluation pipelines, and usage analysis of real user queries. The summary also reports a strategic evaluation result: 70% of user questions were better served by specialized features, reshaping the product.

Metrics: 5-second end-to-end latency target · claim validation against source data · citation/source traceability · query match rate to specialized features: approximately 70% · novel query share requiring LLM treatment: approximately 30% · model version QA and continuous evaluation

“The solution involved adding a validation layer after generation that verifies claims against source data before returning responses.”summary, stated

• Comprehensive QA and testing infrastructure • Continuous evaluation pipelines"

“The team discovered that approximately 70% of questions users asked were for information that Gong already provided through specialized, purpose-built features”summary, stated

Outcomes

Because this extraction is summary-only, the architecture should be weighted below transcript- or article-backed cases. Still, the summary is detailed enough to support a reconstructed architecture and several high-value system patterns: query routing, validation, citations, cost-aware routing, and context-size management.

3 supporting quotes
“Gong developed "Ask Me" (or "D Me"), a natural language Q&A feature that allows sales managers and representatives to query complex B2B deal data”summary, stated
“A critical feature that was NOT in v1 but was added in v2 (based on customer demand) was the ability to trace answers back to their source.”summary, stated
“Only the 30% of truly novel queries get the full LLM-based treatment”summary, stated