Shopify Flow for name-day greetings

Fetch Synaxar’s daily name-day feed in Shopify Flow, match saved customer name keys and pass eligible matches to a greeting workflow.

Set up the daily Shopify Flow

The Send HTTP request action in Shopify Flow is available on Grow, Advanced and Plus. Set up a Scheduled time trigger, then add a GET request to https://synaxar.com/api/portal/el/today.

Save each customer’s chosen name key in a store-side field such as synaxar.name_key. Read the keys from the response, find matching customers in the store or a connected CRM, then apply the customer’s channel preferences.

Read the daily keys in a Run code action

In Define inputs, enter query { sendHttpRequest { body } }. Define the output as type Output { date: String! keys: [String!]! }. This action returns keys for the next step in your flow.

export default function main(input) {
  const day = JSON.parse(input.sendHttpRequest.body);
  return { date: day.iso, keys: day.celebrants.map(person => person.key) };
}

Customer data access for a Shopify app

If you package the integration as a Shopify app, review the platform’s protected customer data requirements for the fields your app needs. The same daily feed works with the app’s backend.

Official references