We will continue adding native integrations to Missions that have a profound impact on the ability to create compelling messaging based workflows for Slack in conjunction with the productivity tools you use most. However, you can use Zapier now to unlock the potential integration of its more than 1000 “apps” into your Missions workflows 🙌 .
Mission can work with Zapier by:
- Launching a Mission with a Webhook Trigger from Zapier
- Calling a "Zap" within a Mission via a Webhook Step.
A Tutorial: Connect Missions with Trello using Zapier
- Zapier — This tutorial requires a premium Zapier account as the free tier only supports two-step Zaps and we want to do something slightly more interesting. If you do not already have a premium subscription, a 14-day free trial is available.
- Trello — An easy to use, collaborative task board. The free tier should work fine.
The use case:
- Capture Trello Card info from a user in Slack.
- Create the Trello Card.
- Respond in Slack channel with a link back to the newly created Card.
Step 1: Zapier — Create a “Catch Hook” trigger
From the Zapier web application, click “CREATE ZAP” and select the “Webhooks” trigger. Select the “Catch Hook” webhook type and click “Save + Continue”. Continue without picking off any child keys.
From the “Test Webhooks by Zapier” page, click “Copy to clipboard” to grab the provided URL as we’ll need it to set up the Mission. Do not continue yet, but leave the Zapier page open in your browser — we’ll come back to it.
Step 2: Missions — Create Mission Todo step
From the Missions web application, create a new Mission.
Add a “To Do” step, that includes a Slack “Dialog form” with “Title” and “Description” fields (these will store data captured from a user to be used in the creation of the Trello card.) The Dialog form should look like this:
Set the “Assigned to” to the “Channel where Mission launched.” Once complete, the step should resemble the screenshot below:
Step 3: Missions — Create Webhook step
Add another Mission step, selecting the “Webhook” building block. Create two input variables, one using the name “title” with the dynamic value “Title” from the previous step, and the other “description” using the dynamic value “Description” from the pervious step.
Create an output variable called “short_url.” We will use this to pass back the Trello card URL to the mission.
Enter the Webhook Endpoint you got from Zapier and click the “Test” button to send a test request to Zapier.
When complete, the step should resemble:
Step 4: Missions — Create Notify step
Add a Notify step and enter “Step Instructions” resembling “New Trello card ϟ1 Title created. Click ϟ2 short_url to view.” This message will post into Slack after the Trello card is created.
Set “Notify” to “Channel where Mission launched,” save the step, and publish the Mission. The final Mission authoring summary should resemble:
Step 5: Zapier — Continue creating Zap Trigger
Go back to the Zapier “Set Up Webhook” page and click “Continue.” Skip entering any “Pick off a Child Key” options. You should now see the “Test Webhooks” page, go ahead and test. If all is well you should get the green “Test Successful!” message. This means our test send from Missions was received and parsed by Zapier.
Step 6: Zapier — Configure Trello Action
Create a Zapier “ACTION” and select the Trello app. Select the “Create Card” option, then proceed through the setup of the Trello account, Board, and List as desired.
On the “Edit Template” page under “Board” and “List”, there should be a “Name” and “Description” field. The values for these will come from Slack/Missions. Click the icon at the right of the field to show you a list of available properties (Zapier has these fields as a result of our Webhook “Test” from Missions in a prior step.
To fill the Name field, search for the “Input Data Title” item and select it. To fill the Description field, search for “Input Data Description” and select it.
Continue on to the “Test this Step” page. Go ahead and test to ensure Zapier gets the list of fields to expect back from Trello.
Step 7: Zapier — Configure Webhook Post Action back to Missions
Add another “ACTION” and select the “Webhooks” app. Select “POST” and continue.
On the “Edit Template” page, click the icon at the right of the URL field, and select the “Catch Hook” section. Select the “Actions Complete” item which should be represented as a Missions URL.
Be sure to get that right 👆.
Select “Payload Type” as “json.”
In the Data section, add a “short_url” key. For the value, click the icon at the right of the value field, click the “Create Card” section, and select the “Short URL” item in the dropdown. After completing these steps, your screen should resemble:
“Continue” and “Finish.” Be sure the Zap is enabled.
Step 8: Missions/Slack — Launch The Mission!
From your desired Slack Channel, type the the “/missions” slash command and launch your newly created Mission. Complete the form AND complete the step. Wait just a bit and you should get a response (threaded) resembling: