Skip to main content

World News Firestore Sync

Overview

Fetch latest news articles from World News API and upsert them into Firestore

Suggested workflow name: worldnews-firestore-sync Total nodes: 12 Integrations used: google-firestore.queryDocuments, google-firestore.upsertDocument Tags: news, firestore, http, sync

Build this in the UI

  1. Create a new workflow in your staging workspace.
  2. Add the nodes below in order and connect them.
  3. Configure credentials, dynamic fields, and required node settings.
  4. Run once with test data and inspect Executions.
  5. Publish after validation, then promote to prod when ready.

Node checklist

  • Add Bootstrap sync state (StateUpdate)
  • Add Query latest stored news (UniversalProvider) — google-firestore.queryDocuments
  • Add Compute anchor publish date (Code)
  • Add Fetch pages from World News API (Loop)
  • Add Fetch news page (Http)
  • Add Prepare page payload (Code)
  • Add Persist news items (Loop)
  • Add Upsert news document (UniversalProvider) — google-firestore.upsertDocument
  • Add Advance item index (StateUpdate)
  • Add Finalize page state (StateUpdate)
  • Add Update last read checkpoint (StateUpdate)
  • Add Log sync summary (Log)

What to configure in the UI

  • Credentials / secret references: WORLDNEWS_API_KEY
  • Data referenced (state.*): currentItemIndex, currentPageCount, currentPageNews, currentPageNews.length, hasMore, lastReadNewsAt, lastWorldNewsResponse, latestProcessedPublishedAt, +8 more
  • Variables (vars.*): none detected

Related docs:

Troubleshooting

  • If a run fails, inspect node inputs/outputs in Executions.
  • Verify credentials are present and selected for this workspace.
  • Check expression fields for missing inputs, null paths, or invalid formats.