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

> ## Agent Instructions
> Follow the content contract in AGENTS.md.
> Treat text as the canonical explanation; video and screenshots enhance it.
> Do not publish unverified product behavior or duplicate an existing canonical article.

# Search past Chats, documents, ads, and files

> Find a past conversation, Canvas document, static ad, or uploaded file and return to the exact Chat where it was created.

## What this article shows you

Use **Search** to return to work you already completed instead of recreating it. A result takes you back to the source Chat. From there, select the matching document or file when it does not open automatically.

## Practical use cases

<CardGroup cols={2}>
  <Card title="Reopen a past decision" icon="message-square-search">
    Search for a distinctive phrase from a previous conversation and jump to
    the message where the decision was made.
  </Card>

  <Card title="Find a Canvas document" icon="file-text">
    Search a document title or a phrase from its contents, then open that
    document in the original Chat.
  </Card>

  <Card title="Locate an uploaded source" icon="paperclip">
    Search a filename or text from a supported uploaded file and return to the
    message where the file entered the workflow.
  </Card>

  <Card title="Return to an ad draft" icon="megaphone">
    Search a distinctive headline or line of copy to find the Chat that
    produced the static ad.
  </Card>
</CardGroup>

## Video walkthrough

<Frame caption="Search from Home, open the source Chat, and verify the matching Canvas document.">
  <video className="w-full h-auto rounded-xl" controls preload="metadata" poster="/images/tutorials/covers/search-chats-documents-and-files.png" playsInline muted alt="Search from Home, open the source Chat, and verify the matching Canvas document" aria-label="Silent step-by-step walkthrough for searching past work in StefanBrain">
    <source src="https://mintcdn.com/copyaccelerator/3GD94oVFF58FB4y8/videos/knowledge-base/search-chats-documents-and-files.mp4?fit=max&auto=format&n=3GD94oVFF58FB4y8&q=85&s=a9f28efba464b730880affc2f3d5be86" type="video/mp4" data-path="videos/knowledge-base/search-chats-documents-and-files.mp4" />

    <a href="/videos/knowledge-base/search-chats-documents-and-files.mp4">
      Watch the Search walkthrough
    </a>
  </video>
</Frame>

## How Search works

Search checks the unarchived Chats you can access. It can match:

* Chat names and summaries
* Message text
* Canvas document titles and text
* Static ad copy
* Supported uploaded-file names and extracted text

Each result represents a Chat. An icon indicates what matched, and the preview shows the matching text. Results inside a Project also show that Project's visual cue.

A result opens its source Chat near the matching work when that target is available. For a Canvas document or file, you may need to select the matching item inside the Chat after it opens.

## What you will do

1. Open Search.
2. Enter a distinctive phrase or filename.
3. Check which Chat and item matched.
4. Open the result and verify the destination.

## Follow along

<Steps>
  <Step title="Open Search">
    Select **Search** in the Chat sidebar. You can also press **Cmd K** on a Mac or **Ctrl K** on Windows.

    The search field reads **Search chats...**.

    <Frame caption="Open Search from the Chat sidebar or use the Cmd K shortcut on a Mac.">
      <img src="https://mintcdn.com/copyaccelerator/0b7kYwfWqo7VfDOQ/images/knowledge-base/chat/search-open-control.png?fit=max&auto=format&n=0b7kYwfWqo7VfDOQ&q=85&s=94adf32799ab52a7277a0867b69e5773" alt="Search control in the Chat sidebar with the Cmd K shortcut" width="220" height="74" data-path="images/knowledge-base/chat/search-open-control.png" />
    </Frame>
  </Step>

  <Step title="Search for a distinctive phrase">
    Enter two or three words that are likely to appear only in the work you
    need. For example, search `approval bottleneck` to find a document that
    uses that phrase.

    Search matches partial words, so you can start with the part you remember.

    <Frame caption="A distinctive phrase narrows Search to one source Chat and matching Canvas document.">
      <img src="https://mintcdn.com/copyaccelerator/0b7kYwfWqo7VfDOQ/images/knowledge-base/chat/search-filtered-document-result.png?fit=max&auto=format&n=0b7kYwfWqo7VfDOQ&q=85&s=16819b99781004b3e4e9ad14890862c0" alt="Search for fall campaign approval returning the Launch research report from the Glow Labs campaign brief Chat" width="590" height="410" data-path="images/knowledge-base/chat/search-filtered-document-result.png" />
    </Frame>
  </Step>

  <Step title="Choose the right result">
    Read the Chat name, matching item name, preview, and Project cue before
    opening a result. A document or file result can appear as:

    `Chat name › Item name`

    Use the arrow keys to move between results and press **Enter**, or select a result with your pointer.
  </Step>

  <Step title="Verify where Search took you">
    Confirm that the expected source Chat opened. For a Canvas document or
    file, select the matching item in that Chat if it did not open
    automatically. Then verify the title and contents before continuing.

    <Frame caption="If the item does not open automatically, select the matching output inside the source Chat.">
      <img src="https://mintcdn.com/copyaccelerator/0b7kYwfWqo7VfDOQ/images/knowledge-base/chat/search-source-chat-item.png?fit=max&auto=format&n=0b7kYwfWqo7VfDOQ&q=85&s=00ba2c6da5e993743bb7c474c09f1afc" alt="Glow Labs campaign brief Chat showing the Launch research report output card" width="640" height="244" data-path="images/knowledge-base/chat/search-source-chat-item.png" />
    </Frame>

    <Frame caption="Verify the current Canvas title and content before continuing.">
      <img src="https://mintcdn.com/copyaccelerator/0b7kYwfWqo7VfDOQ/images/knowledge-base/chat/canvas-launch-research-report.png?fit=max&auto=format&n=0b7kYwfWqo7VfDOQ&q=85&s=bd2bb1b28180489b88309f5f54a88acc" alt="Launch research report open in the current Canvas workspace panel" width="564" height="440" data-path="images/knowledge-base/chat/canvas-launch-research-report.png" />
    </Frame>
  </Step>
</Steps>

## Make the result useful

Search for language that belongs to the work, not broad labels that appear everywhere. A customer objection, campaign phrase, document title, or filename usually narrows the results faster than `ads`, `launch`, or `notes`.

When several results look similar, use the Project cue and item name to confirm the client or workflow before continuing.

## Common mistakes and troubleshooting

* **Using a broad one-word query.** Add a second distinctive term, a filename, or a phrase from the deliverable.
* **Opening the first familiar Chat name.** Check the matching item and Project cue before selecting the row.
* **Expecting a file result to open a separate file viewer.** Search returns to the source message. Open the file from that Chat when needed.
* **The matched Canvas item did not open automatically.** Use the result's item name to select the matching output inside the source Chat.
* **Search is temporarily unavailable.** Select **Retry**. If the error continues, refresh StefanBrain and run the same query again.
* **The phrase is not in the current Canvas document.** Search again with the document title or language from its current contents.

<Frame caption="If Search finds nothing, correct the wording or try a shorter distinctive phrase, filename, or title.">
  <img src="https://mintcdn.com/copyaccelerator/0b7kYwfWqo7VfDOQ/images/knowledge-base/chat/search-no-results-recovery.png?fit=max&auto=format&n=0b7kYwfWqo7VfDOQ&q=85&s=0e1c508bfd06d4e984ed7f78c06025d8" alt="Search with a misspelled campaign phrase showing no Chats found and prompting for a different term" width="590" height="410" data-path="images/knowledge-base/chat/search-no-results-recovery.png" />
</Frame>

## Next steps

* [Give Chat the right context](/knowledge-base/chat/give-chat-the-right-context)
* [Start your first useful Chat](/knowledge-base/get-started/start-your-first-chat)
* [Understand Products, Projects, and Chats](/knowledge-base/get-started/products-projects-and-chats)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.