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

# Run First Workflow

> Run your first real-time AI workflow with ComfyStream and see it live in Comfystream UI.

After you have successfully installed ComfyStream by following the [installation guide](/technical/get-started/install), you can run your first AI workflow.

## Prerequisites

Download [example workflows](https://github.com/livepeer/comfystream/tree/main/workflows/comfystream) from the ComfyStream GitHub repository to test your setup.

## Accessing ComfyStream UI

<AccordionGroup>
  <Accordion title="ComfyStream UI Preview Window">
    When you click the ComfyStream node and select **ComfyStream UI Preview** in ComfyUI, it will open a window that looks similar to the image below:

    <Frame>
      <img src="https://mintcdn.com/comfystream/noGtNoDug2FR2yiZ/images/comfystream-ui-dialog-box.png?fit=max&auto=format&n=noGtNoDug2FR2yiZ&q=85&s=a2668b4a68fc4af75abb9ca17c0a586c" alt="comfystream-ui-dialog-box.png" width="679" height="770" data-path="images/comfystream-ui-dialog-box.png" />
    </Frame>
  </Accordion>

  <Accordion title="Standalone Browser Tab">
    If you prefer to run workflows in a new tab rather than inside ComfyUI, click **Open ComfyStream UI** from the [ComfyStream Menu](/technical/get-started/install#accessing-comfystream).
    This will open a similar dialog box in a new browser tab.
  </Accordion>
</AccordionGroup>

<Note>
  Opening the UI will ask for permission to access your video and audio so it
  can stream your webcam and microphone. You need to provide access to use
  ComfyStream.
</Note>

## Running Your First Workflow

<Info>
  ComfyStream currently supports only the API workflow format. To export a
  workflow in this format, use **Workflow > Export (API)** in ComfyUI. Support
  for the native ComfyUI format is under development and will be available in a
  future release.
</Info>

<Steps>
  <Step title="Select your workflow">
    In the ComfyStream UI, click **Choose files** and select one of the
    previously downloaded workflows.
  </Step>

  <Step title="Start ComfyStream">
    Click **Start Stream** to start the workflow. Once the stream starts, you
    will see **Starting Stream..** at the bottom of the page. Depending on the
    workflow complexity, it may take some time to start. Please wait patiently.
  </Step>

  <Step title="Enjoy your stream">
    Once the stream starts, you will see the AI effects being applied in
    real-time.
  </Step>
</Steps>

<Accordion title="Example Workflow Preview">
  <Frame caption="In this example preview, comfystream UI is accessed from inside comfyUI and the workflow is selected from local storage.">
    <img src="https://mintcdn.com/comfystream/noGtNoDug2FR2yiZ/images/output.gif?s=c9aebd19d547cfa39e1550db2d85dacb" width="1280" height="720" data-path="images/output.gif" />
  </Frame>

  <Tip>
    To see the similar preview, copy the
    [example-workflow.json](https://github.com/livepeer/comfystream/raw/main/workflows/comfystream/sd15-multi-cnet-depthanything-face-api.json)
    to local storage and launch it from comfystream UI as shown above.
  </Tip>
</Accordion>

## Troubleshooting

<Note>
  For advanced users, you can check the logs in the ComfyStream server to see if
  everything is loading properly without any major errors.
</Note>

<Accordion title="Reference Image - Server Logs">
  <Frame caption="ComfyStream Server Logs.">
    <img src="https://mintcdn.com/comfystream/noGtNoDug2FR2yiZ/images/comfystream-logs-image.png?fit=max&auto=format&n=noGtNoDug2FR2yiZ&q=85&s=b89c55fadfbc8b2886659bc12652f7fe" width="3086" height="826" data-path="images/comfystream-logs-image.png" />
  </Frame>

  <Info>
    The ComfyStream server logs are in the ComfyUI log window. Open the bottom panel using the **Toggle Bottom Panel** button at the top-right of the interface.
  </Info>
</Accordion>

<Accordion title="Issue connecting to comfystream when using runpod">
  If you encounter the following error when starting a stream on RunPod:

  ```bash theme={null}
  Error proxying offer: Cannot connect to host localhost:8889 ssl:default [Connect call failed ('127.0.0.1', 8889)]
  ```

  Please check the [ComfyStream Server Settings](/technical/get-started/install#accessing-comfystream) to ensure ComfyStream is running on host `0.0.0.0` when using RunPod. The default **Stream URL** in ComfyStream UI (`http://127.0.0.1:8889`) is correct when using the [RunPod template](/technical/get-started/install#run-with-runpod).
</Accordion>
