> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cassidyai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Knowledge Base document

> Create a new document in your Knowledge Base from within a Workflow.

Create a new document in your [Knowledge Base](/knowledge-base/overview) from within a [Workflow](/workflows/overview). Use this to automatically generate and store documentation, meeting notes, reports, or any content your team needs to reference later.

<Steps>
  <Step title="Add the action">
    In the Workflow builder, click **+** between blocks and select **Create Knowledge Base Document** from the action library.

    <Frame>
      <img src="https://mintcdn.com/cassidy/WFAGtWUtSYpipzga/images/reference/create-knowledge-base-document-img-0.png?fit=max&auto=format&n=WFAGtWUtSYpipzga&q=85&s=ccad350cb916918880d1f5b7e56653e0" alt="Action library with Create Knowledge Base Document selected" width="978" height="612" data-path="images/reference/create-knowledge-base-document-img-0.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cassidy/WFAGtWUtSYpipzga/images/reference/create-knowledge-base-document-img-1.png?fit=max&auto=format&n=WFAGtWUtSYpipzga&q=85&s=489072e340b59cbb254cbaf223c6445f" alt="Create Knowledge Base Document action added to the Workflow" width="1018" height="1382" data-path="images/reference/create-knowledge-base-document-img-1.png" />
    </Frame>
  </Step>

  <Step title="Enter the document name">
    Specify the name for the new document. Use **#** to [insert variables](/guides/prompt-engineering#workflow-prompts) from previous steps or the trigger to dynamically generate the name.

    <Frame>
      <img src="https://mintcdn.com/cassidy/WFAGtWUtSYpipzga/images/reference/create-knowledge-base-document-img-3.png?fit=max&auto=format&n=WFAGtWUtSYpipzga&q=85&s=60ded076978cb93f786f514aff523782" alt="Document Name field with variable reference" width="636" height="137" data-path="images/reference/create-knowledge-base-document-img-3.png" />
    </Frame>
  </Step>

  <Step title="Enter the document content">
    In the **Document Content** field, specify the text for the document body. Reference output variables from previous steps — such as a [Generate Text](/reference/actions/generate-text) action — to populate the document with dynamically generated content.

    <Frame>
      <img src="https://mintcdn.com/cassidy/WFAGtWUtSYpipzga/images/reference/create-knowledge-base-document-img-4.png?fit=max&auto=format&n=WFAGtWUtSYpipzga&q=85&s=f746dbb6d215daadf44f05590d99cfbf" alt="Document Content field with variable reference" width="634" height="183" data-path="images/reference/create-knowledge-base-document-img-4.png" />
    </Frame>
  </Step>

  <Step title="Select the location">
    Choose the folder or collection within your Knowledge Base where the new document should be saved.

    <Frame>
      <img src="https://mintcdn.com/cassidy/WFAGtWUtSYpipzga/images/reference/create-knowledge-base-document-img-5.png?fit=max&auto=format&n=WFAGtWUtSYpipzga&q=85&s=356fd4483e94a27cc04fc231c8b1db9d" alt="Location selector showing Knowledge Base folders" width="628" height="478" data-path="images/reference/create-knowledge-base-document-img-5.png" />
    </Frame>
  </Step>
</Steps>

## Related

* [Update Knowledge Base Document](/reference/actions/update-knowledge-base-document)
* [Upload Knowledge Base File](/reference/actions/upload-knowledge-base-file)
* [Knowledge Base overview](/knowledge-base/overview)
