< Workshops

Build a random reaction GIF generator with Workflow Builder

Like pulling the perfect reaction GIF out of a hat

Difficulty

Beginner

Time

15 minutes

Build a random reaction GIF generator with Workflow Builder

Requirements

  • A testing workspace (get an Enterprise Grid sandbox for free by joining our developer program)
  • Workflow Builder

Create your own reaction GIF generator

Workflow Builder helps you automate everyday tasks and processes in Slack. Workflows can be as simple or as complex as you’d like, and can even be connected to other apps you use to get work done. In this workshop, you’ll learn how to build a custom automation with Workflow Builder to generate random GIFs with no coding required!

Step 1

Add a workflow step for Giphy

Now it’s time to add steps to your workflow. Slack has built-in steps and third-party integration steps (connectors) that can be found on the right sidebar. For this workflow, you will use the GIPHY connector. This step will prompt a person to fill out a form to search for a random GIF and save the form information to be used in the following steps.

 

  1. Search for or navigate to the Giphy step

  2. Click Random GIF

  3. Leave the box checked for “Generate a form…”  and click Next

  4. Configure the Random GIF step (optional):

    • Change the Form title, e.g. “Random Cat GIF”

    • Click the Tag question, enter a Default value (e.g. “cat”), and click Done

    • Click the Rating question, change the Default value, and click Done

    • Click Next

    • Click Save

Collapse

Step 2

Send the random GIF to the current channel

The next step in the workflow is to send the random GIF to the current channel.

 

  1. In the Search steps input field, type message

  2. Click Send a message to a channel


  3. Under Select a channel, make sure Channel where the workflow was used is selected

  4. Clear the default contents of the Add a message text box

  5. Click {} Insert a variable

  6. Click Random GIF: Giphy GIF

  7. Click Save

Collapse

Step 3

Name your workflow

It’s important to name your workflow so people can understand what the workflow is and how it might be used. 

 

  1. Click the Untitled Workflow at the top of the form


  2. Update the workflow Name, Description, and click Save

Collapse

Step 4

Save and publish your workflow

  1. Click Finish Up

  2. Verify the Name and Description are correct

  3. Verify the Permissions (optional)

  4. Click Publish

Collapse

Step 6

Test your workflow shortcut

After the workflow is added to a channel, you can trigger the workflow using a slash command.

 

  1. In the Message box, start by typing a slash “/” followed by the first few letters of the name of your workflow

  2. Make sure the correct workflow is highlighted and press Enter

Collapse