LINE PUSH API

const res = await fetch("<https://api.line.me/v2/bot/message/push>", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      "Authorization": `Bearer ${CHANNEL_ACCESS_TOKEN}`,
    },
    body: JSON.stringify({
      to: userId,
      messages: [
        {
          type: "text",
          text: text,
        },
      ],
    }),
  });

LINE REPLY API

curl -v -X POST <https://api.line.me/v2/bot/message/reply> \\
-H 'Content-Type: application/json' \\
-H 'Authorization: Bearer {channel access token}' \\
-d '{
    "replyToken":"nHuyWiB7yP5Zw52FIkcQobQuGDXCTA",
    "messages":[
        {
            "type":"text",
            "text":"Hello, user"
        },
        {
            "type":"text",
            "text":"May I help you?"
        }
    ]
}'

References

https://docs.n8n.io/integrations/builtin/node-types/#cluster-nodes

https://docs.n8n.io/code/expressions/

https://developers.line.biz/en/docs/messaging-api/getting-started/ - ขั้นตอนการทำ Line Messaging API

https://developers.line.biz/en/docs/messaging-api/sending-messages/ - HTTP List