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

Users: Generate suggestions #391

Open
roschaefer opened this issue Nov 8, 2017 · 0 comments
Open

Users: Generate suggestions #391

roschaefer opened this issue Nov 8, 2017 · 0 comments
Labels

Comments

@roschaefer
Copy link
Owner

As input for a regular email notification we could make our users aware of missed opportunities.

This includes:

  • a user with no impression (never visitied /find-broadcasts page)
  • a user with no positive impression (never supported a broadcast)
  • a user whose impressions all have an amount == nil (never visited /invoice)
  • many broadcasts with a created_at > user.last_login i.e. broadcasts that were created after the user logged in the last time
  • a user without a location (geolocation by IP failed)

So I propose a method User#suggestions. This method may return a list of suggestions that we can send to the user. Optionally, they are ordered by priority.

In the email template we could iterate through these suggestions and generate a nice descriptive text and some links. Example:

Hey John Doe,

....
Did you know that you have a virtual monthly budget of €17.50? Just visit
https://rundfunk-mitbestimmen.de/invoice and see how it gets distributed
evenly. There are also 47 new broadcasts in our database since your last visit.
...
Cheers,
Your team of Rundfunk MITBESTIMMEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant