Skip to main content
3월 5~6일에 샌프란시스코의 TDX 또는 Salesforce+에서 열리는 AI 에이전트 시대를 위한 개발자 컨퍼런스에 참여하세요. 지금 등록하기.

Design a Common Workflow

Learning Objectives

After completing this unit, you’ll be able to:

  • List the steps to create a workflow.
  • Design a workflow that tracks product feedback.

Create a New Workflow

When creating a new workflow, you have two options: Use a template, or start from scratch. Using a template can save you time with a premade framework, while building from scratch gives you the flexibility to customize the workflow to suit your exact requirements. Let’s explore each option.

Choose a Template

There are a variety of workflow templates available to help you automate common tasks in Slack. If you’re new to building workflows, customizing a template is a great way to get started. You can even browse templates or filter templates by Connector. For example, if you’re creating a workflow to automate calendar events, you might filter templates by Google Calendar.

A list of premade templates to automate common tasks.

Start from Scratch

For more complex workflows, or for tasks that don’t already have a template, you can build a workflow from scratch. If you need some ideas, use Slack AI to create a workflow by choosing a prewritten prompt or by writing your own. You can write a simple natural language prompt like, “Send a welcome message to people that join a channel” and Slack AI automatically generates a workflow for you to customize.

In Workflow Builder for a brand-new workflow, Slack AI appears at the top to ask, What can Slack AI help you automate today? Common use cases are listed and the ability to click into an empty message field to write your own use case.

Design a Product Feedback Workflow

While there are multiple workflow templates for providing feedback, we’ll use this use case to build a workflow from scratch. 

The Use Case

You’re a product manager who's constantly receiving customer feedback about your product. This information comes from different sources, including customer support, sales, marketing, and engineering. The feedback is delivered in inconsistent formats such as Slack DMs, Slack channel messages, and Jira links, and at varying levels of detail. Sometimes it’s way too much information; other times it’s barely any information, so you have to ask time-consuming follow-up questions. 

Set Up a Trigger

This is the perfect opportunity to standardize product feedback collection with Workflow Builder. Let’s get started. 

  • First, create a dedicated channel for collecting feedback. Perhaps you already have a feedback channel, or maybe you want to create one that’s specific to the product you’re working on, for example, #feedback-product-name. If you really want to keep the conversation in the channel streamlined and focused, you could make it a read-only channel with instructions for people to submit feedback through your workflow.
  • To create a new workflow, click your workspace name and select Tools | Workflow Builder. You can also:
    • Select the + sign [alt: plus sign] and select Workflow.
    • Select Automations and go to the Workflows tab.
    • Type the /workflow command in your message composer.
  • Click New Workflow.
  • Select Build Workflow to start from scratch.
  • Edit the workflow details to:
    • Give your workflow a name, for example: Submit product feedback.
    • Add a short description: Fill out a short form to submit your product feedback to the feedback channel.
    • You can upload a workflow image (optional).
    • Click Save.
  • Choose an event to trigger the workflow. In this case, we want to start the workflow From a link in Slack.

On the Change how this workflow starts modal, the dropdown menu selection is set to start From a link in Slack. The workflow link is displayed below with a button to Copy Link.

  • Click Continue.

Add a Step to Fill Out a Form

Now that your trigger is set up, let’s add a sequence of steps to your workflow. When it comes to feedback, it’s best to set some parameters for the kind of feedback you want to collect. Prompt users to fill out a form with mandatory fields. 

  • In Workflow Builder, click Add Steps.
  • Find Forms and click Collect info in a form.
  • Give the form a title and add the questions you’d like answered. You can select from different answer types including Short answer, Dropdown, Multiple choice, Slack user or channel, and Date. You can also make certain questions mandatory or optional.

Collect info in a form modal showing Form Title and Questions with the ability to add a question and preview the form.

  • Click Save.

Add Steps with Variable Data

Next, choose where to save form responses. It’s best to share feedback in-channel for others to read and to privately send the submitter a confirmation message. This is where variable data plays a big role. 

  1. Click Add Steps in your workflow.
  2. Select Messages and click Send a message to a channel.
  3. Select a channel to send the message: Channel where the workflow was used.
  4. The form questions and responses auto-populate as variables in the body of the message. To add information to the channel message, consider tagging the submitter:
    • Enter: New Product Feedback submitted by
    • Click Insert a variable
    • Select Person who submitted the form
  5. Click Save.
  6. In the Steps menu, select Messages and click Send a message to a person.
  7. Select a channel to send the message: Person who submitted the form.
    • Add a message: Thank you for submitting product feedback. You can see any updates or comments related to your feedback by following along in
    • Click Insert a variable.
    • Select Channel where the workflow was used.
  8. Click Save.

Workflow Builder gives you a preview of how each message will appear with placeholders for the variable data.

In the Workflow Builder for the Submit product feedback workflow, the workflow is set to Start from a link in Slack. Then the workflow will do these things: Collect info in a form with customized form questions, Send a message to Channel where the workflow was used with answers to the form questions, and Send a message to Person who submitted the form to confirm the submission.

Your workflow doesn’t have to stop there. If you want to do more, you can also send this information into Google Sheets for easier tracking and analysis, to PagerDuty to spin up a new incident, or to Trello to create a new card on your product feedback board. This ensures your workflow is tailored to your specific processes and technology. 

Publish Your Workflow

Once you’re satisfied with your workflow, simply click Finish Up and Publish. Voila! Your workflow is ready to be shared with others. If it starts with a link, make sure to share it in Slack so that people can find and use your new workflow. You learn about other ways for users to find your workflow in the next unit.

If you encounter an error publishing your workflow, try these common solutions:

  • If you're using the Slack app, there may be a caching issue. Try publishing from the Slack browser.
  • If your workflow references a specific user, make sure that user is a member of the workspace in which the workflow is being published.
  • If you encounter an error when publishing a workflow that you imported originally as a template, make sure that the new workflow references valid channels and users. If a private channel is referenced, ensure the channel name is accurate.

You can now explain the options for creating new workflows and select the option that’s right for your use case. By designing a common workflow from scratch, you know how each component is used and configured to create a cohesive workflow from end-to-end. Now it’s time to share your workflow with a broader audience, monitor its usage, and make changes as needed.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기