> ## 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.

# Update Knowledge Base document

> Update an existing document in your Knowledge Base from within a Workflow.

Update an existing document in your [Knowledge Base](/knowledge-base/overview) from within a [Workflow](/workflows/overview). Use this to keep documentation current automatically — for example, appending meeting notes to a running document or updating a FAQ page.

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

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-0.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=1108043b97edc8dcc40a5035967cff82" alt="Action library with Update Knowledge Base Document selected" width="968" height="714" data-path="images/reference/update-knowledge-base-document-img-0.png" />
    </Frame>

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-1.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=300c72626ad3207bd62f56b8bc21f6df" alt="Update Knowledge Base Document action added to the Workflow" width="782" height="1386" data-path="images/reference/update-knowledge-base-document-img-1.png" />
    </Frame>
  </Step>

  <Step title="Select the document to update">
    Choose how to reference the document using one of three options:

    * **Static Document** — Select a specific document directly from your Knowledge Base. Best for keeping a running document like a feedback log.

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-3.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=9ae5929be8cfd70129199785dbc7e074" alt="Static Document selection from Knowledge Base" width="1078" height="770" data-path="images/reference/update-knowledge-base-document-img-3.png" />
    </Frame>

    * **Knowledge Base Item Reference** — Use a variable that references a Knowledge Base item. Useful when the document to update is a trigger input — for example, augmenting an existing document with a generated summary or FAQ.

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-4.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=5fc52a3a0a42916c479e1f27ab6495d2" alt="Knowledge Base Item Reference variable selector" width="1078" height="208" data-path="images/reference/update-knowledge-base-document-img-4.png" />
    </Frame>

    * **Dynamic Path** — Specify a document path using variables or naming conventions. Select the **Knowledge Base Collection**, enter the **Document Path** separated by forward slashes, and toggle **Create if Not Found** to create the document and any missing folders if they don't exist.

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-5.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=37930da0e71aea835137a25f629f657c" alt="Dynamic Path with Collection, Document Path, and Create if Not Found toggle" width="1074" height="652" data-path="images/reference/update-knowledge-base-document-img-5.png" />
    </Frame>
  </Step>

  <Step title="Select the update method">
    Choose how the new content should be applied to the existing document:

    * **Replace entire document** — Completely replaces the existing content with new content
    * **Append to end** — Adds new content after the existing content
    * **Prepend to beginning** — Adds new content before the existing content

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-6.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=76790cfaa6153f4844a335efb5425ab9" alt="Update method dropdown with Replace, Append, and Prepend options" width="1074" height="226" data-path="images/reference/update-knowledge-base-document-img-6.png" />
    </Frame>
  </Step>

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

    <Frame>
      <img src="https://mintcdn.com/cassidy/S3C8nlCeFAZnY2mJ/images/reference/update-knowledge-base-document-img-7.png?fit=max&auto=format&n=S3C8nlCeFAZnY2mJ&q=85&s=0f7c1f62bc2f464fc8984aa72b780fbd" alt="Document Content field with variable reference" width="1078" height="226" data-path="images/reference/update-knowledge-base-document-img-7.png" />
    </Frame>
  </Step>
</Steps>

## Related

* [Create Knowledge Base Document](/reference/actions/create-knowledge-base-document)
* [Knowledge Base overview](/knowledge-base/overview)
