-
Notifications
You must be signed in to change notification settings - Fork 26
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
Nudge users who are not entering data #825
Comments
Possible issue with ACCondition set 1
Condition set 2
If we do conditionSet 1, there is no need to do conditionSet 2, as we'll run the nudge main job to check and send message once every day in a synchronous manner. |
…O, make query params configurable
…SendMessageResponse received on sendSyncMsg call
Putting this card on Hold, as we are facing following 2 issues:
|
Deployment steps
INSERT INTO public.external_system_config (id, organisation_id, uuid, is_voided, version, created_by_id, last_modified_by_id, created_date_time, last_modified_date_time, system_name, config) VALUES (DEFAULT, <org_id>, uuid_generate_v4(), false, 1, 1, 1, now(), now(), 'Glific', '{"phone": "91Number", "baseUrl": "https://api.<org>.glific.com", "password": "<pwd>", "avniSystemUser": "<user>@org"}');
|
…e issues in customQuery execution
@himeshr this is unblocked. Credentials in Keeweb. Also tested rwb2023 org in prerelease with the configuration. Template to be used is 'User Nudge'. 1st parameter is users' name, 2nd and 3rd parameters are no of days for which we are checking if they entered any data - it is good to keep it configurable - they have changed it to 3 from 5 days now. ![]() Multiple 'User Nudge' templates will show up. Selection of any should work. Each one created for different languages. All templates in different languages are mapped to same id. Hence based on the language configured for the user, message will get sent automatically in that language - feature of Glific - tested and it is working. |
@himeshr have added the parameter details in the above comment. Missed it. |
|
|
Additionally include ORG_ID, ORG_ID and ORG_SCHEMA_NAME in every request queryParams
Query to execute to fetch list of users that are to be nudgedQueryParams
|
@himeshr We need not insert message_rule and all? We need to mention message template via some configuration? |
Himesh reply: No insertion of messageRule, we just have to specify the messageTemplateID in integration rwb-app properties.. rwb.avni.message.template.id=${RWB_AVNI_MESSAGE_TEMPLATE_ID:542201} |
…ften to Nudge an Inactive user
@himeshr I didnt yet receive any nudge message, though my user exists in 'RWB 2024 Staging' organisation and I have not done any work in the past one month. |
FYI @himeshr and @mahalakshme I just received what looks like a 'nudge' message. |
@1t5j0y Yayy!! Saw in the glific webapp. I also received around the same time. |
Cases tested with one day window:
|
@mahalakshme Though Joy's profile has English language, message is sent in Hindi
|
@himeshr Yes have sent a mail to Glific team asking about this. Found the issue in Maha contact when I was testing as well. |
Requirement:
Nudge users who are have not entered data for past 5 days
AC:
Old: Ignore:
AC:
- Didn't enter/edit any registrations or encounters in the past 5 days
- The number of days should be configurable easily
- Should belong to 'Primary Users' user group
- Should not consider users who have completed endline for all the work orders in their catchment
Technical suggestions:
Approaches discarded because of complexity or suitability: Background job in Avni, Using Avni APIs, Dalgo
Independent of the approach followed, the same ETL and integration service should be usable in Avni as well without forking.
Out of scope:
Sending messages to such users using Glific.
Inputs:
The text was updated successfully, but these errors were encountered: