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

Add auto opt in feature #2534

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add auto opt in feature #2534

wants to merge 9 commits into from

Conversation

engelhartrueben
Copy link
Collaborator

@engelhartrueben engelhartrueben commented Dec 19, 2024

Fixes # (issue)

Add auto opt in feature

Description

The feature works similar to how we opt people out.
Spoke checks if the contacts reply contains opt in language. The default language is "START" (case sensitive).
After a reply is marked as an opt in, it is added to the opt_in table and marked as is_opted_in as true in the campaign_contact table. This feature is also set up to respect opt ins by organization.

The ideal scenario is texting a list from the voter file, and end the text with "Text "START" to stay in touch with our organization" or something of the sort. When the contact texts back "START", this triggers.

Currently, this feature only gathers information. However, this is the backbone to updating VAN contacts as opted-in to text messages or adding a contact loader specifically for contacts that opted in.

This has been tested with/on:

  • sqlite3, but not postgresql.
  • twilio
  • production environment

Checklist:

  • I have manually tested my changes on desktop and mobile
  • The test suite passes locally with my changes
  • If my change is a UI change, I have attached a screenshot to the description section of this pull request
  • [ oops ] My change is 300 lines of code or less, or has a documented reason in the description why it’s longer
  • I have made any necessary changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • My PR is labeled [WIP] if it is in progress

@engelhartrueben engelhartrueben added the S-work in progress (WIP) Status: PR label for work that is not yet ready to be reviewed label Dec 19, 2024
@engelhartrueben engelhartrueben added C-enhancement Type: enhancement A-message handlers Area: anything related to the message-handlers framework and removed S-work in progress (WIP) Status: PR label for work that is not yet ready to be reviewed labels Dec 23, 2024
@engelhartrueben engelhartrueben marked this pull request as ready for review December 23, 2024 20:49
@engelhartrueben engelhartrueben changed the title (WIP) Add auto opt in feature Add auto opt in feature Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-message handlers Area: anything related to the message-handlers framework C-enhancement Type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant