Sub topic 6
Bringing Knowledge content into Data Cloud
This chapter covers how published Salesforce Knowledge articles reach Data Cloud, where a search index can use them. It assumes you can administer Salesforce objects, fields, and permission sets. It also assumes you know what a Knowledge article is, and that you know Data Cloud stores data in data streams and data model objects (DMOs).
What ingestion does and does not do
Ingestion copies article content from Salesforce Knowledge into Data Cloud. It does not chunk the text, create embeddings, or build a retriever. Those steps come later. If an article never arrives in Data Cloud, no later step can find it.
The path has four stages:
- An article version is published in Knowledge.
- A data stream reads the Knowledge object from the connected Salesforce org.
- The stream stores the rows in a data lake object (DLO).
- The DLO is mapped to a DMO, such as the Knowledge article DMO, which the search index reads.
Confirm what should be ingested
Only some article versions are candidates. Draft and archived versions are not what you want an agent to quote. Before you configure anything, list what is online in the language you plan to support. In Salesforce, you can run this SOQL query in Developer Console or Workbench:
SELECT Id, Title, UrlName, PublishStatus, Language, LastPublishedDate
FROM Knowledge__kav
WHERE PublishStatus = 'Online'
AND Language = 'en_US'
ORDER BY LastPublishedDate DESC
LIMIT 20Knowledge__kav is the default API name of the article version object. Your org may use a different name if Knowledge was set up with custom naming. Keep this list. Later, you can compare it to what Data Cloud holds.
Setting up the connection
The exact screens change between releases, so treat this as the working model and check the current Salesforce documentation for labels.
- Make sure Data Cloud is provisioned and connected to the org that holds the Knowledge articles.
- In Data Cloud, create a data stream from the Salesforce CRM connector. Select the Knowledge article version object as the source.
- Choose the fields to bring in. At minimum, select the identifier, title, URL name, publish status, language, and the rich text or long text fields that contain the article body. Add any field you may filter on later, such as a data category or a custom audience field.
- Set the refresh mode and schedule. This decides how fresh the content is.
- Save and deploy the stream, then confirm that the DLO has rows.
- Review the mapping to the Knowledge DMO and correct any field that did not map.
A field you leave out of the stream cannot be used in a retriever filter or returned to a prompt. Adding fields afterward is possible, but it means changing the stream and often rebuilding the index. Selecting them on the first pass saves rework.
Which fields matter
| Field role | Example fields | Why it matters |
|---|---|---|
| Identity | Id, UrlName | Lets you trace a retrieved result back to its article |
| Display | Title | Lets the prompt cite the article by name |
| Content | Body or answer fields | The text that is chunked and embedded |
| Lifecycle | PublishStatus, LastPublishedDate | Helps you exclude drafts and judge freshness |
| Segmentation | Language, data categories, custom fields | Supports filters that limit results |
Pick the content fields with care. Chunking works on the text you select, so an article whose real answer sits in a field you skipped will produce empty or useless chunks.
Refresh and freshness
A published change does not appear in Data Cloud at once. Three delays stack up:
- the stream's refresh schedule,
- the mapping and processing time in Data Cloud,
- the time the search index needs to pick up the change.
An article that was just corrected can still return its old text for a while. For policy content such as prices or return windows, check the schedule and the index refresh behavior before you go live. Tell content owners how long a change takes to appear.
Verifying the ingestion
Check the result in three places, from the source toward the destination.
- Compare the record count in the DLO with the query results from Knowledge. Counts will differ if the stream includes draft or archived versions or other languages.
- Open the Knowledge DMO in Data Explorer and inspect a few rows. Look at the title, status, language, and body fields. Make sure the body is not empty and that HTML in the body is acceptable for your use.
- Pick one recently edited article and compare its text in Data Cloud with the text in Knowledge.
Common errors
- No rows in the DLO. The stream may not have run yet, or the connection or the integration user may lack access to the Knowledge object. Check the stream's refresh history and the user's permissions.
- Rows exist but the body is empty. The article text field was not selected, or the mapping skipped it.
- Drafts or old versions appear. The stream has no filter on publish status. Filter in the stream if it supports it. Otherwise, make sure your retriever filters on it later.
- Wrong language results. Articles in several languages were ingested together. Plan a language filter, or limit the stream.
- Stale answers. The refresh schedule is longer than the update frequency of the articles.
- Missing articles. The integration user cannot see them. Visibility in the connected org controls what the stream can read.
What comes next
When the DMO holds the articles you expect, you can create a search index over it. The index decides how text is chunked and embedded, which is the subject of the next chapters.
Exercise
A support team reports that the agent still quotes a return window of 30 days, although the article was changed to 14 days and published an hour ago. The SOQL query shows the new version as Online. Name two places in the ingestion path to check, and one way to confirm the cause.
Show answer
Check the data stream's refresh schedule and last run time, and check whether the search index has processed the update. To confirm, open the Knowledge DMO in Data Explorer and compare the body text of that article with the text in Knowledge. If the DMO still shows 30 days, the stream has not refreshed yet. If the DMO shows 14 days, the delay is in the search index.
Exercise
You build a stream but leave out the field holding the article's audience label. Later you want a retriever filter that returns only articles for partners. What is the problem, and what must you do?
Show answer
The audience field is not in the DLO or DMO, so a retriever cannot filter on it. Edit the data stream to add the field, make sure it maps to the DMO, and then update or rebuild the search index so it includes the field.