Skip to main content
Retrieve the contents of a Knowledge Base folder within a Workflow. Returns a list of files in the folder that you can loop over or reference.
1

Add the action

In the Workflow builder, click + between blocks and select Get Knowledge Base Folder Contents from the action library.
Action library with Get Knowledge Base Folder Contents selected
Get Knowledge Base Folder Contents action added to the Workflow
2

Select the folder

Choose how to reference the Knowledge Base folder using one of three options:
  • Static folder — Select a specific folder directly from your Knowledge Base. Best when you always need the same folder, such as a client’s document folder or a specific project directory.
Static folder selection from Knowledge Base
  • Knowledge Base Item Reference — Use a variable that references a Knowledge Base folder. Useful for dynamically selecting folders based on client names or project IDs from previous Workflow steps.
Knowledge Base Item Reference variable selector
  • Dynamic Path — Specify a folder path using variables or naming conventions. Select the Knowledge Base Collection where the folder is located, then enter the Folder Path separated by forward slashes. Useful for accessing folders based on dynamic inputs like client names or date-based directories.
Dynamic Path with Collection and Folder Path fields
3

Use the folder contents in subsequent steps

Once configured, the following variables are available in later Workflow steps:
  • Folder Name — The name of the retrieved folder
  • Link to Folder — A direct link to the folder in the Knowledge Base
  • Knowledge Base Item Type — The type (e.g., Folder, Collection)
  • Folder Contents — A list of the item names within the folder
Output variables available from Get Knowledge Base Folder Contents
Common pattern: Loop + Get Knowledge Base FileA powerful combination is to use Get Knowledge Base Folder Contents with a Loop and Get Knowledge Base File to process each file in a folder individually. For example, retrieve a client folder containing multiple contracts and proposals, then loop through each document to generate summaries or extract key terms.
  1. Use Get Knowledge Base Folder Contents to retrieve all files in a folder
  2. Add a Loop action that iterates over the folder contents
  3. Within the Loop, use Get Knowledge Base File to retrieve each individual file’s content
  4. Process each file (e.g., summarize, extract information, or analyze)
Workflow showing Get KB Folder Contents feeding into a Loop
Loop action iterating over folder contents
Get Knowledge Base File inside the Loop using the current item