How to Automatically Pause Failing Tests
Extend your health monitoring workflow to automatically pause failing tests before they impact your store's performance.
Overview
This guide explains how to extend your monitoring workflow to automatically pause an experiment if it fails your health thresholds. This ensures that a poor-performing or "broken" test doesn't negatively impact your store's performance while you're away from your desk.
Prerequisite
You must have the Automated Test Alerting for Slack workflow set up before completing this guide.
How to Automatically Pause Failing Tests
Step 1: Set up the Alerting Workflow
If you haven't already, follow the Automated Test Alerting for Slack guide to create a workflow that:
Fetches all running tests via the Intelligems API
Checks each test against your health thresholds (visitor count, SRM, conversion drop, minimum orders)
Posts a Slack alert when a test fails
Once that workflow is live and verified, continue to Step 2.
Step 2: Add the "Pause Test" Node
Once a test is flagged as having issues, you can trigger a POST request to the Intelligems API to halt the experiment
After your Slack Message node, add "HTTP Request" node
Configure:
Method: POST
URL:
https://api.intelligems.io/v25-10-beta/experiences/{{ $('Code in JavaScript1').item.json.experienceId }}/actions/pauseAuthentication: None
Enable Send Headers
Name:
intelligems-access-tokenValue:
{{ $('Code in JavaScript1').item.json.apiKey }}
Click "Execute step" to verify it works
Step 3: Update Your Slack Alert (Recommended)
Now that tests are being paused automatically, it's a good idea to update your Slack message to reflect this. Replace your existing Slack message text with something like:
This makes it immediately clear to your team that the test is already stopped — no one needs to manually intervene.
Last updated
Was this helpful?