Shopify Flow
The Algolia Search and Discovery app’s Shopify Flow settings are only available to Shopify Plus users.
Shopify Flow is an automation platform for your Shopify store. It has two main parts:
- Triggers are events that start workflows.
- Actions are tasks, such as sending Slack messages or emails.
Algolia triggers for Shopify Flow
The Algolia Search and Discovery app includes these triggers:
- Top searches
- Track the most popular searches and the most looked-at results. This trigger is scheduled every day at 1 PM UTC.
- Top searches with no results
- Track queries that returned no results. This trigger is scheduled every day at 1 PM UTC.
- Indexing paused
- This trigger runs when your Algolia indexing pauses.
Set up workflows with Algolia
The following workflow notifies you via Slack messages and emails about your top searches. For more information, see Creating workflows in Shopify Flow.
Before you begin
- Install the Shopify Flow app.
- To send Slack messages to channels, install the Flowbot app in your Slack workspace.
Configure trigger: top searches
- In your Shopify admin, go to Settings > Apps and sales channels and select the Algolia Search and Discovery app.
- Open the Shopify Flow tab.
-
Activate the Top Searches trigger.
Now you can use this trigger in your workflows.
- In your Shopify admin, select Flow in the Apps section of the sidebar.
-
Click Create workflow.
-
Click Select trigger, find the Algolia Search and Discovery app and select the Top Searches trigger.
Configure action: send messages to Slack
-
Click Add action.
- Find the Slack app.
-
If it’s your first time using the Slack action in Shopify, click Connect.
-
Select the Send Slack message action.
-
Enter the details for your Slack message:
- Optional: add a description for this Slack notification.
-
Select a Slack member ID or enter a channel name which should receive the Slack message.
To find your Slack member ID, visit your profile, click the icon and select Copy member ID.
- Under the Message field, click Add a variable and select the
topSearchesMarkdown
variable. When the Slack message is sent, this variable will be replaced with the message body.
-
Click Turn on workflow.
Now, you’ll receive a Slack message every day at 1 PM UTC with your top searches.
Configure action: send emails
-
In the Shopify Flow app, select your workflow and add another action.
-
From the Shopify app, select the Send internal email action.
-
Enter the details for your email.
- Optional: add a description for this email notification.
- Enter one or more email addresses and a subject.
- Under the Message field, click Add a variable and select the
topSearchesHtml
variable. When the email is sent, this variable will be replaced with the email body.
-
Click Apply Changes.
Now, in addition to a Slack message, you’ll receive an email with your top searches.