Quick Overview
This workflow runs every Monday, pulls first-time company visits from Webmetic for the past 7 days, groups them by UTM source and campaign, uses OpenAI to generate an HTML campaign performance report, and emails it to your team via Microsoft Outlook.
How it works
- Runs every Monday at 08:00 on a schedule.
- Loads the report settings (domain, recipient list, and language) and requests first-time company visits from the Webmetic Visitor Intelligence API for the last 7 days.
- Extracts each company’s lead score plus its first-touch UTM source/medium and campaign, using “(direct)” and “(none)” when values are missing.
- Sorts companies by lead score and summarizes results by source and campaign, producing counts and a concatenated company list per row.
- Sends the grouped data to OpenAI to write a short HTML report with a summary, a source/campaign table with readable channel names, notable companies per paid campaign, and a budget recommendation.
- Emails the generated HTML report through Microsoft Outlook to the configured recipients with a subject line that includes the total number of new companies.
Setup
- Add your Webmetic credentials (Visitor Intelligence API key) and set the domain value in the workflow’s settings.
- Add an OpenAI API credential for the Chat Model used to generate the report.
- Add a Microsoft Outlook credential and set the recipient emails and preferred report language in the workflow’s settings.