Help · Analytics
Record events from Shopify Flow
Some of what happens in your store is recorded by other apps — store credit given, a product reviewed. Carpe Messaging adds its own actions to Shopify Flow, and each one records what happened as an event on the person's profile, where you can count it, build segments on it and start automations from it.
Before you start
You need Carpe Messaging installed from the Shopify App Store, Shopify Flow (free), and an app that tells Shopify Flow about the thing you want recorded. The actions work on every paid Shopify plan; Shopify Plus is not required.
Building one
There is nothing to type but the boxes on the action: no key, no web address, no code.
- In your Shopify admin, open Shopify Flow and choose Create workflow.
- Choose the trigger your other app reports — a credit given, a review left.
- Add an action, search for Carpe Messaging, and choose one of the seven below.
- Fill each box with Add variable. Leave a box empty when the trigger has nothing for it; an empty box records nothing and erases nothing.
- Press Turn on workflow.
Shopify Flow's Browse templates has ready-made ones: search for Carpe Messaging.
The seven actions
A box in bold must be filled. The name in brackets is the property to use in a segment rule or an automation filter.
| Action | Records | Boxes |
|---|---|---|
| Record a product review | Reviewed a Product | Reviewer name (reviewer_name), Rating (rating), Product title (product_title), Product link (product_url), Order (order_id), Review (review_text) |
| Record store credit given | Store Credit Rewarded | Amount (amount), Amount, as shown (formatted_amount), Currency code (currency), Expires (expires_at), Campaign ID (campaign_id), Campaign name (campaign_name), Reason (reason) |
| Record checkout credit given | Abandoned Checkout Credit Rewarded | Amount (amount), Amount, as shown, Currency code, Expires, Checkout link (checkout_url), Checkout total (checkout_total), Checkout total, as shown, Items in checkout (item_count), Campaign ID, Campaign name |
| Record store credit about to expire | Store Credit Expiring | Amount, Amount, as shown, Currency code, Expires, Days left (days_remaining) |
| Record a store credit balance | Store Credit Balance Updated | Balance (balance), Balance, as shown (formatted_balance), Currency code |
| Record store credit scheduled | Store Credit Scheduled | Amount, Amount, as shown, Currency code, Expires, Scheduled for (scheduled_at) |
| Record an event | the name you type in What happened | Amount, Currency code, Count (count), Label (label), Link (link), Note (note), Reference (reference) |
On Record an event, choose the name once and keep it: two spellings are two events, and a name cannot be taken back.
A number box must come out as a plain number — 12.50, no currency sign, no commas. Only an Amount may be negative. The as shown boxes hold the figure as your store prints it, such as $12.00, for an email to print.
Naming the person
Every action has a customer box and an Email address box, and one is needed. Filling the email too — Customer → defaultEmailAddress → emailAddress — records the event even when the customer box alone is not enough. A shopper known only by a phone number cannot be recorded.
Store credit on the profile
The store credit actions also keep the latest figures on the profile, such as store_credit_balance_formatted, so a campaign can say "You have $24.50 in store credit". They are only as current as the last event.
What arrives, and where
The event appears on the profile's activity, on the Metrics page, in the segment builder and as an automation's start. An address you have never seen creates an unconfirmed profile, kept out of counts and sends until something confirms it. Nothing recorded this way changes consent.
Three starting points appear once their event has arrived; the Starting points page describes them.
When a step fails
The reason appears in Shopify Flow's run history, on the failed step:
Finish connecting this store in Carpe Messaging, then run this workflow again.
Open Carpe Messaging from your Shopify admin to finish connecting.
Name the person this is about: pick the customer, or put their email address in the Email box.
This step did not hand us a customer. Put the email address in the Email box instead.
This customer has no email address we can use. Add the Email box to this step and put their address in it.
Fill the Email address box.
Balance needs a plain number of zero or more, such as 12.50, with no currency sign and no commas.
Most often a formatted value such as $12.00 is in a plain number box; it belongs in a box that says as shown.
Carpe Messaging does not have this action any more. Open the step in Shopify Flow and pick one of its actions again.
Shopify sent this step in a shape Carpe Messaging could not read. Try the workflow again.
If it comes back, write to us.