Skip to main content

Hi Salesforce Community,

We are currently working on an Agentforce-based Knowledge Article generation use case and would appreciate recommendations from anyone who has implemented something similar.

Our objective is to automatically generate accurate, reusable, customer-facing Knowledge Article drafts from resolved Salesforce Cases, with the eventual goal of using those articles for customer self-service and case deflection.

Our current implementation uses Salesforce Prompt Builder and Agentforce capabilities. The Case information is supplied as grounding context, and the generated Knowledge Article is primarily focused on:

Title

 

Summary

 

Content / Resolution

The Resolution is especially important for us. We want the generated article to accurately represent the actual outcome of the Case and distinguish whether it resulted in a:

  •  Final Solution 
  •  Workaround 
  •  Improvement 
  •  Enhancement / Feature Request 

At the same time, the model should remain strictly grounded in the Case information and should not infer or introduce unsupported technical details.

One of the main challenges we are currently investigating is how to provide the model with the complete and relevant Case context.

Important information can be distributed across several Salesforce sources, including:

  •  Case Subject and Description 
  •  Case Comments 
  •  Email Messages 
  •  Work Notes 
  •  Resolution Notes 
  •  Related records or conversations 
  •  Other Case-related supporting information 

We have observed situations where useful information exists in the Case context but is not fully reflected in the generated Knowledge Article.

We also want to prevent the opposite behavior, where the generated article introduces resolution steps, troubleshooting, or technical information that is not actually supported by the Case.

We are therefore looking for guidance on the Salesforce-recommended or out-of-the-box approach for this type of implementation.

Specifically, we would appreciate input on the following:

  1.  Is Einstein Knowledge Creation / the standard “Create Knowledge Articles From Case” Prompt Builder template the recommended approach for automatically generating Knowledge Articles from resolved Cases? 
  2.  What is the recommended way to provide the complete Case context, including related information such as Case Comments and Email Messages, to a Knowledge Generation prompt without manually combining everything into one large input? 
  3.  For a Knowledge Generation Prompt Template using Case as the grounding record, what additional Salesforce-supported data sources or related resources are typically recommended? 
  4.  Is there an out-of-the-box Salesforce approach for reliably identifying and generating the actual resolution from a resolved Case while keeping the output strictly grounded? 
  5. Has anyone implemented prompt logic that successfully distinguishes between:
    •  Final Solution 
    •  Workaround 
    •  Improvement 
    •  Enhancement / Feature Request 
  6. without causing the LLM to over-infer or classify an unsupported outcome?
  7.  What are the recommended Prompt Builder techniques for ensuring that generated Knowledge Articles remain: 
    •  Accurate 
    •  Grounded 
    •  Customer-friendly 
    •  Reusable 
    •  Resolution-focused 
    •  Suitable for customer self-service and case deflection 
  8.  If the standard Knowledge Creation functionality is not sufficient for this use case, are there recommended approaches using Flow, Prompt Builder, Agentforce, Data 360, related record grounding, or Retrievers that work well for generating complete Knowledge Articles from Salesforce Cases? 
  9.  Are there any existing Salesforce templates, accelerators, AppExchange solutions, or recommended implementation patterns that could help avoid building a heavily customized solution from scratch? 

We are particularly interested in hearing from anyone who has implemented a production workflow similar to:

Resolved Salesforce Case → Grounded Case Context → AI-Generated Knowledge Article → Agentforce / Customer Self-Service

Any implementation examples, best practices, known limitations, configuration recommendations, or workarounds would be greatly appreciated. 

We would also appreciate any

out-of-the-box approaches, alternative implementation patterns  beyond the standard Salesforce capabilities currently available.

If anyone has successfully implemented a different approach for generating high-quality, grounded Knowledge Articles from Cases, we would be very interested in learning about the architecture, tools, or configuration used

Thank you in advance for your guidance. 

 

#Agentforce  #Salesforce  #TrailblazerCommunity  #Trailhead Challenges

1 respuesta
  1. 25 sept, 10:17

    Hi Bijay, 

     

    On Q1: this has actually changed. Einstein Knowledge Creation now supports custom Prompt Templates via the "Knowledge Generation" type in Prompt Builder — not limited to the single default case-only template anymore. Build a custom template tailored to your use case; that's the current recommended path. 

     

    For pulling in Comments/Emails/Work Notes without manual concatenation: 

    - Flow-based grounding: attach a Flow as a grounding resource in Prompt Builder — it queries related records and feeds them in structured, instead of one giant merge field. 

    - Retrievers (Data Cloud): for larger/unstructured volumes, index content into a Data Library and use a Retriever (via Einstein Studio) for semantic retrieval instead of dumping everything into one flow output. 

     

    For grounding accuracy / avoiding invented resolution steps: 

    - Add an explicit negative instruction in the prompt: "Only use information present in the provided context. Do not infer steps not explicitly stated." This measurably reduces over-inference. 

    - Split classification from generation — use a separate Field Generation prompt just to classify Final Solution/Workaround/Improvement/Enhancement (same context), then pass that result into the Knowledge Generation prompt. Two narrow prompts outperform one prompt doing both. 

    - Add 2–3 labeled few-shot examples of each resolution category in the prompt instructions — this taxonomy is business-specific, so there's no built-in classifier; examples are what actually stabilize classification. 

     

    No native accelerator exists for the resolution-type classification specifically — that part is custom prompt engineering, not a toggle. 

     

    Reference:

    https://help.salesforce.com/s/articleView?language=en_US&id=release-notes.rn_knowledge_creation_custom_prompts.htm&release=264&type=5

0/9000