Slack flow examples

Dina Bennett
Dina Bennett
  • Updated

Ziflow administrators or Enterprise licensed users with custom permissions can set up flows. 

Available on:  Pro Enterprise

In addition to connecting your Slack account, you will need to connect your Ziflow app. See Connect your Ziflow app.

If you are new to Ziflow automation flows and need an introduction, read Understand automation flows (Connect).

Basic flow creation

  1. Select Connect in Ziflow’s main navigation and select Create Flow.

    create-flow-open.png
     
  2. Select Ziflow as your flow’s application source. If you don't see it, follow the instructions in Connect your Ziflow app.
  3. Enter a name for your flow.
  4. Select the event that will start the flow. See Ziflow events for a list of all Ziflow events and details on each setting.

    choose-event-ziflow.png
  5. Add Slack Zibots to the flow.

Send a notification to Slack on proof creation

This flow sends a notification with a proof link when a proof is created in Ziflow.

  1. Start with a Basic flow creation and select Ziflow as your application source.

  2. Select the New Proof/Version Ziflow event, configure, and select Next

  3. Select the Send to Slack channel Zibot.

  4. Enter the channel and the message in the Zibot configuration. In this example, the message is sent to the ziflow-reviews-test channel and includes a message using text layout with a link to the public URL.

    send-new-proof-notification-to-Slack-1.png

     

  5. Add the Add or update proof integration property Zibot to the workflow. This Zibot adds information from Slack to the of a newly created proof. For information about this Zibot, see 

  6. Configure the Zibot by selecting the connection and integration property information. For the property value, reference the Send to Slack channel Zibot's channel as shown. Select Next.

    send-new-proof-notification-to-Slack-2.png

     

  7. Select Save & Turn on
  8. Test the flow by creating a new proof. Verify that a notification is sent to the designated Slack channel, and verify that the Slack information in the Integrations tab are filled out correctly on the proof.

    send-new-proof-notification-to-Slack-3.png
     

If the Slack channel is private, you need to allow Ziflow to access the channel. See ******

Send a notification to Slack on @mention

This flow sends a Slack notification to a user when they are @mentioned in a comment in the Ziflow Proof Viewer. 

  1. Start with a Basic flow creation and select Ziflow as your application source.

  2. Select the New comment/reply Ziflow event, configure, and select Next

  3. Select Create a path from the Zibot list.

  4. Name the path. Under Rules, enter the following and select Next:
    {$.comment.comment} contains reviewer:
    For more information, see Add a path to an automation flow.

    Slack-send-on-mention-1.png

     
  5. Select the plus sign to add an action to the conditional path. When a path’s conditions are met, your flow executes the actions you’ve added after it.

  6. Select the Obtain Slack User by email Zibot.

  7. Copy the expression below and paste it into the Email field. Select Next.

    Slack-send-on-mention-2.png

     
    #{$.proof.stages.members[id=$match($$.comment.comment, /\$\{reviewer:([a-f0-9-]+)\}/)[0].groups[0]].email}#

     

  8. Add the Send to Slack user Zibot to the path.

  9. Select Enter ID manually and select the user ID collected from the previous Zibot for the User ID field. For the text message, you can use tokens so the user can see some details related to the mention.

    Slack-send-on-mention-3.png

     

  10. Test the flow by using @mention on someone from your Slack workspace and verify that they are notified in the Slack app.
    ​The person you @mention must be in your Slack workspace to be notified.

    Here's how the notification appears in Slack:

    Slack-send-on-mention-example-result.png

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.