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.

triangle-exclamation

Softwares Used

To build this automated reporting pipeline, you will need the following tools:

  • n8narrow-up-right: The primary workflow automation platform used to connect APIs and schedule tasks.

  • Groqarrow-up-right: 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.

  • Slackarrow-up-right: 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)

  • 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)

To request access and receive your API key, contact our support teamarrow-up-right.

Step 2: Create the Workflow in n8n

Node 1: Schedule Trigger

  1. Click the "+" button to add a node

  2. Search for "Schedule Trigger"

  3. 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

  1. Click "+" after the Schedule node

  2. Search for "HTTP Request"

  3. Configure:

    • Method: GET

    • URL: https://api.intelligems.io/v25-10-beta/experiences-list

    • Authentication: None

    • Enable Send Headers

      • Name: intelligems-access-token

      • Value: {{ $json.apiKey }}

  4. 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 InsertOrgId maps to match the Intelligems organization IDs of your clients (you can find these in Intelligems under Settings > General > Organization Settings), the name value is display name for your clients, and the apiKey value 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)

  1. Add "HTTP Request" node

  2. Configure:

    • Method: GET

    • URL: https://api.intelligems.io/v25-10-beta/analytics/resource/{{ $json.experienceId }}

    • Authentication: None

    • Enable Send Headers

      • Name: intelligems-access-token

      • Value: {{ $json.apiKey }}

  3. Click "Execute step" to verify it works

Node 6: Send to AI Agent (Internal Report)

  1. Click the "+" button after your analytics HTTP Request node

  2. Search for "AI Agent" or look under "AI Nodes"

  3. Click "AI Agent"

Configure the AI Agent:

  1. 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"

  2. 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)

  1. Add "Slack" node where the action is "Send a message"

  2. Authentication:

    • Click "Create New Credential"

    • Click "Connect my account" and follow the prompts

  3. Channel/Use:

    • Under "Send Message To" configure where you want this slack message to appear

  4. Message:

    • in "Message Text" input:

  1. Click "Execute node" to test

Node 9: Send to Slack (Report)

  1. Add "Slack" node where the action is "Send a message"

  2. Set the same channel as your 8th Node.

  3. In "Message Text" input:

  1. Under Options, add a "Reply to a message" option.

  2. For "Message Timestamp to Reply To" input {{ $json.message_timestamp }}

Step 3: Test Your Workflow

  1. Click the "Test workflow" button at the bottom

  2. Watch each node execute

  3. Check your Slack channel for the message

  4. If anything fails, click on the red node to see the error

Step 4: Activate the Workflow

  1. Once everything works, click "publish" at the top to make this workflow go live!

  2. 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