Most agencies already have the numbers clients ask for every Monday, in the CRM, and someone copies them into an email by hand. Automated reports replace that copy job with a scheduled n8n workflow: pull last week's contacts and deals, total them, and send the summary by email and Slack. The build takes an afternoon. Keeping it correct takes more thought.
The short version
- n8n has built-in nodes for HubSpot, Pipedrive, Salesforce and HighLevel. Use them before reaching for raw API calls.
- The workflow is nine nodes: a schedule, a date range, three CRM queries, an aggregate, a formatter and two deliveries.
- Three details decide whether the numbers are right: the timezone the schedule runs in, how HubSpot combines search filters, and the 10,000-result ceiling on HubSpot search.
- Add an error workflow on day one. A report that silently stops is worse than no report.
The manual version stays manual because it is small: one person, one login, a few minutes per client. Nobody budgets for it, and nobody notices when it is late until the client asks. Then it turns out the Monday email depended on one person's calendar.
This guide gives you the full workflow with code, the per-CRM differences, and the parts we would not automate. The examples use HubSpot because its search rules cause the most wrong numbers; the other three CRM tools follow the same shape.
What automated reports from a CRM actually involve
Automated reporting here means one thing: a workflow that runs on a schedule, queries the CRM for a fixed period, and delivers the same summary in the same format every time. No dashboard to log into, no export.
It is narrower than the marketing-performance reports most agencies send. Those pull from ad platforms and analytics, and our guide to automated client reporting covers them with Looker Studio. A CRM report answers sales questions instead: how many leads came in, which deals moved, what closed.
That narrowness is the point. CRM data is already structured, already owned by the client, and already in one place. Report automation on top of it is mostly about asking the right query.
Which CRM tools n8n connects to
Each of the four CRMs agencies most often run has a built-in n8n node. They differ in what they expose and how they authenticate.
| CRM | n8n node covers | Authentication | What to watch |
|---|---|---|---|
| HubSpot | Contacts, companies, deals, engagements, tickets, forms; Search on contacts and deals | Service key (recommended) or OAuth2 | UI private apps are now legacy |
| Pipedrive | Activities, deals, leads, notes, organisations, persons, products | Pipedrive credential | Deal Search exists; date filtering is on you |
| Salesforce | Accounts, contacts, leads, opportunities, cases, custom objects | Salesforce credential | The Search resource runs SOQL natively |
| HighLevel | Contacts, opportunities, tasks, calendars | HighLevel credential | Fewer resources; use HTTP Request for the rest |
HubSpot. n8n's credentials page notes that HubSpot has moved private apps created in the UI to legacy status, and recommends a service key, pasted into n8n as the App Token. If an older tutorial tells you to create a private app, that advice is out of date.
Pipedrive and HighLevel. Both nodes are thinner than HubSpot's. When an operation is missing, the n8n docs point you to the HTTP Request node, which can reuse the same credential.
Salesforce. The node has a Search resource that executes a SOQL query and returns all results in one response. You do not need to hand-build the REST call.
The nine-node automated reports workflow, using HubSpot
The example runs every Monday morning, reports on the previous calendar week and sends one summary per client. It assumes an n8n instance, a HubSpot service key, an email sender and a Slack bot. Name the nodes as below; the code reads them by name.
| Node name | Type | Job |
|---|---|---|
| Schedule | Schedule Trigger | Starts the run on Monday morning |
| Date range | Code | Works out last week in milliseconds |
| New contacts | HubSpot, Search | Contacts created last week |
| Deals created | HubSpot, Search | Deals created last week |
| Deals won | HubSpot, Search | Deals closed won last week |
| Aggregate | Code | Totals and counts by stage |
| Format | Code | HTML table and subject line |
| Gmail or Send Email | Sends the report | |
| Slack | Slack | Posts the headline numbers |
Schedule and date range
Schedule: set the interval to weeks, one week between runs, Monday at eight in the morning. A custom cron expression does the same job.
Check the timezone before anything else. The Schedule Trigger uses the workflow's timezone setting, and falls back to the instance timezone. A self-hosted instance defaults to America/New York, so an agency in Berlin gets its Monday report in the afternoon unless someone sets it. You also have to save and publish the workflow before the schedule runs.
Date range: HubSpot's search guide uses millisecond timestamps in its BETWEEN example, so emit those:
const now = new Date();
const start = new Date(now);
start.setDate(now.getDate() - ((now.getDay() + 6) % 7) - 7);
start.setHours(0, 0, 0, 0);
const end = new Date(start);
end.setDate(start.getDate() + 7);
return [{ json: {
startMs: start.getTime(),
endMs: end.getTime() - 1,
weekLabel: start.toISOString().slice(0, 10),
} }];
The modulo line keeps Monday as the first day, so a run on any weekday still reports Monday to Sunday.
Three CRM queries
New contacts: resource Contact, operation Search, one filter: createdate between {{ $('Date range').first().json.startMs }} and endMs.
Deals created: resource Deal, operation Search, same filter on createdate. Request the properties you report on: dealname, amount, dealstage, pipeline.
Deals won: resource Deal, operation Search, with two filters in the same filter group: dealstage equals your won stage and closedate between the two timestamps.
The filter group is where most CRM reports go wrong. HubSpot combines filters inside one group with AND, and separate groups with OR. Split those two filters into two groups and the node returns every won deal ever, plus every deal with a close date last week.
Aggregate and format
Aggregate: read each query by node name rather than relying on input order:
const contacts = $('New contacts').all();
const created = $('Deals created').all();
const won = $('Deals won').all();
const revenue = won.reduce((sum, d) => sum + Number(d.json.properties?.amount ?? 0), 0);
const byStage = {};
for (const d of created) {
const stage = d.json.properties?.dealstage ?? 'unknown';
byStage[stage] = (byStage[stage] ?? 0) + 1;
}
return [{ json: {
week: $('Date range').first().json.weekLabel,
newContacts: contacts.length,
dealsCreated: created.length,
dealsWon: won.length,
revenue: Math.round(revenue),
byStage,
} }];
The $('<node-name>').all() and .first() methods are n8n's documented way to read another node's output. Rename a node and this code breaks, so name the nodes before writing it.
Format: turn the aggregate into an HTML table and a subject line. Keep formatting here and out of the delivery nodes, so changing the layout never touches the send logic. Format the revenue in the client's currency; a hard-coded $ in a template is a common tell that it was copied from a US tutorial.
Delivery
Email: the HTML body from Format, the recipient from the client record.
Slack: a short message with the four headline numbers and a note that the full table went by email.
For several clients, keep one row per client in a sheet or table: client name, HubSpot credential, pipeline ID, recipients, currency. Feed the rows into the workflow and let each node process every item. Most n8n nodes already handle each incoming item, so the Loop Over Items node is only needed where an API is rate-limited or a node reads only the first item.
What to put in a CRM report, and what to leave out
The four headline numbers above are a starting point. A useful weekly report adds a few that show direction rather than volume:
- Deals by stage, and how long they have sat there. A stage that fills up and never empties is the conversation the client actually needs.
- New contacts by source. Form, import and manual entries mean different things.
- Won and lost, with the lost reason if the CRM records one.
- Activities logged, only if the team logs them consistently. A count of calls nobody records is noise.
Leave out anything the client cannot act on. A report with twenty rows gets skimmed; one with six gets read.
Adapting the workflow to Pipedrive, Salesforce and HighLevel
The shape stays the same: schedule, date range, queries, aggregate, format, deliver. Only the three query nodes change.
Pipedrive. Use Deal and Person Get All, then filter by the creation timestamp in a Code node, or call Pipedrive's filtered endpoints through HTTP Request with the same credential.
Salesforce. Replace the three queries with the Search resource and SOQL. Salesforce's date literals save the date arithmetic:
SELECT Id, Name, Amount, StageName, CloseDate
FROM Opportunity
WHERE IsWon = true AND CloseDate = LAST_WEEK
The SOQL reference defines LAST_WEEK as starting at midnight on the first day of the week before the current one and running for seven days. It is a calendar week, not a rolling seven days. Check where the org's week starts against what the client calls "last week".
HighLevel. Opportunity Get Many covers deals; anything outside contacts, opportunities, tasks and calendars goes through HTTP Request.
Where EsperaStudio fits
We build automated reports from the CRM as part of a longer engagement, usually after the client onboarding workflow has put every client into the CRM the same way. Every build includes the error path and a run log.
We run every system on infrastructure the client owns, hosted inside the EU, so their operational data never sits inside a third party's workflow tool and nothing is billed per task.
We start every engagement with a €500 automation audit, delivered as a written diagnostic rather than a sales call, and we credit the fee toward the build if the client goes ahead. For reporting, the audit says which numbers clients actually read and where the CRM data is too patchy to report on yet.
If you would rather run n8n yourself, our honest look at self-hosting n8n covers what that takes. Our guide to workflow automation costs covers the budget side. On n8n's own cloud, the Pro plan is €50 a month billed annually for 10,000 executions. An execution is one run of the whole workflow, however many nodes it has.
Common mistakes to avoid, and when not to build this
Silent failure. Set an error workflow in Workflow Settings; it must start with the Error Trigger node. Have it post to an internal channel naming the client and the failed node, so the team hears before the client does.
Hitting the ceilings. HubSpot's search endpoints return at most 10,000 results for any query, up to 200 per page, at five requests per second per account. A weekly report for one client rarely comes near that.
A workflow that searches every client's portal in parallel can. Private apps get between 100 and 190 requests per 10 seconds depending on the HubSpot tier, with the burst limit counted per app.
Credentials in code. Keep every CRM key in n8n's credential store, one credential per client, never pasted into a Code node.
When this is not worth automating
If you report on two clients and each wants something different, a saved CRM view on Monday morning is cheaper than a workflow you have to maintain. The build pays when the report repeats: same questions, same period, many clients.
It also assumes the CRM data is clean. Automating report generation on top of a pipeline where half the deals have no amount just sends the wrong number faster. Fix the data entry first.
Frequently asked questions
Can n8n replace automated reporting tools like a dashboard product?
For a fixed weekly summary, yes. n8n queries the CRM, formats the numbers and sends them, which is what most clients read. It is not a dashboard: there is no interactive chart or drill-down. If clients want to explore the data themselves, send the summary from n8n and link to a dashboard built in a reporting tool.
How does report automation handle several clients on different CRMs?
Keep one row per client with the CRM type and its credential, and route each row to the matching branch with a Switch node. The schedule, date range, aggregate and delivery nodes stay shared. Only the query nodes differ per CRM, so a fix to the formatting reaches every client at once.
Is automating report generation from HubSpot possible on a free HubSpot account?
The n8n HubSpot node needs a service key or OAuth, and HubSpot's free tier gives private apps 100 requests per 10 seconds and 250,000 a day. A weekly report uses a handful of requests per client, so the limits are rarely the problem. Check which properties your tier exposes before promising a client a metric.
What should automated reporting from a CRM include?
Start with new contacts, deals created, deals won and revenue closed for the period, then add deals by stage with time in stage. Add lost reasons and activity counts only if the team records them consistently. Six numbers a client reads beat twenty they skim.
Sources
- HubSpot node — n8n Docs, accessed 2026-10-20
- HubSpot credentials — n8n Docs, accessed 2026-10-20
- CRM search guide — HubSpot Developers, accessed 2026-10-20
- API usage guidelines and limits — HubSpot Developers, accessed 2026-10-20
- Pipedrive node — n8n Docs, accessed 2026-10-20
- Salesforce node — n8n Docs, accessed 2026-10-20
- HighLevel node — n8n Docs, accessed 2026-10-20
- SOQL and SOSL Reference (Winter '27) — Salesforce, accessed 2026-10-20
- Schedule Trigger node — n8n Docs, accessed 2026-10-20
- Output of other nodes — n8n Docs, accessed 2026-10-20
- Loop Over Items — n8n Docs, accessed 2026-10-20
- Handle errors gracefully — n8n Docs, accessed 2026-10-20
- n8n pricing — n8n, accessed 2026-10-20
