Developer & DevOps

Schedule GraphQL queries and update Google Sheets automatically

14 nodes 189 121 Scheduled trigger
Download

Workflow Description

Automate periodic data collection from GraphQL APIs with direct writes to Google Sheets. The system executes queries on schedule, processes results through conditional logic, and distributes data across multiple rows without manual intervention or repetitive tasks.

How it works

  1. 1.Trigger automation based on predefined schedule intervals
  2. 2.Execute GraphQL query to retrieve data from external API
  3. 3.Apply conditional logic to filter and transform query results
  4. 4.Write processed data to Google Sheets rows in structured format

Use cases

  • Sync customer or user data from external APIs to spreadsheets daily
  • Automate report generation by pulling real-time metrics into Google Sheets
  • Monitor API responses and log changes to audit trails for compliance

Requirements

  • Valid GraphQL API endpoint and authentication credentials
  • Edit permissions on target Google Sheets file
  • Configured schedule trigger with appropriate frequency

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Graphql Google Sheets

Details

Trigger Scheduled trigger
Nodes 14
Apps 2
Views 189
Downloads 121

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (14)

/

Every day at 06:00

Schedule Trigger

#1

Get all your team's tickets

Graphql

#2

Sticky Note1

Sticky Note

#3

if has next page

If

#4

Get end cursor

Set

#5

Get next page

Graphql

#6

Sticky Note

Sticky Note

#7

Split out the tickets

Split Out

#8

Sticky Note2

Sticky Note

#9

Set custom fields

Set

#10

Sticky Note3

Sticky Note

#11

Sticky Note4

Sticky Note

#12

Write tickets to Sheets

Google Sheets

#13

Flatten object to have simple fields to filter by

Code

#14