# Create sprint goals from Google Sheets with Pega Agile Studio: n8n workflow

> Started by an event in a connected app, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/create-sprint-goals-from-google-sheets-with-pega-agile-studi (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Create sprint goals from Google Sheets with Pega Agile Studio

Started by an event in a connected app, and works across Gmail, Google Drive and Google Sheets. It hands the judgement calls to Gemini. 30 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcreate-sprint-goals-from-google-sheets-with-pega-agile-studi)

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

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Model 3 Logic 16 Service 9

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **Retrieve Agile Studio US** Http Request Tool *Service*
- 3 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 4 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 5 **Call 'Get Attachments - Agile Studio US'** Tool Workflow *Model*
- 6 **Sprint Goal Generator** Agent *Model*
- 7 **Retrieve_Data_From_Sheet** Google Sheets *Service*
- 8 **Get the Userstory data** Http Request *Service*
- 9 **Send a message** Gmail *Service*
- 10 **Aggregate** Aggregate *Logic*
- 11 **Iterate over the attachments** Split Out *Logic*
- 12 **Only select specific document** Filter *Logic*
- 13 **Only select specific spreadsheets** Filter *Logic*
- 14 **Only select specific presentation** Filter *Logic*
- 15 **Keep only the attachment ID of document** Set *Logic*
- 16 **Switch** Switch *Logic*
- 17 **Keep only the attachment ID of presentation** Set *Logic*
- 18 **Perform the API request with the ID of document** Http Request *Service*
- 19 **Keep only the attachment ID of the Sheet** Set *Logic*
- 20 **Keep only the attachment ID of.xlsx** Set *Logic*
- 21 **Perform the API request with the ID of presentation** Http Request *Service*
- 22 **Convert the document to more readable format** Code *Logic*
- 23 **Perform the API request with the ID of sheet** Http Request *Service*
- 24 **Download file** Google Drive *Service*
- 25 **Convert the presentation to more readable format** Code *Logic*
- 26 **Merge** Merge *Logic*
- 27 **Convert to sheet data to readable format** Code *Logic*
- 28 **Extract from File** Extract From File *Service*
- 29 **Merge the results** Merge *Logic*
- 30 **Convert the xlsx data to more readable format** Code *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 30, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Drive, Google Sheets
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Drive and Google Sheets accounts, and a key for Gemini. 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 Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 30 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 30 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%2Fcreate-sprint-goals-from-google-sheets-with-pega-agile-studi)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Advanced usage of Forms with OpenAI and Gmail** 30 steps · calls a model · Gmail, Notion](https://millionrounds.com/workflow/advanced-usage-of-forms-with-openai-and-gmail)
- [**Generate UGC ads from Google Sheets with Fal.AI and WAN2.2** 30 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-ugc-ads-from-google-sheets-with-fal-ai-and-wan2-2)
- [**Generate addictive ASMR Veo 3 reels with OpenAI** 30 steps · calls a model · Google Cloud Storage, Google Sheets](https://millionrounds.com/workflow/generate-addictive-asmr-veo-3-reels-with-openai)
- [**Scrape website with Gemini and Pinecone Database** 30 steps · calls a model · Google Docs, Google Drive](https://millionrounds.com/workflow/scrape-website-with-gemini-and-pinecone-database)
- [**Create a virtual outfit try-on Telegram bot with Google Sheets** 30 steps · Google Sheets, Telegram](https://millionrounds.com/workflow/create-a-virtual-outfit-try-on-telegram-bot-with-google-shee)
- [**Register users and authenticate with Google Sheets** 30 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/register-users-and-authenticate-with-google-sheets)
