Applies to: Admins, Managers
Overview
When a message is sent from Endear and an order attribution changes, Shopify Flow now includes information about the sending team — not just the individual sender. Learn more about how to use Shopify Flow with Endear here.
This means you can build Shopify Flow automations that branch, filter, or trigger actions based on which store team sent the outreach. This is especially useful for brands with multiple store locations or teams, where you need to route follow-ups, tag orders, or trigger location-specific workflows depending on which team initiated the customer conversation.
All Available Variables
The Message Attribution Changed trigger exposes a rich set of fields you can use in your Shopify Flow conditions and actions. Here is the complete reference:
Order
Field | Type | Description |
Order reference | Order | The Shopify order associated with the attribution event. Gives you access to all standard Shopify order properties (tags, total, line items, etc.) |
Attribution Details
Field | Type | Description |
Status | Text | Status of the attribution (e.g., attributed, removed) |
Days to convert | Number | Number of days between the Endear message and the Shopify order |
Message attribution id | Text | Unique identifier for the attribution record |
Message attribution create date | Text | Timestamp when the attribution was first created |
Message attribution update date | Text | Timestamp when the attribution was last updated |
Message attribution is deleted | Boolean | Whether the attribution has been deleted |
Message Details
Field | Type | Description |
Message id | Text | Unique identifier of the Endear message |
Message type | Text | The channel used to send the message (e.g., Email, SMS) |
Sender — Team
Field | Type | Description |
Message sent from team name | Text | Name of the Endear team the sender belongs to (e.g., "SoHo Store") |
Message sent from team id | Text | Unique identifier for the sending team |
Sender — Individual
Field | Type | Description |
Message sender username | Text | Username of the Endear user who sent the message |
Message sender id | Text | Unique identifier of the sending user |
Message sender email address | Text | Email address of the sender |
Message sender phone number | Text | Phone number of the sender |
Message sender first name | Text | Sender's first name |
Message sender last name | Text | Sender's last name |
Message sender first name initial | Text | First initial of the sender's first name |
Message sender last name initial | Text | First initial of the sender's last name |
You can combine any of these fields in a single workflow. For example, you could tag an order with both the team name and the sender's first name to get granular attribution like "SoHo Store — Maria".
Step-by-Step Guide
1. Navigate to your Shopify admin and open Shopify Flow (under Apps or Automations).
2. Click Create workflow (or open an existing one).
3. For the trigger, select the Endear app and choose the Message Attribution Changed event.
4. Add a Condition step to branch your workflow based on the sender team. For example:
Set the condition to check if Message sent from team name equals a specific team name (e.g., "SoHo Store").
5. Add your desired Actions on each branch. Common use cases include:
Tagging orders with the sending team's name for reporting
Sending internal notifications to a specific team's Slack channel
Updating customer metafields with the team that last reached out
Routing follow-up tasks to the appropriate store location
6. Click Turn on workflow to activate.
Example: Tag Orders by Sending Team
A common workflow is automatically tagging Shopify orders with the name of the Endear team that drove the sale:
Trigger: Endear — Message Attribution Changed → Action: Add order tag → Use the {{messageSentFromTeamName}} value as the tag.
This gives your operations and analytics teams a clear, filterable view of which store locations are generating attributed revenue through clienteling.
Things to Know
The Message sent from team name field reflects the team the sending user belongs to at the time the message was sent.
If a user is not assigned to a team, the team fields will be empty — you can account for this with a condition check in your Flow.
This variable is available alongside existing sender variables like
{{messageSenderUsername}}, so you can use both individual and team-level data in the same workflow.This feature is available to all Endear accounts with the Shopify integration and Shopify Flow enabled.
Still Need Help?
We are happy to assist you with more 1:1 direction. Reach out to our live chat!
