Document Playbook Contents (GET)

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.

Special Access Rules 

Playbook must be enabled in your org, and you must have access to at least one playbook.

Resource 

1/connect/document-playbook/document-playbook-contents

Resource Example 

1https://YOUR_INSTANCE.salesforce.com/services/data/v68.0/connect/document-playbook/document-playbook-contents?recordId=800xx0000004C92GAE&userQueryString=termination+notice+period&chunkLimit=10

Available Version 

68.0

HTTP Methods 

GET

Request Parameters for GET 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
recordIdStringEntity ID of the object.Required68.0
user​QueryStringStringText from the document to query against the playbook chunks.Required68.0
chunkLimitIntegerTotal number of matching chunks to fetch. The default value is 10. The maximum value is 100.Optional68.0
documentPlaybook​VersionIdStringID 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.Optional68.0

Response Body for GET 

Playbook Contents