Scheduled Analysis: Building 7 & 14-Day Post-Launch Test Reports
Automate your reporting with AI-generated 7 and 14-day test summaries delivered directly to Slack threads.
Overview
This guide shows you how to build a fully automated reporting engine that keeps both your team and your clients informed without manual effort.
Every day, the workflow checks for tests that are either 7 or 14 days old, pulls fresh Intelligems results, leverages AI to generate an in-depth Internal CRO Strategist Report, and crafts a concise, client-ready summary—all delivered directly into a threaded Slack message for easy discussion.

AI can make mistakes. Always check it's work before sharing with a client.
Softwares Used
To build this automated reporting pipeline, you will need the following tools:
n8n: The primary workflow automation platform used to connect APIs and schedule tasks.
Groq: A high-speed AI inference engine used to process test data and generate natural language reports.
Note: You can swap this for OpenAI or Anthropic if preferred, but this guide uses Groq for its free API tier.
Slack: The final destination where the AI-generated health checks and reports will be posted.
How to Create Your Scheduled Test Analysis
Step 1: Get Your API Keys
Groq API Key (Or your AI of Choice)
Go to https://console.groq.com
Sign up for free (no credit card needed)
Click "API Keys" on the top nav
Click "Create API Key"
Name the key & press submit
Copy and save the key (starts with
gsk_)
Intelligems API Key(s)
[How to get Intelligems API Key]
Step 2: Create the Workflow in n8n
Node 1: Schedule Trigger
Click the "+" button to add a node
Search for "Schedule Trigger"
Configure it:
Trigger Interval: "Days"
Days Between Triggers: 1 (runs daily)
Trigger at Hour: Pick a time (e.g., 9am)
Trigger at Minute: 0

Node 2: Create Organization List
Add "Code" node
Select "Code in JavaScript"
Select "Run Once for All Items"
Paste this code. Update it with a display name for your client & their API key:

Node 3: Get All Running Tests
Click "+" after the Schedule node
Search for "HTTP Request"
Configure:
Method: GET
URL:
https://api.intelligems.io/v25-10-beta/experiences-listAuthentication: None
Enable Send Headers
Name:
intelligems-access-tokenValue:
{{ $json.apiKey }}
Click "Execute step" to verify it works

Node 4: Filter Tests by Status = "started" AND Duration
Now we need to filter for both status = "started" AND tests at 7 or 14 days:
Add "Code" node
Select "Code in JavaScript"
Select "Run Once for All Items"
Update the below code so that
InsertOrgIdmaps to match the Intelligems organization IDs of your clients (you can find these in Intelligems under Settings > General > Organization Settings), thenamevalue is display name for your clients, and theapiKeyvalue is the Intelligems API Key for those clients. Then paste this code into the Code section in n8n.

Node 5: Get Test Analytics Data (Loop)
Add "HTTP Request" node
Configure:
Method: GET
URL:
https://api.intelligems.io/v25-10-beta/analytics/resource/{{ $json.experienceId }}Authentication: None
Enable Send Headers
Name:
intelligems-access-tokenValue:
{{ $json.apiKey }}
Click "Execute step" to verify it works

Node 6: Send to AI Agent (Internal Report)
Click the "+" button after your analytics HTTP Request node
Search for "AI Agent" or look under "AI Nodes"
Click "AI Agent"
Configure the AI Agent:
Under "Chat Model" section:
Click "Select model"
Choose "Groq" from the list (Or swap in your AI of choice)
Click "Create New Credential"
Paste your Groq API key (the one starting with
gsk_)Select Model: "llama-3.3-70b-versatile" (best free model) or "mixtral-8x7b-32768"
Back under the main AI Agent Screen:
Under "Source for Prompt" set it to Define below
Under "Prompt" section:
In the text area, paste the below prompt. You can customize this prompt to meet your specific needs.

Node 7: Send to AI Agent (Client Overview)
Set up another AI Agent node identical to the one you set up above in Node 6. But for this agent, have the prompt be:

Node 8: Send to Slack (Notification)
Add "Slack" node where the action is "Send a message"
Authentication:
Click "Create New Credential"
Click "Connect my account" and follow the prompts
Channel/Use:
Under "Send Message To" configure where you want this slack message to appear
Message:
in "Message Text" input:
Click "Execute node" to test

Node 9: Send to Slack (Report)
Add "Slack" node where the action is "Send a message"
Set the same channel as your 8th Node.
In "Message Text" input:
Under Options, add a "Reply to a message" option.
For "Message Timestamp to Reply To" input
{{ $json.message_timestamp }}

Step 3: Test Your Workflow
Click the "Test workflow" button at the bottom
Watch each node execute
Check your Slack channel for the message
If anything fails, click on the red node to see the error
Step 4: Activate the Workflow
Once everything works, click "publish" at the top to make this workflow go live!
Your workflow will now run daily and check for tests at 7 or 14 days, analyze them, and give you a notification in slack with the analysis!
Last updated
Was this helpful?