-
Notifications
You must be signed in to change notification settings - Fork 10
docs: rewrite Label the incoming message with best practices #644
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
Open
SangeetaMishr
wants to merge
4
commits into
main
Choose a base branch
from
docs/label-incoming-message-best-practices
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+37
−9
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
bde3bda
docs: rewrite Label the incoming message with real content and best p…
sangeeta1911 906d9f7
Update 07. Label the incoming message.md
SangeetaMishr ae40576
docs: remove leftover horizontal rule under the page header
sangeeta1911 165b535
Update 07. Label the incoming message.md
SangeetaMishr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
46 changes: 37 additions & 9 deletions
46
...4. Product Features/03. Flows/2. Flow Actions/07. Label the incoming message.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,43 @@ | ||
| > ### **1 minute read `Beginner`** | ||
| ___ | ||
| <h3> | ||
| <table> | ||
| <tr> | ||
| <td><b> 3 minutes read</b></td> | ||
| <td style={{ paddingLeft: '40px' }}><b>Level: Beginner </b></td> | ||
| <td style={{ paddingLeft: '40px' }}><b>Last Updated: July 2026</b></td> | ||
| </tr> | ||
| </table> | ||
| </h3> | ||
|
|
||
| **Labelling the incoming message flow action is used to categorize the messages into separate buckets. This helps you capture data points which can be used for creating reports, analytics etc.** | ||
| **Labelling the incoming message flow action is used to categorize the messages into separate buckets. This helps you capture data points which can be used for creating reports, analytics etc.** | ||
|
|
||
| ## Video Tutorial | ||
| For instance, if someone chooses English as their preferred language, you can label their message as 'English' and then generate charts for how many people chose English. | ||
|
|
||
| <iframe width="800" height="500" src="https://www.youtube.com/embed/Y2KWDO7SfnI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> | ||
| ## How it works | ||
|
|
||
| This node labels the contact's most recent incoming message - not any message the bot sends. Every time the flow runs this node, it adds the label(s) you choose to whichever message the contact sent last. | ||
|
|
||
| Because of this, the node only does something useful if there is a message from the contact to label at that point in the flow. | ||
|
|
||
| ## Adding the node to your flow | ||
|
|
||
| 1. Add a `Label the incoming message` node at the point in your flow where you want to categorize the contact's message. | ||
|
|
||
| Tip - Place this node right after a `Wait for Response` node if you want to label what the contact just typed. This guarantees the incoming message being labelled is the reply you're interested in, not an older message from earlier in the conversation. | ||
| 2. Under `Select the labels to apply to the incoming message`, enter the name of an existing label or create a new one. | ||
| 3. Click `Ok` to save the node. | ||
|
|
||
| <br /> | ||
| <br /> | ||
|  | ||
|
|
||
| **For instance, if someone chooses English as their preferred language, you can label their message as 'English' and then generate charts for how many people chose English.** | ||
| ## Note | ||
|
|
||
|  | ||
| - If you add this node without a `Wait for Response` immediately before it (for example, right at the start of a flow, before the contact has said anything), there is no incoming message yet and the label is not applied to anything. | ||
| - You can add more than one label to the same node. If the same message already has a label from an earlier point in the flow, the new label is added alongside it rather than replacing it. | ||
| - Keep label names consistent across flows (for example, always use `English` rather than mixing `english` and `English`) so your reports and BigQuery analytics can group them correctly. | ||
|
|
||
| --- | ||
|
|
||
| ## Related video | ||
|
|
||
| This video walks through building a full flow and includes an example of using the `Label the incoming message` node partway through - it's a good reference for seeing the node used in context, but isn't focused on this node alone. | ||
|
|
||
| <iframe width="800" height="500" src="https://www.youtube.com/embed/Y2KWDO7SfnI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: glific/docs
Length of output: 3250
🏁 Script executed:
Repository: glific/docs
Length of output: 3250
🏁 Script executed:
Repository: glific/docs
Length of output: 3250
🏁 Script executed:
Repository: glific/docs
Length of output: 225
🏁 Script executed:
Repository: glific/docs
Length of output: 911
Indent the tip under step 1. The one-space indent breaks the numbered list here; nest it beneath item 1 or format it as a blockquote so the walkthrough stays intact.
🧰 Tools
🪛 LanguageTool
[style] ~25-~25: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...after a
Wait for Responsenode if you want to label what the contact just typed. This...(REP_WANT_TO_VB)
🤖 Prompt for AI Agents