Skip to content

Alejandro c/usch/flow from builder test - #4817

Open
janorivera wants to merge 41 commits into
masterfrom
alejandro-c/usch/flow_from_builder_test
Open

janorivera wants to merge 41 commits into
masterfrom
alejandro-c/usch/flow_from_builder_test

Conversation

@janorivera

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • Corresponding issue has been opened
  • New tests added
  • Feature flags added
  • Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Other Related Issues

None

Verification steps

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

Alejandro Rivera and others added 6 commits October 30, 2026 20:03
…hildhelp-lex-staging)

Staging-only copy of sms-childhelp-lex-sd.tftpl with the board's design
(language and service menus, flow memory, Spanish and advocate paths) and
its texts in staging.hcl. Production keeps sms-childhelp-lex-sd.tftpl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…end to Flex widgets

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…urvey and pre-engagement form to staging

- Staging-only copies of the SMS, voice and webchat Studio flows from the flow designer boards
- New es_USCH pre_survey chatbot, staging only (lex_v2_bot_languages in staging.hcl)
- Webchat pre-engagement form: preferredLanguage depends on advocateService
- Voice recordings play from the Aselo recordings bucket (recordings_url)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alejandro Rivera and others added 22 commits November 4, 2026 15:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Studio flows post_call_survey_en / post_call_survey_es (say widgets), subscribed to the
ChildHelp, Advocate Line and ChildHelp Spanish queues through postStudioFlows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocked check uses contains, Spanish ChildHelp gets the Spanish pre-queue message before
queueing, and the Advocate widgets no longer overlap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-survey questions

- SMS: unexpected replies to the language, service and Spanish wait-or-leave questions go to
  their counters (asked again) instead of defaulting to English/counselor or closing
- Voice: an unexpected key at the service menu replays it instead of going to the English queue
- SMS: Send and Wait for Reply timeouts 3600 -> 300
- Lex en_USCH pre_survey intro says five questions (matches es_USCH)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f_isSkilledWorkerAvailable_spanish called worker/isSkilledWorkerAvailable without targetChannel,
so the route returned HTTP 400 "targetChannel missing" and the widget always took its failed
exit to the wait-for-counselor question: SMS Spanish contacts never reached the ChildHelp Spanish
queue, even with a Spanish counselor available. Found by helpseeker-sim (SMS-CH-10, SMS-CH-13).
Staging copy only; the production SMS template has no availability check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pected answer

split_wait_leave's noMatch, and the question's timeout and deliveryFailure, went straight to
f_sendMessageAndRunJanitor_please_call, closing the chat on any answer other than si/no. They now
go to a Repeat counter (set_var_wait_or_leave_counter, split_wait_or_leave): the question is asked
again once, then please-call, as the SMS flow's wait_for_counselor counter does. "No" still goes
straight to please-call. Found by helpseeker-sim (CHAT-CH-08). Hand-made: the flow designer board
only has it once the helpline is imported again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into alejandro-c/usch/flow_from_builder_test
…ties (staging flow)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ster merge)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New send_message_sms_es_childhelp_prequeue (Spanish false-report notice)
before send_to_queue_childhelp_spanish, on both paths into the Spanish
queue (counselor available, and "yes" to wait). Text in staging.hcl
flow_vars. From the flow designer board; production unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Send to queue timeout is the task's TTL: with 3600, an unanswered SMS was canceled after 1 hour, and with post-survey on the janitor leaves that conversation active, so the number can't text in again. Set "timeout": "86400" on send_to_queue_advocates, _childhelp, _childhelp_spanish and _childhelp_failed_chatbot (the last two had none). Workaround until the janitor closes conversations of canceled, never-accepted tasks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Same as the SMS flow: the Send to queue timeout is the task's TTL, and an unanswered webchat canceled after 1 hour leaves its conversation active while post-survey is on. Set "timeout": "86400" on send_to_queue_childhelp (had none), _childhelp_spanish and send_to_queue_advocate_line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Welcome, goodbye, end chat, closed (out of shift / holidays) and unsupported media messages in Spanish. Spanish tasks (language es-USCH) fall back to the es block, so the counselor-left message no longer goes out as "undefined". Wording may still change after review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ore English-only agents

Master Workflow > Childhelp - ChatText - Spanish, from the routing designer export:
step 2 is now Spanish + ChatText agents or supervisors with a 600s timeout,
before English-only ChatText agents (step 3). Queues unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alejandro Rivera and others added 13 commits November 17, 2026 18:19
…into alejandro-c/usch/flow_from_builder_test
…update the service menu text

recordings_url moves to https://recordings-staging.tl.techmatters.org/usch, now that recordings
are kept in one bucket per environment (tl-aselo-recordings-staging). The English service menu
text is reworded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The service menu and the five pre-queue messages play their uploaded recordings from the staging
recordings bucket instead of text-to-speech. Their text variables are removed from staging.hcl,
since nothing reads them any more. Hold music keeps the holdMusicAndMessageEnglish function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
USCH: Keep the branch's Spanish, Authorities and Advocate Line targets and add
master's waitingForSpecificTask guard (supervisor takeovers) to every target.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s possible (English and Spanish)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e counselor (chat, SMS and voice, English and Spanish)

Advocate Line contacts are answered by volunteers, not counselors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arate counselor and advocate welcome canned responses

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rkflow

The takeover check came in with the master merge and is a separate change from this branch's
work; the master workflow goes back to the usual logic.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant