Improve Wait for Response documentation: clarify criteria, add field guide, fix examples and screenshots - #666
Conversation
…nse docs Rewrites the "has all of the words", "has a phrase" (renamed to "has the phrase" to match the live dropdown label), and "has only the phrase" descriptions with worked examples, verified against Glific.Flows.Case do_execute/2 behavior and the floweditor operatorConfigList labels. Adds a screenshot of the response-criteria dropdown. Fixes #665
|
🚀 Deployed on https://deploy-preview-666--glific-docs.netlify.app |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughExpanded the Wait for Response flow action documentation. Added field explanations and a response-type dropdown image. Documented text, numeric, phone, email, and regex matching rules with examples. Added result-variable paths for response data, including media and location fields. Explained no-response timing, reminders, and the distinction between the No Response and Other branches. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact
to respond.md:
- Line 76: Update the wording in both examples to use the singular term
“criterion” instead of “criteria,” while preserving the surrounding explanation
and examples.
- Around line 74-75: Add a blank line after each affected Markdown heading,
including “3. has the phrase” and the heading at the referenced additional
location, before its paragraph content. Preserve the existing heading text and
paragraph wording.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d94d1ff1-c405-4848-a44f-b2d4dbccbd71
⛔ Files ignored due to path filters (1)
static/img/flows/flows_wait_for_response_criteria.pngis excluded by!**/*.png
📒 Files selected for processing (1)
docs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md
…syntax, no-response branch - Add an "Understanding the fields in this node" section near the top explaining every blank in the dialog (criteria dropdown, value box, categorize as, Result Name, no-response timeout). - Fix "has a number between" screenshot: category name was misspelled "Kida", now "Kids", and align its text example (and the "has a number equal to" example) with what the screenshot actually shows. - Rewrite text examples across the doc to match the actual values in each existing screenshot instead of generic placeholders. - Fix duplicated/invalid "has an email" examples with distinct valid addresses. - Add the create-a-result-variable + @results.<name>.url/.caption syntax explanation to has audio, has video, has image, and has file, matching the existing has media section. Also add it for location. - Add a new "The no-response branch in your flow" section with a canvas screenshot showing the Yes/Other/No Response branches, and clarify the difference between Other and No Response. - General grammar and plain-language cleanup throughout. Continues #665
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact
to respond.md:
- Around line 128-136: Update the supported-format description in the “Wait for
the contact to respond” documentation so the 0-prefixed mobile format
0XXXXXXXXXX is identified as an 11-digit number. Preserve the other phone-number
formats unchanged.
- Around line 265-267: Update the repeated-reminder guidance near “up to 3
times” to document a concrete counter and exit condition that stops the loop
after three reminders, or remove the specific “up to 3 times” claim if no
supported limit mechanism exists. Keep the existing single-wait and no-response
branch instructions intact.
- Around line 107-111: The “has a number between” example contains overlapping
ranges at 60; update the displayed range definitions and accompanying
description to use disjoint boundaries, such as 20-59 for Adults and 60-100 for
Sr Citizens, while keeping the example’s categorization consistent.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 921864c7-691f-4d57-9515-7f32842da70f
⛔ Files ignored due to path filters (2)
static/img/flows/flows_wait_for_response_no_response_branch.pngis excluded by!**/*.pngstatic/img/flows/flows_wait_for_response_number_between.pngis excluded by!**/*.png
📒 Files selected for processing (1)
docs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md
…repetition - Verified in staging Preview that has file, has audio, has video, and has image do not expose a working caption field (only has media does) — removed the unverified @results.<name>.caption lines for those four, keeping only the URL syntax. - Add "has multiple values" and "starts with" entries under Text-based responses, verified against Glific.Flows.Case do_execute/2 (has_multiple, has_beginning) — these were live in the dropdown/screenshot but undocumented. - Trim repeated explanation of the no-response checkbox between "Understanding the fields in this node" and "Handling no response". - Restore the original "every hour, up to 3 times" example as stated fact rather than a generic placeholder, per confirmation that pre-existing doc content should be trusted as-is. Continues #665
…nges - "criteria is" -> "criterion is" (singular) in the has the phrase, has only the phrase, and starts with examples. - Fix phone format label: 0XXXXXXXXXX is 11 digits (0 prefix + 10 digits), not 10. - Verified on staging that overlapping "has a number between" rows resolve to the first matching row, not the more specific one. Added a note documenting this for the existing 20-60 / 60-100 example instead of changing the ranges, since the screenshot already shows them as originally set up. Continues #665
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact
to respond.md:
- Around line 266-268: Update the reminder example in “Wait for Response”
documentation to remove the unsupported “up to 3 times” claim, unless the
documented flow also defines a supported counter and exit condition. Keep the
chaining guidance consistent with the actual behavior.
- Around line 83-99: Insert a blank line immediately after each Markdown heading
from “has multiple values” through “starts with” in the response-criteria
documentation, including headings 2 through 6, so each heading is separated from
its following paragraph and satisfies MD022.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 1da2b491-4f0b-4e9e-97e4-3a35be9b3036
📒 Files selected for processing (1)
docs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md
…lds section Verified on staging: the automatic Other branch is only added once at least one criteria row is filled in. With every row left blank, the node shows a single "All Responses" branch instead. Documented both states with screenshots directly in "Understanding the fields in this node", without referring forward to the no-response branch section. Continues #665
…rding - Add a blank line after every ### heading in the file (MD022), not just the newly added ones, for consistency across the whole page. - Reword the reminder-chaining explanation: "chaining as many times as you like" read as contradicting "up to 3 times". Clarified that there's no automatic counter -- the reminder count is simply how many Wait for Response nodes you chain, so three chained nodes give the three reminders in the example. Continues #665
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact
to respond.md:
- Around line 69-77: Update the “The Other branch” documentation and the
corresponding unmatched-value example around the numeric reply handling section
so they describe one consistent behavior: either state that unmatched numeric
replies such as 15 route to the automatic Other branch, or explicitly document
the numeric-specific invalid-value exception if that is the engine’s behavior.
Ensure both sections use the same routing terminology.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: deaada26-4892-425a-af2f-f62a9a541e44
⛔ Files ignored due to path filters (2)
static/img/flows/flows_wait_for_response_all_responses_branch.pngis excluded by!**/*.pngstatic/img/flows/flows_wait_for_response_other_branch.pngis excluded by!**/*.png
📒 Files selected for processing (1)
docs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md
…on syntax
- Replace "canvas" with "flow editor" (the term used everywhere else
in this repo; "canvas" appeared nowhere else).
- Replace "exit point" with "branch" ("branch" is already established
in Split By docs; "exit point"/"exit" appeared nowhere else).
- Convert both ":::note" admonitions to plain "Note: ..." text --
no doc in this repo uses Docusaurus admonition syntax, and this
same file's own pre-existing convention is a plain "Note:" prefix.
No content/claims changed, only wording to match established style.
Continues #665
There was a problem hiding this comment.
Last updated to be changed to August 2026
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
docs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md (1)
69-77: 🎯 Functional Correctness | 🟡 MinorResolve the existing unmatched-response routing contradiction.
Line 75 says unmatched replies go to Other. Lines 127, 135, and 147 say unmatched numeric replies are treated as invalid. Confirm the runtime behavior, then use one term consistently. If invalid numeric replies route to Other, state that explicitly.
Also applies to: 125-127, 133-137, 144-147
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md around lines 69 - 77, Reconcile the documentation around the “Other” branch and unmatched numeric replies by confirming the runtime routing behavior, then update the sections near “The Other branch” and the numeric-response guidance consistently. If invalid numeric replies route to “Other,” state that explicitly everywhere; otherwise replace the conflicting terminology with the actual behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact
to respond.md:
- Line 292: Update the reminder chaining guidance around the no-response path to
require a Send Message node before each subsequent Wait for Response node, so
every reminder is actually sent. Clarify that the final Wait for Response node’s
No Response path should exit to the intended next flow step or termination
point.
---
Duplicate comments:
In `@docs/4`. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact
to respond.md:
- Around line 69-77: Reconcile the documentation around the “Other” branch and
unmatched numeric replies by confirming the runtime routing behavior, then
update the sections near “The Other branch” and the numeric-response guidance
consistently. If invalid numeric replies route to “Other,” state that explicitly
everywhere; otherwise replace the conflicting terminology with the actual
behavior.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b9cd128b-4a9e-499b-900a-a10d650e2a60
📒 Files selected for processing (1)
docs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.md
- The numeric response sections (has a number, has a number between, has a number equal to) said an unmatched reply is "treated as invalid" with no stated destination, contradicting "The Other branch" section which says unmatched replies always route there. Reworded all three to consistently say the reply routes to the automatic Other branch. - The reminder-chaining explanation only described connecting the No Response branch to another Wait for Response node, which extends the wait but never actually sends anything. Added the missing "Send the contact a message" node required between each pair, so the described Send message -> Wait for Response chain actually produces the reminders it claims to. Continues #665
- Consistent quoting on cross-references (Response Types, Handling no response) to match The Other branch / The no-response branch in your flow elsewhere in the doc. - has media's first screenshot never had its "categorized as" value stated in the text, unlike every other section (phone, email, number, regex all state theirs). Added it for consistency. Verified: zero MD022 violations (markdownlint-cli2), all image paths resolve, all 4 cross-references match real section labels. Continues #665
- Bold "Other" consistently in the numeric-response sections, matching
its styling everywhere else it's used as the branch name.
- Align terminology: has-a-number-equal-to called its rows "cases"
while every other section calls them "rows" -- switched to "rows".
- Quote category labels ("Kids", "Teens", "Adults", "Sr Citizens")
consistently with every other categorize-as example in the doc.
- Restructure the reminder-chaining explanation from one dense
five-sentence paragraph into numbered steps, matching the doc's own
"How to configure" convention for sequential instructions. Clarify
that each repeated pair connects to the previous node's No Response
branch, not the original one.
- Re-verified: zero MD022 violations, all image paths resolve, no
curly quotes, all four "see X above/below" cross-references still
point in the correct direction after restructuring.
Continues #665
Summary
Glific.Flows.Case.do_execute/2in glific/glific and theoperatorConfigListlabels in glific/floweditor.@results.<name>.urlsyntax to has audio, has video, has image, and has file, plus the longitude/latitude syntax for has location. Verified on staging that only the URL resolves for these (and for has media) —.captiondoes not work for any media type and has been removed.:::noteadmonition syntax.Test plan
yarn startand checkdocs/4. Product Features/03. Flows/2. Flow Actions/04. Wait for the contact to respond.mdrenders correctlyFixes #665
🤖 Generated with Claude Code
Summary by CodeRabbit