SG Webhooks + Zapier Webhooks + Send Email

Description

Zapier is an online automation tool that connects your favorite apps, such as Gmail, Slack, Mailchimp, and more. You can connect two or more apps to automate repetitive tasks without coding or relying on developers to build the integration.

Today, I would show you how Zapier is triggered by Shotgun Webhook and then send email.

Use case

When a task finished, send email to downstream task assignee. Below is the pipeline in Zapier.

Pipeline

Let’s start to build this pipeline.

Prepare

  • Enable Webhooks in Shotgun.
  • Understand Rest API
  • Have an email account support SMTP. For example Gmail.

Setup Shotgun Webhooks

Notes: URL will be generated by Zapier later.

Zapier

  1. Catch Shotgun task status changed.

  2. Only If task status new value is fin

  3. Get Shotgun authentication

  4. Get downstream task ID

  5. Only continue if downstream task Exist

  6. Get downstream task assignee

  7. Get task assignee email

  8. Send email

    Notes: Zapier will ask to input smtp email informaiton.

    1. Enable the Zapier App

      Turn on

Result

Your_task_start

Other thinking

10 Likes

This is a cool guide and when I tested the webhooks they looked promising, but I think things would be much simpler if you could choose to send extra fields and maybe even linked fields inside the payload. Is this something that you are planning already or could that maybe be a feature request for the future?

1 Like

Hi @xizted,

Thanks for your reply. I agree with you. If it could provide more information on one request, it would be more helpful. As you know, Webhooks is beta now. Yes, it would be a good feature request. You could follow this submitting the request.

Thanks

Loney

2 Likes