# Task time analysis: overspend time insights for ClickUp and more: n8n workflow

> Started by an event in a connected app, and works across ClickUp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/task-time-analysis-overspend-time-insights-for-clickup-and-m (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Research and reporting](https://millionrounds.com/workflows?category=Research+and+reporting#library)

# Task time analysis: overspend time insights for ClickUp and more

Started by an event in a connected app, and works across ClickUp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 33 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftask-time-analysis-overspend-time-insights-for-clickup-and-m)

**33 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 6 Logic 21 Service 5

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Simple Memory** Memory Buffer Window *Model*
- 4 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 5 **Simple Memory1** Memory Buffer Window *Model*
- 6 **Get Clickup Tasks** Click Up *Service*
- 7 **Generate Reason checklist** Agent *Model*
- 8 **Generate time insights** Agent *Model*
- 9 **Filter out unnecessary data from Tasks** Code *Logic*
- 10 **Code** Code *Logic*
- 11 **Code2** Code *Logic*
- 12 **If task has crossed estimation** If *Logic*
- 13 **Merge** Merge *Logic*
- 14 **Fetch Time entries via task IDs** Http Request *Service*
- 15 **Modify Task data** Code *Logic*
- 16 **Fetch Master comments** Http Request *Service*
- 17 **Convert to File** Convert To File *Service*
- 18 **Modify Time entries data** Code *Logic*
- 19 **Merge task data, comments and time entries** Merge *Logic*
- 20 **Loop Over Master comments** Split In Batches *Logic*
- 21 **Generate Prompt with Time entires** Code *Logic*
- 22 **Code3** Code *Logic*
- 23 **Return Comments data** Code *Logic*
- 24 **Destructure & Filter comments array to loop them** Code *Logic*
- 25 **Sort Master comments old to new** Code *Logic*
- 26 **If comments got thread comments** If *Logic*
- 27 **Fetch comment threads** Http Request *Service*
- 28 **Merge thread comments with master comments** Merge *Logic*
- 29 **Re-merge all master comments** Merge *Logic*
- 30 **Modify threads comment data** Code *Logic*
- 31 **Modify Master comment data** Code *Logic*
- 32 **Re-structure comments to process them in loop node** Code *Logic*
- 33 **Move to next master comment** No Op *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 33, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** ClickUp
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own ClickUp account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 33 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 33 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftask-time-analysis-overspend-time-insights-for-clickup-and-m)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[ClickUp](https://millionrounds.com/workflows?service=ClickUp#library)

## Workflows like it

Also research and reporting, with the same services where possible, closest in size first.

- [**Auto-fix ClickUp bug reports with OpenAI and Cursor** 15 steps · calls a model · ClickUp, GitHub](https://millionrounds.com/workflow/auto-fix-clickup-bug-reports-with-openai-and-cursor)
- [**Track Zoom attendance and create AI summaries** 12 steps · calls a model · ClickUp, Google Sheets](https://millionrounds.com/workflow/track-zoom-attendance-and-create-ai-summaries)
- [**Create daily ClickUp task reports with OpenRouter** 10 steps · calls a model · ClickUp](https://millionrounds.com/workflow/create-daily-clickup-task-reports-with-openrouter)
- [**Sync KPI metrics from ClickUp and Google Sheets** 10 steps · ClickUp, Gmail](https://millionrounds.com/workflow/sync-kpi-metrics-from-clickup-and-google-sheets)
- [**Automated ClickUp time tracking reports & task performance** 8 steps · ClickUp, Gmail](https://millionrounds.com/workflow/automated-clickup-time-tracking-reports-and-task-performance)
- [**Automated Competitor Intelligence: CrunchBase** 5 steps · ClickUp](https://millionrounds.com/workflow/automated-competitor-intelligence-crunchbase)
