Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Campaign webhooks #415

Open
jace opened this issue Feb 22, 2018 · 0 comments
Open

Campaign webhooks #415

jace opened this issue Feb 22, 2018 · 0 comments

Comments

@jace
Copy link
Member

jace commented Feb 22, 2018

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant