Document Playbook Contents (GET)
Document Playbook Version (POST)
Previous Versions
Get the playbook content chunks that match a user query by using vector similarity search.
This resource identifies the playbook mapping and the active playbook version for the specified record, runs a vector similarity search over the playbook content with the query text, and returns the matching content chunks with their metadata. To search against a specific playbook version and bypass the mapping and active-version lookup, pass documentPlaybookVersionId.
Playbook must be enabled in your org, and you must have access to at least one playbook.
1/connect/document-playbook/document-playbook-contents1https://YOUR_INSTANCE.salesforce.com/services/data/v68.0/connect/document-playbook/document-playbook-contents?recordId=800xx0000004C92GAE&userQueryString=termination+notice+period&chunkLimit=1068.0
GET
| Parameter Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
recordId | String | Entity ID of the object. | Required | 68.0 |
userQueryString | String | Text from the document to query against the playbook chunks. | Required | 68.0 |
chunkLimit | Integer | Total number of matching chunks to fetch. The default value is 10. The maximum value is 100. | Optional | 68.0 |
documentPlaybookVersionId | String | ID of a specific DocumentPlaybookVersion to use for the search. When provided, the record-type, assignment, and active-version lookup chain is skipped and the search runs against this version directly. | Optional | 68.0 |