This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.
To create a group for each class at a school or each fitness class (yoga, TRX, etc) in a gym:
- Create a list of site members to add to the relevant group, identified by one of the following: name, email address, phone number, contact ID.
- Create a group with Create Group.
- Call Query Members to get the site member data.
- Map the site members for the group by their IDs as returned in step 3.
- Add the site members to the group by calling Add Group Members with the member IDs collected above.
To send automated emails to group members:
- Call List Group Members to get all members of a group.
- From the response, collect the site member IDs.
- Call Query Members, with the site member IDs you collected, to get their email addresses.
- Call Query Email Subscriptions to confirm that the members have agreed to receive emails.
- Prepare and send the automated emails.
To create a report including aggregated group information, such as, the total amount of groups created, the most popular groups by member count, and idle groups:
- Call List Groups to retrieve the total amount of groups.
- From the response, collect
metadata.total
.
- Retrieve the most popular groups by calling Query Groups and sorting by
membersCount
.
- Retrieve idle groups with the least recent activity by calling Query Groups and sorting by
recentActivityDate
.
- Prepare and display the report.
You can identify group members who are interested in a certain topic by searching for keywords in their answers to the membership questions.
Then, send emails to the identified members informing them about upcoming events or special offers.
- Add membership questions with Create or Replace All Membership Questions.
- Call List Answers to retrieve members' answers to the membership questions.
- Identify the relevant members via a keyword search.
- Call Query Email Subscriptions to confirm that the identified members have agreed to receive emails.
- Prepare and send the automated emails.
If the rules are updated for one group, you can apply the new rules to other, relevant groups.
- Listen to Rules Updated, and/or regularly get the updated group rules by calling List Rules.
- Save the rules on a server and update them if needed by calling Create or Replace All Rules.
- Call List Groups to retrieve a list of all group IDs.
- Iterate over the list of group IDs and update the rules for each relevant group with Create or Replace All Rules.