Salesforce Knowledge Creation Agent

Automates knowledge article generation from resolved cases in Salesforce, enhancing efficiency and reducing redundancy.

About the Agent

The Salesforce Knowledge Creation Agent automates the process of generating and managing knowledge base articles from existing case data. It streamlines the conversion of complex case data into easily accessible knowledge resources, ensuring valuable troubleshooting information is consistently captured, accurately formatted, and efficiently stored within the knowledge base. This enhances customer support effectiveness and empowers self-service capabilities, making information retrieval quicker and more reliable for support teams.

Challenges the Agent Addresses

Manually creating and maintaining knowledge articles can be both time-consuming and prone to errors, especially in fast-paced environments where a high volume of customer service cases is processed daily. Without an automated system, important case details may not be captured effectively, leading to missed opportunities for valuable insights that could aid future issue resolution. Additionally, the risk of duplicate articles cluttering the knowledge base makes it harder for customer agents to find relevant information quickly.

The Salesforce Knowledge Creation Agent addresses these challenges by automatically generating well-structured knowledge articles, ensuring that sensitive customer information is redacted, and preventing duplicate entries, streamlining the entire process for improved efficiency and accuracy.

How the Agent Works

The Salesforce Knowledge Creation Agent automates and optimizes the process of generating knowledge articles, ensuring high standards of consistency, accuracy, and efficiency. The agent is triggered whenever a new request for knowledge content is submitted or when incoming cases are received. Leveraging an LLM, the agent intelligently analyzes incoming data, creates relevant and well-structured articles, and ensures seamless integration with Salesforce's knowledge management standards. Below is a detailed breakdown of how the agent functions:


Step 1: Case Data Retrieval and Processing

The process begins when a case is received through an integrated system. The agent fetches all relevant case details and prepares them for further processing.

Key Tasks:

  • Case Data Extraction: The agent retrieves case information, including the case number, description, and other contextual details.
  • Data Structuring: The extracted case data in JSON format is transformed into a standardized, ServiceNow-compatible structure using an LLM for seamless processing.

Outcome:

  • The agent successfully gathers and structures case data, ensuring it is ready for the next steps.

Step 2: PII Guardrails and Data Redaction

To ensure compliance and protect customer privacy, the agent applies PII (Personally Identifiable Information) guardrails to remove sensitive details from the case data.

Key Tasks:

  • Detection of Sensitive Information: The agent identifies PII such as customer names, phone numbers, email addresses, and account numbers from case details using an LLM.
  • Automated Redaction: Any detected PII is removed before proceeding.
  • Validation Check: The agent ensures that only non-sensitive, relevant case details remain for the knowledge article.

Outcome:

  • The processed case data is free of sensitive customer information and ready for knowledge article generation.

Step 3: Knowledge Article Formatting

The agent converts the structured case data into a knowledge article format.

Key Tasks:

  • Markdown Structuring: The agent organizes case information into a clear, standardized format for improved readability and consistency.
  • HTML Conversion: The Markdown-formatted data is converted into HTML for seamless integration with the knowledge base system.

Outcome:

  • The case details are structured and formatted for easy comprehension.

Step 4: Duplicate Knowledge Article Check

Before creating a new knowledge article, the agent checks whether an article already exists for the given case to prevent duplication.

Key Tasks:

  • Fetching Existing Articles: The agent retrieves a list of all existing knowledge articles from the knowledge base.
  • Title Matching: The agent compares the titles of existing articles with the current case title and case ID to check for duplicates.
  • Duplicate Verification: If an article with the same case ID already exists, the agent flags it as a duplicate.

Outcome:

  • If an existing article is found, the agent retrieves and provides the existing article’s URL.
  • If no existing article is found, the agent proceeds to create a new one.

Step 5: Knowledge Article Creation and Publishing

If no duplicate article exists, the agent proceeds to create and publish a new knowledge article.

Key Tasks:

  • API Call to Knowledge Management System: The agent sends a request to the ServiceNow API to create a new article.
  • Content Submission: The agent submits the formatted case details.
  • Confirmation and URL Generation: Once created, the system generates a unique URL for the knowledge article.

Outcome:

  • A new knowledge article is successfully created and published.
  • The generated URL is returned for future reference, improving efficiency and accessibility.

Why Use the Salesforce Knowledge Creation Agent?

  • Automates Article Creation: Reduces manual effort by generating structured knowledge articles, allowing support teams to focus on resolving new cases.
  • Enhances Knowledge Base Accuracy: Publishes only verified, well-structured, and duplicate-free content to maintain high-quality documentation.
  • Faster Resolution and Response Times: Provides instant access to relevant knowledge articles, helping agents resolve similar cases quickly and improving overall service response times.
  • Ensures Compliance and Data Privacy: Applies robust PII detection and redaction to safeguard sensitive customer information.
  • Seamless Salesforce Integration: Works natively within Salesforce, enabling real-time knowledge management without disrupting workflows.
  • Scalable and Customizable: Adapts to various case types and business needs, allowing for tailored workflows and flexible knowledge article formats.

Download the solution document

Accuracy
TBD

Speed
TBD

Input Data Set

Sample of data set required for Salesforce Knowledge Creation Agent:

Case Details

  • Case Number: 00001047
  • Subject: Intermittent Connectivity Issues with Project Catalyst - Blocking Progress on Alpha Project
  • Status: In Progress
  • Priority: High
  • Created Date: 2025-01-08
  • Last Modified Date: 2025-01-08

Description

Subject: Urgent - Project Catalyst Connection Problems - Alpha Project Blocked

Dear Innovate Solutions Support Team,

We are experiencing significant intermittent connection issues with Project Catalyst this morning. Several of our project team members (at least 5) are getting randomly disconnected while using the software. They are seeing messages indicating a loss of connection, and it's disrupting their workflow incredibly significantly. This started happening around 10:30 AM PST. We've checked our internet connection, and it seems stable as we can access other online tools, including our internal project management system and shared drives, without any problems. This seems to be definitely isolated to Project Catalyst. Could you please investigate this as a matter of absolute urgency? We have critical deadlines approaching for the Alpha Project, and this is severely impacting our ability to meet them.

Please let me know what information you need from our end. We are using the latest version of Chrome on Windows 10, if that helps.

Sincerely,
Robert Miller
Project Manager
Global Innovations Corp.


Case Feed

2023-10-27 11:15 AM PST - Emily Carter (Support Agent - Tier 1)

  • Received email from Robert Miller regarding intermittent connectivity issues with Project Catalyst.
  • Confirmed account details and verified Standard Support entitlement.
  • Logged initial description from customer’s email, highlighting urgency.
  • Replied within 5 minutes, requesting clarification on affected users and their locations.
  • Asked for OS and browser versions (confirmed Windows 10 & Chrome).
  • Provided a knowledge base article (KB00098) on troubleshooting network issues.

2023-10-27 11:45 AM PST - Emily Carter (Support Agent - Tier 1)

  • Robert confirmed basic troubleshooting did not resolve the issue.
  • Requested a screenshot of the exact error message and timestamps.
  • Screenshot showed: "Connection to Project Catalyst Server Lost. Attempting to Reconnect..." (Error Code: CS-102)
  • Noted issue might be related to server-side interruptions.

2023-10-27 12:15 PM PST - Emily Carter (Support Agent - Tier 1)

  • Attempted to replicate the issue in a test environment but was unable to reproduce it.
  • Checked the system status dashboard and found a spike in HTTP 503 errors and timeouts for the affected region.

Escalation to Level 2 Support

David Chen (Level 2 Support Engineer)

  • Identified a temporary overload on the primary database server due to an automated data sync job.
  • Implemented a fix by terminating the runaway job and rerouting connections to a secondary database server.
  • Monitored system metrics and confirmed error rates dropped significantly.

Final Updates

  • Emily Carter: Called Robert, explained the cause and resolution.
  • Robert: Confirmed issue is resolved, team is working without further interruptions.
  • Level 2 will conduct a Root Cause Analysis (RCA) to prevent future occurrences.
  • Case Status: Resolved.

Next Steps

  • Level 2 Support to analyze the automated data sync job’s resource consumption.
  • Optimize queries, adjust scheduling, and enhance monitoring for proactive issue detection.
  • Update internal documentation on error code CS-102.

Query Data

  • User Question: Give me a list of cases that are not closed.
  • Action: CASE_CHAT

Deliverable Example

Sample output delivered by the Salesforce Knowledge Creation Agent:

Troubleshooting Intermittent Connectivity Issues with Project Catalyst

Issue Summary

Users experienced intermittent connectivity issues with Project Catalyst, leading to disruptions in workflow. The issue was isolated to Project Catalyst and was reported as high-priority due to its impact on critical project deadlines.

Symptoms

  • Random disconnections while using Project Catalyst
  • Error message: "Connection to Project Catalyst Server Lost. Attempting to Reconnect..."
  • Error Code: CS-102
  • Issue persisted despite stable internet connection

Troubleshooting Steps Taken

1. Initial Investigation

  • Verified user entitlement and SLA status
  • Checked for recent network changes (none reported by IT team)
  • Confirmed affected users (approx. 5 in the main office)

2. Basic Troubleshooting

  • Provided KB article KB00098 (Troubleshooting Common Network Issues)
  • Steps included clearing cache, restarting router, and checking network settings

3. Escalation to Level 2 Support

  • Root Cause: Overload on the primary database server due to an automated data synchronization job consuming excessive resources
  • Resolution:
    • Terminated the runaway data sync job
    • Re-routed new connections to a secondary database server
    • Monitored system performance to confirm stabilization

Resolution

  • The database load was normalized, and users reported no further interruptions.
  • Case status was marked Resolved after confirmation from the customer.

Preventive Measures & Next Steps

Root Cause Analysis (RCA) to optimize the data synchronization job
✅ Adjust scheduling and resource allocation for background jobs
✅ Improve monitoring and alerting to detect similar issues proactively
✅ Update internal documentation with troubleshooting steps for Error Code CS-102

Related Agents