Automation library · Data collection

Generate Google Sheets test script from Pega Agile Studio user

Started by someone opening a chat with it, and works across Google Sheets. It hands the judgement calls to Gemini. 19 steps: a working afternoon to understand properly.

MediumCalls a model: Gemini

19 stepsMedium: a working afternoon
0Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 2Logic 8Service 8

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

  1. 1When chat message receivedChat triggerStarts it
  2. 2Google Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Retrieve the US from Pega Agile StudioHttp RequestService
  4. 4AI: Create testcasesAgentModel
  5. 5IterateOverAccCritSplit OutLogic
  6. 6Create spreadsheet for the testscriptGoogle SheetsService
  7. 7CodeCodeLogic
  8. 8AddNumbersToAccCritCodeLogic
  9. 9Add column headers for the first sheetHttp RequestService
  10. 10Add column headers for the second sheetHttp RequestService
  11. 11Merge: Get SpreadsheetIDMergeLogic
  12. 12Split OutSplit OutLogic
  13. 13MergeMergeLogic
  14. 14Merge2MergeLogic
  15. 15Add testcases to the correct columnsGoogle SheetsService
  16. 16Add acceptance criteria to the Google SpreadsheetGoogle SheetsService
  17. 17Code to remove redundant dataCodeLogic
  18. 18Clear Google SpreadsheetGoogle SheetsService
  19. 19Add the cleaned testcases back in the Google SpreadsheetGoogle SheetsService

How it's built

Starts on
Someone opening a chat with it
Steps
19
Size
Medium: a working afternoon
Connects to
Google Sheets
Model
Gemini

Questions

What does it need to run?

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

What starts it?

It starts on someone opening a chat with it.

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?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 steps before you point it at anything that matters.