Automate LINE & Google account linking with OAuth2 authentication
Ready for 3.0What this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls oauth2.googleapis.com, googleapis.com and api.line.me over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- If: checks a condition and branches into true / false
- Get Google Access Token (HTTP Request): calls oauth2.googleapis.com (POST)
- Create Google Auth URL (Edit Fields (Set)): sets 1 field: googleAuthUrl
- Get Google User Info (HTTP Request): calls googleapis.com
- Send Auth Link to LINE (HTTP Request): calls api.line.me (POST)
- Send Completion Message to LINE (HTTP Request): calls api.line.me (POST)
- Redirect to LINE OA (Respond to Webhook): sends the response back to the webhook caller
HTTP calls to: oauth2.googleapis.com, googleapis.com, api.line.me
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Webhook
n8n-nodes-base.webhook
From the author
LINE x Google Account Linking Workflow This workflow automates the process of linking a new user on your LINE Official Account to their Google Account. When a user adds your LINE account as a friend, this workflow automatically sends them a message with a…