workflows.fit
Back to n8n workflows
n8n templateFreeBy darrelltw

Line Message API : push message & reply

Workflow Description This workflow demonstrates how to use the LINE Messaging API to handle two scenarios: 1. Replying to a user's message using a reply token. 2. Sending a push message to a specific LINE user using t...

DevelopmentCore NodesHttp RequestWebhookSticky NoteIf
Loading interactive preview...

Template notes

Workflow Description This workflow demonstrates how to use the LINE Messaging API to handle two scenarios: 1. Replying to a user's message using a reply token. 2. Sending a push message to a specific LINE user using their user ID.

---

Key Features 1. Webhook Integration: Receives and processes incoming messages from LINE using a webhook. 2. Conditional Logic: Checks if the received event type is a message and handles it accordingly. 3. Reply Message: Automatically responds to the user's message using the LINE reply token. 4. Push Message: Sends a test message to a specific LINE user using their unique user ID.

--- Pre-Configuration To simplify the setup process, create a Header Auth credential in n8n: - Name: Authorization - Value: Bearer {line token} This will authenticate all API requests to the LINE Messaging API. ---

Node Configurations

1.1. Webhook from LINE Message - Purpose: Captures incoming events from the LINE Messaging API. - Configuration: - HTTP Method: POST - Path: {n8n-webhook-page}

---

1.2. If Condition - Purpose: Checks if the received event type is message. - Configuration: - Condition: - {{ $json.body.events[0].type }} equals "message"