Repository navigation
Alejandro c/usch/flow from builder test - #4817
Open
janorivera wants to merge 41 commits into
Open
janorivera wants to merge 41 commits into
janorivera wants to merge 41 commits into
Conversation
…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>
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>
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Checklist
Other Related Issues
None
Verification steps
AFTER YOU MERGE
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