Back to Blog
how-toproduct

How to Create Your First Flow

Jesse Reitz, Founder of DocuCodes

Join the Mission to Fix Documentation

We’re building DocuCodes to eliminate the "Knowledge Tax" for engineering teams everywhere. We are currently in early access and would love your feedback as we prepare for our full public launch.

Request Early Access
Screen shot of a DocuCodes Flow

This post walks you through how to create your first DocuCodes Flow.

Create a Flow

  1. Click "Create Flow"
  2. Enter the top-level Flow information:
    1. "Title" - The title for your flow
    2. "Description" - An optional description for your flow
  3. Click "Start Flow"
  4. Add Stops as described below An image showing the "Create Flow" interface of a DocuCodes Flow

Choose Your Code Snippet

Each Stop in your Flow needs an associated code snippet. To add a Stop you need a link to the code snippet on GitHub. We recommend using a permalink to ensure you reference code as part of a specific commit. You can generate GitHub permalinks in several ways.

Pro-Tip: Using the VS Code extension is the fastest way to build a Flow. You can trace your logic in your editor and grab permalinks without ever going to GitHub. See more below.

GitHub

You can copy permalinks directly in GitHub. GitHub provides the following guides:

For quick reference:

To copy a permalink to a code snippet

  1. Select the lines you want to copy
  2. Click the 3-dot button that appears
  3. Click "Copy permalink" An image showing the the interface to copy a permalink to a specific code snippet in GitHub

To copy a permalink to an entire file

  1. Navigate to the file you want to link to
  2. Click the 3-dot button in the top right
  3. Click "Copy permalink"

An image showing the the interface to copy a permalink to an entire file in GitHub

VSCode

The official GitHub Pull Requests extension adds a "Copy as" option to the context menu. From here you can select "Copy GitHub Permalink" to get a permalink compatible with DocuCodes.

An image showing the "Copy as GitHub Permalink" context menu option in VSCode

JetBrains Products (IntelliJ, PyCharm, PhpStorm, etc.)

JetBrains products generally include plugins for working with GitHub pre-installed. You can find an option "Copy Link to GitHub Repository" in the context menu when selecting a code snippet. This will copy a permalink to the snippet in GitHub.

An image showing the "Copy Link to GitHub Repository" context menu option in JetBrains IntelliJ

Add a Stop to Your Flow

Once you have a permalink, you can add a Stop to your Flow.

  1. In your Flow, paste your permalink into the "Stop Permalink" input
  2. Click "Add a Stop"

An image showing the "Create Flow Stop" interface of a DocuCodes Flow

  1. Your code snippet will appear along with an option to add a "Stop Title" and a "Stop Description". You can also delete your new Stop.

An image showing the "Edit Flow Stop" interface of a DocuCodes Flow

Viewing Your Flow

From the homepage in your DocuCodes account, click "View" on the Flow you want to open.

  • Click "Start" to begin to view the Flow. You will step through each Stop in the Flow.
  • Click "Copy Link" to share your Flow (see the "Sharing Your Flow" section below).

An image showing a user landing in the "View" state of a DocuCodes Flow

Click "Next Stop" to step through each Stop in your Flow.

An image showing a user stepping through a DocuCodes Flow

Sharing Your Flow

  1. From your DocuCodes home page, click "View" for the Flow you would like to share
  2. Click "Copy Link"
  3. You will see a confirmation that a link to the Flow has been copied to your clipboard
  4. Paste this link in order to share it with others Note: Copied links are public. Anyone who has the link will have access to view your Flow. This means they will be able to view any code contained in your Flow. They will not be able to access the code on GitHub, only the specific snippet contained in the Flow. Only members of your team account (if applicable) can edit or delete it. An image showing a DocuCodes Flow after the "Copy Link" button is pressed

Join the Mission to Fix Documentation

We’re building DocuCodes to eliminate the "Knowledge Tax" for engineering teams everywhere. We are currently in early access and would love your feedback as we prepare for our full public launch.

Request Early Access