๐Ÿ”ฌ Archive queued WeChat articles from Google Sheets to Google Drive with ReadGZH

โšก 4 views ยท ๐Ÿ”ฌ Document Extraction & Analysis

Description

Quick overview

Archive public WeChat articles from a Google Sheets reading queue into Google Drive as Markdown. This workflow processes a bounded batch, checks for duplicate URLs, and writes the result and file link back to each queue row.

How it works

  1. Start the workflow manually. It reads the Queue sheet and selects rows marked pending, using a unique queue_id to track each article.
  2. Validate the supplied WeChat article or ReadGZH share URL and check for duplicates already archived or in progress. Process the selected batch one row at a time.
  3. Call the ReadGZH API to extract article Markdown, then check the returned content and create a UTF-8 Markdown file.
  4. Upload the file to the configured Google Drive folder and write the outcome, file link, error message if any, and update time back to the matching sheet row.
  5. Record invalid URLs and extraction errors per row. An uncertain Drive upload is marked needs_review rather than uploaded again automatically. Sheet-write failures stop execution; this workflow does not guarantee exactly-once delivery.

Setup

  1. Create a sheet named Queue with columns queue_id, article_url, status, output_url, error, updated_at. Give every row a unique queue_id using letters, digits, underscores or hyphens, up to 64 characters. Add a public WeChat article or ReadGZH share URL and set status to pending to opt in.
  2. In Queue settings, set spreadsheetId and folderId, and adjust sheetName if needed. Connect your Google Sheets and Google Drive credentials. Ensure n8n can reach api.readgzh.site over HTTPS. Optional: configure Header Auth credentials on Fetch article with Authorization: Bearer followed by your own ReadGZH API key. Keep keys in credentials, never in shared JSON.
  3. Run manually without overlapping executions. maxBatch defaults to five rows per run. Before retrying a processing or needs_review row, inspect the target Drive folder and any existing output_url to avoid duplicate files. Confirm the archived content before using it for research or an AI summary.

Requirements

Customization

Additional info

Maintainer disclosure: this template is provided by the ReadGZH project.

The workflow processes article URLs supplied in your queue. It does not search all WeChat content or retrieve a complete account history.

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Google Drive, Convert to File

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup