##Introduction
Have you ever wanted to subscribe to conversations in Help Scout? With Help Scout webhooks and webscript.io, now you can! Just add subscribed-yourname
as a tag to a conversation (where yourname
is the first part of your company email address), and you'll get emailed when a change comes in.
##Set up
- Make a webscript.io account. It's free to test.
- In webscript.io, make a new script. Copy in the code from the_code.lua (below) in this gist and paste it into the script.
- Be sure to change the variables at the top.
- If you need an SMTP server, you can get one from Mandrill in seconds (free accounts can send up to 12K emails per month, so you'll be fine).
- The
email_domain
variable is your comapny domain, e.g.@yourcompany.com
. This lets multiple people at the same company subscribe
- Add the webhooks app in Help Scout.
- The secret key can be anything (keyboard cat)
- The Callback URL is the URL of your script. You'll see a link icon next to the title where you can grab the URL. Change it to
https
for good measure. - For the events, I checked everything except "Conversation Created" and "Customer Created"
- You're all set! Just tag a case with
subscribed-yourname
and you'll get emails when someone edits the case or a new reply comes in.
NB: The script assumes you have notifications turned on in Help Scout. It's not going to send you emails if you're already assigned to the conversation or if you're the person who made the edit. You can modify the code if you don't like that.