Automated Zalo OA Token Management with OAuth and Webhook Integration
Description (How it works) This workflow keeps your Zalo Official Account access token valid and easy to reuse across other flows—no external server required.
High-level steps
Scheduled refresh runs on an interval to renew the access token before it expires.
Static Data cache (global) stores access/refresh tokens + expiries for reuse by any downstream node.
OAuth exchange calls Zalo OAuth v4 with your app_id and secret_key to get a fresh access token.
Immediate output returns the current access token to the next nodes after each refresh.
Operational webhooks include:
A reset webhook to clear the cache when rotating credentials or testing.
A token peek webhook to read the currently cached token for other services.
Setup steps (estimated time ~8–15 minutes)
Collect Zalo credentials (2–3 min): Obtain app_id, secret_key, and a valid refresh_token.
Import & activate workflow (1–2 min): Import the JSON into n8n and activate it.
Wire inputs (2–3 min): Point the “Set Refresh Token and App ID” node to your env vars (or paste values for a quick test).
Adjust schedule & secure webhooks (2–3 min): Tune the run interval to your token TTL; protect the reset/peek endpoints (e.g., secret param or IP allowlist).
Test (1–2 min): Execute once to populate Static Data; optionally try the token peek and reset webhooks to confirm behavior.
Related Templates
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
Bulk Automated Google Drive Files Sharing and Direct Download Link Generation
This N8N workflow automates the process of sharing files from Google Drive. It includes OAuth2 authentication, batch pro...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments