{"product_id":"line-messaging-api-in-n8n-reply-token-push-message-workflow","title":"LINE Messaging API in n8n: Reply Token \u0026 Push Message Workflow","description":"\u003ch3\u003eReply and push messages on LINE—directly from n8n\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow shows you how to integrate the \u003cstrong\u003eLINE Messaging API\u003c\/strong\u003e to handle two real messaging scenarios: \u003cstrong\u003ereplying to a user’s message using a reply token\u003c\/strong\u003e and \u003cstrong\u003esending a push message using a user ID\u003c\/strong\u003e. Get a working blueprint for LINE bot communication with clean, conditional routing.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives incoming LINE events\u003c\/strong\u003e via a webhook in n8n (HTTP \u003cstrong\u003ePOST\u003c\/strong\u003e to your \u003cstrong\u003e{n8n-webhook-page}\u003c\/strong\u003e endpoint).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eChecks the event type\u003c\/strong\u003e using an \u003cstrong\u003eIf\u003c\/strong\u003e condition: it verifies whether \u003ccode\u003e{{ $json.body.events[0].type }}\u003c\/code\u003e equals \u003ccode\u003e\"message\"\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReplies automatically with a reply token\u003c\/strong\u003e by calling the LINE Messaging API endpoint for replies (HTTP \u003cstrong\u003ePOST\u003c\/strong\u003e to \u003ccode\u003ehttps:\/\/api.line.me\/v2\/bot\/message\/r\u003c\/code\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends a push message to a specific user\u003c\/strong\u003e (test workflow step) using the recipient’s unique \u003cstrong\u003euser ID\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCustomer support bot:\u003c\/strong\u003e reply instantly when a LINE user messages your account.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAnnouncement\/testing workflow:\u003c\/strong\u003e push a message to a known LINE user ID for QA or internal updates.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOperator-driven outreach:\u003c\/strong\u003e use n8n to trigger LINE messages from other systems while still supporting reply-token responses.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eWebhook integration:\u003c\/strong\u003e captures LINE incoming events with an n8n webhook (POST to \u003cstrong\u003e{n8n-webhook-page}\u003c\/strong\u003e).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConditional logic:\u003c\/strong\u003e \u003cstrong\u003eIf\u003c\/strong\u003e node filters events where \u003ccode\u003etype\u003c\/code\u003e is \u003ccode\u003e\"message\"\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHTTP Request actions:\u003c\/strong\u003e performs the LINE API calls for both \u003cstrong\u003ereply\u003c\/strong\u003e (reply token) and \u003cstrong\u003epush\u003c\/strong\u003e (user ID).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePre-configuration (credential):\u003c\/strong\u003e create a \u003cstrong\u003eHeader Auth\u003c\/strong\u003e credential named \u003ccode\u003eAuthorization\u003c\/code\u003e with value \u003ccode\u003eBearer {line token}\u003c\/code\u003e to authenticate LINE API requests.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNodes used:\u003c\/strong\u003e if, set, webhook, sticky note, http request, manual trigger.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45747874857139,"sku":"N8N-2733","price":13.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/E2gtWCjsfvk-GB7LwD8fM_ymXiN4xM.png?v=1785489214","url":"https:\/\/buyflowscripts.com\/products\/line-messaging-api-in-n8n-reply-token-push-message-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}