Sub topic 5
Data Cloud building blocks you need
This chapter covers the Data Cloud concepts you need before you bring Knowledge content in. It assumes you can administer Salesforce (objects, fields, permission sets) and know what a Knowledge article is. It also assumes you know roughly what an Agentforce agent does. You don't need prior Data Cloud experience.
Data Cloud is Salesforce's platform for ingesting, unifying, and activating data from many sources. In newer releases it may appear as Data 360 in the UI and docs. The concepts below are the same under either name. For this tutorial, Data Cloud is where your Knowledge content is stored in searchable form, so an agent can retrieve it.
Why this matters for grounding
A retriever doesn't search your Knowledge object directly. It searches a search index built on data that already lives in Data Cloud. That means every grounded answer depends on a chain of Data Cloud objects:
- Source data arrives through a data stream.
- It is stored in a data lake object.
- It is mapped to a data model object.
- A search index reads that content, and a retriever queries the index.
If you understand each link, you can tell where a missing or stale answer went wrong. Later chapters build on this one.
The core objects
| Concept | What it is | Role in grounding |
|---|---|---|
| Data source | The system the data comes from, such as a Salesforce org | Where Knowledge articles are authored |
| Data stream | A configured connection that brings one source dataset into Data Cloud on a schedule | Carries article data in |
| Data lake object (DLO) | Storage for the ingested data, in the shape of the source | Holds raw article fields |
| Data model object (DMO) | An entity in Data Cloud's common data model, such as Individual or Account | The standardized layer that features read from |
| Mapping | A link from DLO fields to DMO fields | Tells Data Cloud what each source field means |
| Data space | A logical partition of Data Cloud data and configuration | Controls which objects and indexes are visible together |
Data streams
A data stream is a recurring ingestion job for one dataset. For a Salesforce org source, you choose an object and the fields to bring in. Data Cloud then refreshes the data on a schedule. Because ingestion is scheduled, Data Cloud is not a live mirror of your org. A change you make in Salesforce becomes visible to retrieval only after the next refresh and after the search index updates. Chapter 16 returns to this when it covers stale answers.
Data lake objects
A DLO is the landing zone. It mirrors the source structure, with the source field names and types. Treat it as raw storage. You rarely query a DLO directly when you work with grounding.
DLOs come in two kinds:
- Structured: rows and columns, such as Accounts or Orders.
- Unstructured: files and long text, such as PDFs, HTML, or article bodies. Search indexes for grounding are built on unstructured content, which is why you will see unstructured data lake objects (UDLOs) and unstructured data model objects (UDMOs) in the setup flow.
Data model objects
A DMO is a standardized, source-independent entity. Mapping DLO fields to a DMO lets different sources feed the same concept. For example, two systems that each have a customer table can both map into one Individual DMO. Structured DMOs matter most for segments, calculated insights, and unified profiles. For grounding on Knowledge, the unstructured path is the one you will use, and the setup UI handles much of the mapping for you.
You can inspect structured data with SQL in Data Cloud's Query Editor. DMO API names use a __dlm suffix, and standard ones carry an ssot__ prefix.
SELECT ssot__Id__c, ssot__FirstName__c, ssot__LastName__c
FROM ssot__Individual__dlm
LIMIT 10This query is only a way to confirm that Data Cloud sees your data. Your org might not have the Individual DMO populated, and that is fine for this tutorial.
Data spaces
A data space partitions Data Cloud data, so that different brands, regions, or business units don't see each other's objects. Every org has a default data space. Search indexes and retrievers belong to a data space, so a retriever can only query indexes in its own space. Keep this in mind. If a retriever can't find an index you created, a data space mismatch is a common cause.
How the pieces connect
The following diagram shows the path from a Knowledge article to something an agent can retrieve. The first half is what this chapter explains. The second half is covered in later chapters.
Setup requirements
Data Cloud work can fail for access reasons before it fails for design reasons. Check these first:
- Provisioning. Data Cloud must be provisioned in the org. Agentforce grounding features also need to be enabled. Your licenses decide whether they are available.
- Permissions. The people who create streams, indexes, and retrievers need Data Cloud permission sets, such as the admin or data-space-scoped roles. Salesforce updates the names between releases, so verify them in Setup.
- Connection to the source. For a Salesforce org source, the connection uses an integration user. If that user can't see certain articles or fields, they never arrive in Data Cloud.
- Data space access. Users and the agent need access to the data space that holds your index.
Common errors at this layer
- Expecting instant updates. Articles you publish don't appear in retrieval until the stream refreshes and the index catches up.
- Wrong data space. The stream, index, and retriever are created in different spaces, so they can't see each other.
- Missing fields in the stream. If you leave out the article body or title field, nothing downstream can restore it. You would need to edit the stream and re-ingest.
- Confusing structured and unstructured paths. A structured DMO mapping won't produce chunks for semantic search. Grounding on article text needs the unstructured path.
- Limited ingestion access. The integration user's permissions or the article's channel and language settings can silently exclude records.
What comes next
You now have the vocabulary. The next chapter shows how Knowledge content enters Data Cloud through a stream. You will see which article fields to include and how to avoid pulling in draft or archived versions. Later chapters explain how the unstructured data becomes chunks and vectors, and how an index and retriever use them.
Exercise
A support admin publishes a corrected Knowledge article at 9:00. At 9:30 the agent still answers with the old text. Name two Data Cloud-side reasons this can happen, and say where you would check first.
Show answer
Possible reasons: (1) the data stream has not run since the article was published, because ingestion is scheduled, not live; (2) the stream ran, but the search index has not yet processed the new content, so the retriever still returns the old chunks. Check the data stream's last successful refresh time first. If it ran after 9:00, check the search index status next. Working backward from the retriever to the source finds the first link where the new text is missing.
Exercise
Your retriever setup screen doesn't list a search index you just built. The index exists and looks healthy. What is a likely cause, and how do you confirm it?
Show answer
The index and the retriever are probably in different data spaces. Retrievers can only use indexes in their own data space. Confirm by checking which data space the index belongs to and which one you are working in. Then switch to the matching data space, or recreate the index in the right one.
Exercise
What is the difference between a data lake object and a data model object, and which one does a mapping connect?
Show answer
A data lake object stores ingested data in the source's own structure. A data model object is a standardized entity in Data Cloud's common model. A mapping connects fields in the data lake object to fields in the data model object.