Shopify Flow
Table of Contents
What this integration does
StellaAI also sends a Shopify Flow trigger whenever an analysis is completed. This allows you to automate follow-up actions in Shopify based on the analysis output and customer details.
- Trigger handle:
stella-analysis-completed - Trigger name in Shopify Flow: Stella Analysis Completed
- Runs after customer lookup/create and metafield updates
A pre-requisite for this integration is that the Shopify Syncis enabled in the funnel's settings:
- Go to the funnel's general settings.
- At "CRM Sync Configurations", click on "Add CRM Sync" and select "Shopify".
How to set it up in Shopify Flow
- Open Shopify Admin and go to the Flow app.
- Create a new workflow.
- Select the trigger Stella Analysis Completed.
- Add optional conditions (e.g. funnel subdomain).
- Add one or more actions (tag customer, add bonus points, send internal email/slack, etc.).
- Turn your workflow on.
Sample Flow
Example workflow: tag warm profiles and notify your team.
- Trigger: Stella Analysis Completed
- Condition: Funnel subdomain equals
my-skincare-funnel - Action: Add customer tag
stella-skincare-analysis-completed - Action: Send internal notification containing Email, Analysis result, Analysis url, and Funnel subdomain
Available trigger fields
These fields are available in Shopify Flow from this trigger:
- Customer reference (when available)
- Analysis result (LIGHT, LIGHT_WARM, WARM, DEEP, VERY_DEEP, SOFT_LIGHT, SOFT_MEDIUM, SOFT_DEEP, SOFT_VERY_DEEP, CLEAR)
- Analysis url
- Analysis id
- First name
- Last name
- Hair color (VERY_LIGHT, MEDIUM_BLONDE, LIGHT, RED_BLONDE, RED, MID_BROWN, BROWN, BLACK)
- Eye color (BLUE, GREY, GREEN, GREEN_BROWN, AMBER, BROWN, DARK_BROWN)
- Skin color (FAIR, LIGHT, MEDIUM_LIGHT, MEDIUM, MEDIUM_DEEP, DEEP)
- Funnel subdomain
- Query string
Example payload
{
"Analysis result": "WARM",
"Analysis url": "https://example.askstella.ai/result/abc123",
"Analysis id": "abc123",
"Email": "customer@example.com",
"First name": "Jane",
"Last name": "Doe",
"Hair color": "BROWN",
"Eye color": "GREEN",
"Skin color": "MEDIUM",
"Funnel subdomain": "my-funnel",
"Query string": "utm_source=newsletter&utm_campaign=spring"
}Testing checklist
- Complete one Stella analysis with a test email.
- Confirm the customer exists in Shopify and metafields were written.
- Verify the workflow run appears in Shopify Flow activity.
- Confirm your configured action executed (tag/message/email).
Troubleshooting
- Make sure the Shopify Sync is enabled in the funnel's settings.
- Make sure the workflow is enabled.
- Verify the trigger selected is Stella Analysis Completed.
- Verify a subdomain condition is set to exactly the subdomain of the funnel (copy it from the funnel card in our platform).