Skip to main content

Summarize Documents

Generate an AI summary of the requested documents.

Note, this action belongs to Glean Chat API, therefore requires using either the Global Client Token or the User Client Token connection methods.

External Documentation

To learn more, visit the Glean documentation.

Parameters

ParameterDescription
Documents SpecificationsAn array of objects of documents specifications. Can be one of the following specification types:
  • An array of objects containing URLs of documents, Example:
[  {    "url": "https://bluesky.test/blueskytest-1"  },  {    "url": "https://bluesky.test/blueskytest-2"  }]
  • An array of objects containing document IDs, Example:
[  {    "id": "8739af2e1c89456b"  },  {    "id": "7489bf2s8v98738g"  }]
  • An array of objects containing content data, Example:
[  {    "contentId": 101,    "docType": "xxxxx",    "ugcType": "ANNOUNCEMENTS"  },  {    "contentId": 202,    "docType": "xxxxx",    "ugcType": "ANSWERS"  }]
For more information on the different specification options, please refer to Glean's Documentation.
Preferred Summary LengthLength of summary output.
QueryA query that the summary should be about.
TimestampA timestamp associated with the client request.
Tracking TokenAn opaque token that represents this particular result.

Example Output

{
"error": {
"message": "string"
},
"summary": {
"text": "string",
"followUpPrompts": [
"string"
]
},
"trackingToken": "string"
}

Workflow Library Example

Summarize Documents with Glean and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop