Skip to main content

Generate Google Sheets test script from Pega Agile Studio user stories with AI

Workflow preview

Workflow preview
100%
Generate Google Sheets test script from Pega Agile Studio user stories with AI preview
Open on n8n.io

1. Workflow Overview

Generate Google Spreadsheets Testscript with AI using Pega Agile Studio When working as a functional Pega Software tester, this workflow will create a Google Spreadsheet with acceptance criteria an...

Best for

  • Engineering automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, n8n-nodes-base.splitout, n8n-nodes-base.merge, n8n-nodes-base.googlesheets, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Richard Nijsten.

Original n8n.io source

1.1 Workflow description

Title
Generate Google Sheets test script from Pega Agile Studio user stories with AI
Workflow name
Generate Google Sheets test script from Pega Agile Studio user stories with AI

Generate Google Spreadsheets Testscript with AI using Pega Agile Studio

When working as a functional Pega Software tester, this workflow will create a Google Spreadsheet with acceptance criteria and testcases based on the Pega Agile Studio userstory provided. This improves speed and efficiency while working in sprints on new functionalities.

Who's it for

  • If you are working as a software tester using the Pega Platform including Pega Agile Studio.

How it works

  • When the user chats an userstory in the format "US-1234", a HTTP Request will be made to Pega Agile Studio to retrieve the Userstory and commence creating a Google Spreadsheet.
  • It will add the acceptance criteria on a seperate sheet for traceability.
  • Next the AI will create testscases based on the Userstory provided.
  • In the end, a small cleanup will be performed to remove duplicate rows/data created by the AI.
  • You will have a Google Spreadsheet file in your My Drive containing your testcases!

How to set up

  • In the Chat, provide the userstory where you want to create a testscript for, in the format "US-1234".
  • Add you OAuth2 Api for Agile Studio, so you can access the Pega Agile Studio through API calls.

Requirements

  • Access to Pega Agile Studio OAuth2 Api.
  • AI API.
  • Access to Google Cloud for the Google API's

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.3

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 4 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 6 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - AddNumbersToAccCrit

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - IterateOverAccCrit

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 10 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 11 - Merge2

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Create spreadsheet for the testscript

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 14 - Retrieve the US from Pega Agile Studio

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Add acceptance criteria to the Google Spreadsheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 16 - Add column headers for the first sheet

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 17 - Add column headers for the second sheet

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 18 - AI: Create testcases

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 19 - Merge: Get SpreadsheetID

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 20 - Add testcases to the correct columns

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 21 - Clear Google Spreadsheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 22 - Code to remove redundant data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Add the cleaned testcases back in the Google Spreadsheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate Google Sheets test script from Pega Agile Studio user stories with AI
Complexity advanced
Nodes 24
Categories Engineering, Multimodal AI
Author Richard Nijsten
Published 29 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13093/13093.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate Google Sheets test script from Pega Agile Studio user stories with AI do?

Generate Google Spreadsheets Testscript with AI using Pega Agile Studio When working as a functional Pega Software tester, this workflow will create a Google Spreadsheet with acceptance criteria an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, Multimodal AI use case.