Automated workflow example
Learn how to design automated workflows with event triggers.
Workflows are part of apps in Actioner. If you have not installed or created any app so far, first create an app from scratch.
To create a new workflow and open your workflow in canvas mode:
- Navigate to your app's Wokflows tab and create a new workflow.
- Give your workflow a name, provide a description and add tags optionally.
Example workflow: Notify sales team when a deal is updated
In this workflow, we are going to build an automation that notifies sales team in Slack when a deal is updated in HubSpot. The notification will include the deal's name and the changed property and what value the new property is.
Step 1. Select your trigger (Deal property changed HubSpot event)
- Select HubSpot integration.
- On the opening left panel, you can give a new name to your trigger.
- Select
Deal property changed
event in trigger selection field. - Select your HubSpot connection.
Step 2. Select your action (Send message to channel Slack action)
- Add a new node. Select Actions option and then Slack from the opening list.
- On the opening left panel, you can give a new name to your action.
- Select
Send message to channel
in action selection field. - Select your Slack connection.
- In channel field, select the channel you want to send notifications to.
- Click on Message blocks and add a new markdown block. The opening Markdown block field is the area that you can design how your Slack message looks like. Here you can
- add markdown elements to style your notification.
- reference to the values in trigger event inside curlies.
- Add below to Markdown block. This will send a simple message to Slack containing the name of the deal, the name of the updated property and its value.
Deal is updated!
> **Deal name**: {{event.body.deal.properties.dealname}}
> **Updated property**: {{event.body.propertyName}}
> **New value**:{{event.body.propertyValue}}
Example workflow extended: Notify sales team when a deal is closed
This workflow will work very similar to the above one, but this time we'll only send notification when the stage of the deal is updated to Closed win or closed lost.
event.body.propertyName
in the event payload receieved from HubSpot shows the name of the field that is updated while event.body.propertyValue
shows the value of the updated property.
We'll apply a condition to our trigger to only work when
event.body.propertyName
equals to dealstage- AND
event.body.propertyValue
is one of closedwon or closedlost.
Select your trigger node and click on Trigger conditions on the opening left panel.
Select All conditions below option and add a new rule as below:
key | operator | value |
---|---|---|
event.body.propertyName | equals | dealstage |
event.body.propertyValue | is one of | closedwon closedlost |
- You can update your Slack message as below:
Deal is closed!
> **Deal name**: {{event.body.deal.properties.dealname}}
Example workflow extended: Notify different channels depending on the result
This time we'll send message to different channels depending on the deal is closed with a win or loss.
After the trigger, add a new node by selecting Operators and then Condition.
Add a new rule as below. Since it is only one rule, you can select either One or more conditions below or All conditions below option.
key | operator | value |
---|---|---|
event.body.propertyValue | equals | closedwon |
Move the Slack send message action to
true
path of the condition.You can update your Slack message as below:
Deal is won :tada:
> **Deal name**: {{event.body.deal.properties.dealname}}
- Go to
false
path and add a new action by selecting Actions option and then Slack from the opening list.
- We'll be adding the same
Send message to channel
action here, but with a different message.
Deal is lost :cry:
> **Deal name**: {{event.body.deal.properties.dealname}}