hasgeek/hasjob

Campaign webhooks

jace opened this issue · 0 comments

jace commented

Hasjob campaigns should support webhooks: when a user engages with a campaign action, web hooks should be triggered so that a notice can be posted to Slack, or to a background email service that sends an email to the user, etc.

  1. Webhooks are specified on the campaign, with a many-to-many relationship with campaign actions, so that hooks can be triggered on specific actions.
  2. Webhook payload will depend on the destination, so it should be customisable within Hasjob. Maybe a JSON text field that supports Mustache rendering to include respondent data (name, email etc), with the choice of submitting as a flattened GET query, POST form, or POST as JSON.
  3. Optional: payload formats should be stored as templates so that new hooks can be created by copying from a template.