> ## Documentation Index
> Fetch the complete documentation index at: https://qawolf-goran-unruffled-wing-322a2c.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a new flow

> Create flow files and folders and write test code manually in the QA Wolf code editor.

If you'd prefer to have AI create and edit flows for you, see [Automate flows with AI](/qawolf/Automate-flows-using-AI-2d35b2a994fb8084b524cfc9aca7c358).

## Create a folder or flow

<Steps>
  <Step>
    From the **Automate** tab, navigate to the location in the file tree where you want to create the new file or folder.
  </Step>

  <Step>
    Click the <Icon icon="square-plus" /> icon in the toolbar.

    <Frame>
      <img src="https://mintcdn.com/qawolf-goran-unruffled-wing-322a2c/l20-3xwG8u36LtQG/images/automate-add.png?fit=max&auto=format&n=l20-3xwG8u36LtQG&q=85&s=086ef96c8c1e8c376c24ca20869215be" alt="Automate Add" width="730" height="372" data-path="images/automate-add.png" />
    </Frame>
  </Step>

  <Step>
    Click **New Folder** or **New Flow**.

    <Check>
      Use clear, descriptive names that reflect your app's feature areas — this helps both you and AI keep flows organized.
    </Check>
  </Step>
</Steps>

## Write test code

Select a flow file from the tree to open it in the code editor. The editor prefills new flows with [AAA](https://www.qawolf.com/blog/intro-to-aaa) (Arrange-Act-Assert) comments as a starting structure.

For a full explanation of flow structure and imports, see [Anatomy of a flow](/qawolf/anatomy-of-a-qa-wolf-test-mobile-edition).

<Note>
  QA Wolf lints your code as you type. See [Debug tests & flows](/qawolf/Debug-tests-and-flows-2c15b2a994fb805c9e92eec7a4a3e83e) if you encounter errors.
</Note>

## Publish your changes

<Steps>
  <Step>
    When ready, click **Review**.

    <Frame>
      <img src="https://mintcdn.com/qawolf-goran-unruffled-wing-322a2c/b1tlntiDSjrenSxx/images/unpublished.png?fit=max&auto=format&n=b1tlntiDSjrenSxx&q=85&s=30ac04a0fd15dded37375ab9c0ccc6f5" alt="Unpublished" width="728" height="298" data-path="images/unpublished.png" />
    </Frame>
  </Step>

  <Step>
    Review your changes in the side-by-side diff.

    <Frame>
      <img src="https://mintcdn.com/qawolf-goran-unruffled-wing-322a2c/gBVgnma15fs5V8an/images/publish.png?fit=max&auto=format&n=gBVgnma15fs5V8an&q=85&s=e12537680a7d929c8fe69032b7f33c34" alt="Publish" width="2282" height="506" data-path="images/publish.png" />
    </Frame>
  </Step>

  <Step>
    Enter a clear description of the change in the **Adding a comment** field.
  </Step>

  <Step>
    Click **Publish changes** to confirm. The publish dialog will close when your changes have been saved.
  </Step>
</Steps>
