Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(line): ui improvement (#16706)

Talal Jaberf06d01bd5ea5
diff --git a/bun.lock b/bun.lock
index 0f0594dd4db..5a97b7f90cb 100644
--- a/bun.lock
+++ b/bun.lock
@@ -5269,7 +5269,7 @@
},
"packages/pieces/community/line": {
"name": "@activepieces/piece-line",
- "version": "0.2.1",
+ "version": "0.3.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/line/package.json b/packages/pieces/community/line/package.json
index 4f4371f4e0a..b24ebc70bb9 100644
--- a/packages/pieces/community/line/package.json
+++ b/packages/pieces/community/line/package.json
@@ -1,6 +1,6 @@
{
"name": "@activepieces/piece-line",
- "version": "0.2.1",
+ "version": "0.3.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"scripts": {
diff --git a/packages/pieces/community/line/src/i18n/de.json b/packages/pieces/community/line/src/i18n/de.json
index 1fa430c0ad4..7f4341fe2f1 100644
--- a/packages/pieces/community/line/src/i18n/de.json
+++ b/packages/pieces/community/line/src/i18n/de.json
@@ -31,5 +31,25 @@
"New Message": "Neue Nachricht",
"Triggers when a new message is received": "Wird ausgelöst, wenn eine neue Nachricht empfangen wird",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Line-Bot-Konto von Entwickler-Konsole\n- Gehen Sie zu \"Messaging API\".\n- In den Webhook-Einstellungen, füge diese URL ein: \n `{{webhookUrl}}`\n- Aktivierungsfluss veröffentlichen und dann auf \"Überprüfen\" Button\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Line-Bot-Konto von Entwickler-Konsole\n- Gehen Sie zu \"Messaging API\".\n- In den Webhook-Einstellungen, füge diese URL ein: \n `{{webhookUrl}}`\n- Aktivierungsfluss veröffentlichen und dann auf \"Überprüfen\" Button\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nSo erhältst du dein Channel Access Token:\n1. Öffne die [LINE Developers Console](https://developers.line.biz/console/) und wähle deinen Messaging-API-Kanal.\n2. Wechsle zum Tab **Messaging API**.\n3. Klicke unter **Channel access token (long-lived)** auf **Issue** und kopiere das Token.\n",
+ "Send Message": "Nachricht senden",
+ "Send a text message to a LINE user or group chat.": "Sendet eine Textnachricht an einen LINE-Nutzer oder Gruppenchat.",
+ "Recipient ID": "Empfänger-ID",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "Nutzer-, Gruppen- oder Raum-ID. Übernimm sie aus Source im Trigger „Neue Nachricht“.",
+ "Plain text, up to 5,000 characters.": "Reiner Text, bis zu 5.000 Zeichen.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Jede Person, die die Nachricht erhält, auch jedes Gruppenmitglied, zählt zum monatlichen Nachrichtenlimit deines LINE-Tarifs.",
+ "Send to": "Senden an",
+ "Message": "Nachricht",
+ "Request": "Anfrage",
+ "Data to send": "Zu sendende Daten",
+ "Starts the flow when your LINE bot receives a message.": "Startet den Flow, wenn dein LINE-Bot eine Nachricht erhält.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Diesen Trigger mit deinem LINE-Bot verbinden**\n\n1. **Veröffentliche diesen Flow zuerst.** LINE prüft die URL, wenn du auf **Verify** klickst.\n2. Öffne die [LINE Developers Console](https://developers.line.biz/console/), wähle deinen Messaging-API-Kanal und wechsle zum Tab **Messaging API**.\n3. Klicke unter **Webhook settings** auf **Edit** und füge diese URL ein:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Klicke auf **Verify** und aktiviere dann **Use webhook**.\n\nEin Kanal hat nur eine Webhook-URL, daher erhält nur der Flow, dessen URL du einfügst, die Nachrichten.\n",
+ "Response is Binary": "Antwort ist binär",
+ "Return Error as Output": "Fehler als Ausgabe zurückgeben",
+ "Timeout": "Zeitlimit",
+ "Appended to the URL as ?key=value.": "Wird als ?key=value an die URL angehängt.",
+ "On a failed request, output the error instead of failing the step.": "Bei einer fehlgeschlagenen Anfrage den Fehler ausgeben, statt den Schritt abzubrechen.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Sekunden bis zur Antwort. Leer: bis zum Flow-Limit (10 Min.).",
+ "Follow 3xx redirects instead of returning them as the response.": "3xx-Weiterleitungen folgen, statt sie als Antwort zurückzugeben."
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/es.json b/packages/pieces/community/line/src/i18n/es.json
index da80098747a..0f19bb4d793 100644
--- a/packages/pieces/community/line/src/i18n/es.json
+++ b/packages/pieces/community/line/src/i18n/es.json
@@ -31,5 +31,25 @@
"New Message": "Nuevo mensaje",
"Triggers when a new message is received": "Dispara cuando se recibe un nuevo mensaje",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nPara obtener tu token de acceso del canal:\n1. Abre la [LINE Developers Console](https://developers.line.biz/console/) y elige tu canal de Messaging API.\n2. Ve a la pestaña **Messaging API**.\n3. En **Channel access token (long-lived)**, haz clic en **Issue** y copia el token.\n",
+ "Send Message": "Enviar mensaje",
+ "Send a text message to a LINE user or group chat.": "Envía un mensaje de texto a un usuario o chat de grupo de LINE.",
+ "Recipient ID": "ID del destinatario",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "ID de usuario, grupo o sala. Tómalo de Source en el disparador Nuevo mensaje.",
+ "Plain text, up to 5,000 characters.": "Texto sin formato, hasta 5.000 caracteres.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Cada persona que recibe el mensaje, incluido cada miembro de un grupo, cuenta para el límite mensual de mensajes de tu plan de LINE.",
+ "Send to": "Enviar a",
+ "Message": "Mensaje",
+ "Request": "Solicitud",
+ "Data to send": "Datos a enviar",
+ "Starts the flow when your LINE bot receives a message.": "Inicia el flujo cuando tu bot de LINE recibe un mensaje.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Conecta este disparador a tu bot de LINE**\n\n1. **Publica primero este flujo.** LINE comprueba la URL cuando haces clic en **Verify**.\n2. Abre la [LINE Developers Console](https://developers.line.biz/console/), elige tu canal de Messaging API y ve a la pestaña **Messaging API**.\n3. En **Webhook settings**, haz clic en **Edit** y pega esta URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Haz clic en **Verify** y luego activa **Use webhook**.\n\nUn canal tiene una sola URL de webhook, así que solo el flujo cuya URL pegues recibe los mensajes.\n",
+ "Response is Binary": "Respuesta binaria",
+ "Return Error as Output": "Devolver error como salida",
+ "Timeout": "Tiempo de espera",
+ "Appended to the URL as ?key=value.": "Se añade a la URL como ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "Si la solicitud falla, devuelve el error en lugar de fallar el paso.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera de la respuesta. Vacío: hasta el límite del flujo (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "Seguir las redirecciones 3xx en lugar de devolverlas como respuesta."
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/fr.json b/packages/pieces/community/line/src/i18n/fr.json
index 6e8f39b72ae..59b23431923 100644
--- a/packages/pieces/community/line/src/i18n/fr.json
+++ b/packages/pieces/community/line/src/i18n/fr.json
@@ -5,11 +5,11 @@
"Push message to the line account": "Envoyer un message vers le compte en ligne",
"Make a custom API call to a specific endpoint": "Passez un appel API personnalisé à un point de terminaison spécifique",
"User Id": "Identifiant de l'utilisateur",
- "Text": "Texte du texte",
+ "Text": "Texte",
"Method": "Méthode",
"Headers": "En-têtes",
"Query Parameters": "Paramètres de requête",
- "Body Type": "Body Type",
+ "Body Type": "Type de corps",
"Body": "Corps",
"Response is Binary ?": "La réponse est Binaire ?",
"No Error on Failure": "Aucune erreur en cas d'échec",
@@ -31,5 +31,25 @@
"New Message": "Nouveau message",
"Triggers when a new message is received": "Déclenche quand un nouveau message est reçu",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nPour obtenir votre jeton d'accès de canal :\n1. Ouvrez la [LINE Developers Console](https://developers.line.biz/console/) et choisissez votre canal Messaging API.\n2. Allez dans l'onglet **Messaging API**.\n3. Sous **Channel access token (long-lived)**, cliquez sur **Issue** et copiez le jeton.\n",
+ "Send Message": "Envoyer un message",
+ "Send a text message to a LINE user or group chat.": "Envoie un message texte à un utilisateur ou à un groupe LINE.",
+ "Recipient ID": "ID du destinataire",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "ID d'utilisateur, de groupe ou de salon. Reprenez-le depuis Source du déclencheur Nouveau message.",
+ "Plain text, up to 5,000 characters.": "Texte brut, jusqu'à 5 000 caractères.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Chaque personne qui reçoit le message, y compris chaque membre du groupe, compte dans la limite mensuelle de messages de votre forfait LINE.",
+ "Send to": "Envoyer à",
+ "Message": "Message",
+ "Request": "Requête",
+ "Data to send": "Données à envoyer",
+ "Starts the flow when your LINE bot receives a message.": "Démarre le flux quand votre bot LINE reçoit un message.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Connecter ce déclencheur à votre bot LINE**\n\n1. **Publiez d'abord ce flux.** LINE vérifie l'URL quand vous cliquez sur **Verify**.\n2. Ouvrez la [LINE Developers Console](https://developers.line.biz/console/), choisissez votre canal Messaging API et allez dans l'onglet **Messaging API**.\n3. Sous **Webhook settings**, cliquez sur **Edit** et collez cette URL :\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Cliquez sur **Verify**, puis activez **Use webhook**.\n\nUn canal n'a qu'une URL de webhook : seul le flux dont vous collez l'URL reçoit les messages.\n",
+ "Response is Binary": "La réponse est binaire",
+ "Return Error as Output": "Renvoyer l'erreur comme sortie",
+ "Timeout": "Délai d'expiration",
+ "Appended to the URL as ?key=value.": "Ajouté à l'URL sous la forme ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "En cas d'échec de la requête, renvoyer l'erreur au lieu de faire échouer l'étape.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Secondes d'attente de la réponse. Vide : jusqu'à la limite du flux (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "Suivre les redirections 3xx au lieu de les renvoyer comme réponse."
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/ja.json b/packages/pieces/community/line/src/i18n/ja.json
index 10e41fe0d84..b8412e14f92 100644
--- a/packages/pieces/community/line/src/i18n/ja.json
+++ b/packages/pieces/community/line/src/i18n/ja.json
@@ -31,5 +31,25 @@
"New Message": "新しいメッセージ",
"Triggers when a new message is received": "新しいメッセージを受信したときにトリガーする",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nチャネルアクセストークンの取得方法:\n1. [LINE Developers Console](https://developers.line.biz/console/)を開き、Messaging API チャネルを選びます。\n2. **Messaging API** タブを開きます。\n3. **Channel access token (long-lived)** で **Issue** をクリックし、トークンをコピーします。\n",
+ "Send Message": "メッセージを送信",
+ "Send a text message to a LINE user or group chat.": "LINE のユーザーまたはグループチャットにテキストメッセージを送信します。",
+ "Recipient ID": "送信先 ID",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "ユーザー、グループ、またはトークルームの ID。「新しいメッセージ」トリガーの Source から指定します。",
+ "Plain text, up to 5,000 characters.": "プレーンテキスト、最大 5,000 文字。",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "メッセージを受け取る人ごと(グループならメンバー全員)に、LINE プランの月間メッセージ上限にカウントされます。",
+ "Send to": "送信先",
+ "Message": "メッセージ",
+ "Request": "リクエスト",
+ "Data to send": "送信するデータ",
+ "Starts the flow when your LINE bot receives a message.": "LINE ボットがメッセージを受け取るとフローを開始します。",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**このトリガーを LINE ボットに接続する**\n\n1. **先にこのフローを公開してください。** **Verify** をクリックすると LINE が URL を確認します。\n2. [LINE Developers Console](https://developers.line.biz/console/)を開き、Messaging API チャネルを選んで **Messaging API** タブを開きます。\n3. **Webhook settings** で **Edit** をクリックし、次の URL を貼り付けます:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. **Verify** をクリックしてから、**Use webhook** をオンにします。\n\nチャネルに設定できる Webhook URL は 1 つだけなので、URL を貼り付けたフローだけがメッセージを受け取ります。\n",
+ "Response is Binary": "レスポンスをバイナリとして扱う",
+ "Return Error as Output": "出力としてエラーを返します",
+ "Timeout": "タイムアウト",
+ "Appended to the URL as ?key=value.": "URLの末尾に ?key=value の形で追加されます。",
+ "On a failed request, output the error instead of failing the step.": "リクエスト失敗時にステップを失敗させず、エラーを出力します。",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "応答を待つ秒数です。空欄にすると、フローの上限(10分)まで待ちます。",
+ "Follow 3xx redirects instead of returning them as the response.": "オンにすると、3xx のリダイレクトを応答として返さずに、リダイレクト先をたどります。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/nl.json b/packages/pieces/community/line/src/i18n/nl.json
index e2c7171b2b6..372b7725d5f 100644
--- a/packages/pieces/community/line/src/i18n/nl.json
+++ b/packages/pieces/community/line/src/i18n/nl.json
@@ -1,11 +1,11 @@
{
"Build chatbots for LINE": "Bouw chatbots voor LINE",
"Push Message": "Bericht pushen",
- "Custom API Call": "Custom API Call",
+ "Custom API Call": "Aangepaste API-aanroep",
"Push message to the line account": "Stuur bericht naar de regelaccount",
"Make a custom API call to a specific endpoint": "Maak een aangepaste API call naar een specifiek eindpunt",
"User Id": "Gebruikers ID",
- "Text": "Tekstveld",
+ "Text": "Tekst",
"Method": "Methode",
"Headers": "Kopteksten",
"Query Parameters": "Query parameters",
@@ -31,5 +31,25 @@
"New Message": "Nieuw bericht",
"Triggers when a new message is received": "Triggert wanneer een nieuw bericht wordt ontvangen",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Maak Line bot account aan van Developer Console\n- Ga naar de \"Messaging API\" sectie.\n- In de webhook instellingen plak deze URL: \n `{{webhookUrl}}`\n- Publiceer Activepieces flow en klik op \"Verifiëren\" knop\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Maak Line bot account aan van Developer Console\n- Ga naar de \"Messaging API\" sectie.\n- In de webhook instellingen plak deze URL: \n `{{webhookUrl}}`\n- Publiceer Activepieces flow en klik op \"Verifiëren\" knop\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nZo krijg je je channel access token:\n1. Open de [LINE Developers Console](https://developers.line.biz/console/) en kies je Messaging API-kanaal.\n2. Ga naar het tabblad **Messaging API**.\n3. Klik onder **Channel access token (long-lived)** op **Issue** en kopieer het token.\n",
+ "Send Message": "Bericht verzenden",
+ "Send a text message to a LINE user or group chat.": "Stuur een tekstbericht naar een LINE-gebruiker of groepschat.",
+ "Recipient ID": "Ontvanger-ID",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "Gebruikers-, groeps- of room-ID. Neem het over uit Source in de trigger Nieuw bericht.",
+ "Plain text, up to 5,000 characters.": "Platte tekst, maximaal 5.000 tekens.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Elke persoon die het bericht krijgt, ook elk groepslid, telt mee voor de maandelijkse berichtenlimiet van je LINE-abonnement.",
+ "Send to": "Verzenden naar",
+ "Message": "Bericht",
+ "Request": "Verzoek",
+ "Data to send": "Te verzenden gegevens",
+ "Starts the flow when your LINE bot receives a message.": "Start de flow wanneer je LINE-bot een bericht ontvangt.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Koppel deze trigger aan je LINE-bot**\n\n1. **Publiceer deze flow eerst.** LINE controleert de URL wanneer je op **Verify** klikt.\n2. Open de [LINE Developers Console](https://developers.line.biz/console/), kies je Messaging API-kanaal en ga naar het tabblad **Messaging API**.\n3. Klik onder **Webhook settings** op **Edit** en plak deze URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Klik op **Verify** en zet daarna **Use webhook** aan.\n\nEen kanaal heeft één webhook-URL, dus alleen de flow waarvan je de URL plakt, ontvangt berichten.\n",
+ "Response is Binary": "Antwoord is binair",
+ "Return Error as Output": "Fout als uitvoer teruggeven",
+ "Timeout": "Time-out",
+ "Appended to the URL as ?key=value.": "Toegevoegd aan de URL als ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "Bij een mislukt verzoek de fout als uitvoer geven in plaats van de stap te laten mislukken.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconden wachten op een antwoord. Leeg: tot de flowlimiet (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "3xx-omleidingen volgen in plaats van ze als antwoord terug te geven."
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/pt.json b/packages/pieces/community/line/src/i18n/pt.json
index 09797b5d1a2..f16b94a8e98 100644
--- a/packages/pieces/community/line/src/i18n/pt.json
+++ b/packages/pieces/community/line/src/i18n/pt.json
@@ -5,7 +5,7 @@
"Push message to the line account": "Empurre mensagem para a conta de linha",
"Make a custom API call to a specific endpoint": "Faça uma chamada de API personalizada para um ponto de extremidade específico",
"User Id": "Identificação do Usuário",
- "Text": "texto",
+ "Text": "Texto",
"Method": "Método",
"Headers": "Cabeçalhos",
"Query Parameters": "Parâmetros da consulta",
@@ -31,5 +31,25 @@
"New Message": "Nova mensagem",
"Triggers when a new message is received": "Aciona quando uma nova mensagem é recebida",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Crie uma conta do bot de linha a partir do Console\nde Desenvolvedor - Vá para a seção \"API de mensagens\".\n- Nas configurações do webhook colar esta URL: \n `{{webhookUrl}}`\n- Publicar o fluxo de peças ativas primeiro e depois clicar no botão \"Verificar\"\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Crie uma conta do bot de linha a partir do Console\nde Desenvolvedor - Vá para a seção \"API de mensagens\".\n- Nas configurações do webhook colar esta URL: \n `{{webhookUrl}}`\n- Publicar o fluxo de peças ativas primeiro e depois clicar no botão \"Verificar\"\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nPara obter o token de acesso do canal:\n1. Abra o [LINE Developers Console](https://developers.line.biz/console/) e escolha seu canal do Messaging API.\n2. Vá para a aba **Messaging API**.\n3. Em **Channel access token (long-lived)**, clique em **Issue** e copie o token.\n",
+ "Send Message": "Enviar mensagem",
+ "Send a text message to a LINE user or group chat.": "Envia uma mensagem de texto para um usuário ou chat em grupo do LINE.",
+ "Recipient ID": "ID do destinatário",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "ID de usuário, grupo ou sala. Use o Source do gatilho Nova mensagem.",
+ "Plain text, up to 5,000 characters.": "Texto simples, até 5.000 caracteres.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Cada pessoa que recebe a mensagem, incluindo cada membro do grupo, conta no limite mensal de mensagens do seu plano do LINE.",
+ "Send to": "Enviar para",
+ "Message": "Mensagem",
+ "Request": "Requisição",
+ "Data to send": "Dados a enviar",
+ "Starts the flow when your LINE bot receives a message.": "Inicia o fluxo quando seu bot do LINE recebe uma mensagem.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Conecte este gatilho ao seu bot do LINE**\n\n1. **Publique este fluxo primeiro.** O LINE verifica a URL quando você clica em **Verify**.\n2. Abra o [LINE Developers Console](https://developers.line.biz/console/), escolha seu canal do Messaging API e vá para a aba **Messaging API**.\n3. Em **Webhook settings**, clique em **Edit** e cole esta URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Clique em **Verify** e depois ative **Use webhook**.\n\nUm canal tem uma única URL de webhook, então só o fluxo cuja URL você colar recebe as mensagens.\n",
+ "Response is Binary": "Resposta é binária",
+ "Return Error as Output": "Retornar erro como saída",
+ "Timeout": "Tempo limite",
+ "Appended to the URL as ?key=value.": "Adicionado à URL como ?key=value.",
+ "On a failed request, output the error instead of failing the step.": "Se a requisição falhar, retorna o erro em vez de falhar a etapa.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera pela resposta. Vazio: até o limite do fluxo (10 min).",
+ "Follow 3xx redirects instead of returning them as the response.": "Seguir redirecionamentos 3xx em vez de retorná-los como resposta."
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/ru.json b/packages/pieces/community/line/src/i18n/ru.json
index 176fb521288..5324ca0603a 100644
--- a/packages/pieces/community/line/src/i18n/ru.json
+++ b/packages/pieces/community/line/src/i18n/ru.json
@@ -24,5 +24,28 @@
"New Message": "Новое сообщение",
"Triggers when a new message is received": "Триггеры при получении нового сообщения",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Создать учетную запись линейного бота от Developer Console\n- Перейдите в раздел \"Messaging API\".\n- В настройках webhook, вставьте этот URL: \n `{{webhookUrl}}`\n- Опубликовать поток Activepieces затем нажмите кнопку \"Verify\"\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Создать учетную запись линейного бота от Developer Console\n- Перейдите в раздел \"Messaging API\".\n- В настройках webhook, вставьте этот URL: \n `{{webhookUrl}}`\n- Опубликовать поток Activepieces затем нажмите кнопку \"Verify\"\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nКак получить токен доступа канала:\n1. Откройте [LINE Developers Console](https://developers.line.biz/console/) и выберите свой канал Messaging API.\n2. Перейдите на вкладку **Messaging API**.\n3. В разделе **Channel access token (long-lived)** нажмите **Issue** и скопируйте токен.\n",
+ "Send Message": "Отправить сообщение",
+ "Send a text message to a LINE user or group chat.": "Отправляет текстовое сообщение пользователю или в групповой чат LINE.",
+ "Recipient ID": "ID получателя",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "ID пользователя, группы или комнаты. Возьмите его из Source в триггере «Новое сообщение».",
+ "Plain text, up to 5,000 characters.": "Обычный текст, до 5000 символов.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Каждый получатель сообщения, включая каждого участника группы, учитывается в месячном лимите сообщений вашего тарифа LINE.",
+ "Send to": "Кому отправить",
+ "Message": "Сообщение",
+ "Request": "Запрос",
+ "Data to send": "Отправляемые данные",
+ "Starts the flow when your LINE bot receives a message.": "Запускает поток, когда ваш LINE-бот получает сообщение.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Подключите этот триггер к своему LINE-боту**\n\n1. **Сначала опубликуйте этот поток.** LINE проверяет URL, когда вы нажимаете **Verify**.\n2. Откройте [LINE Developers Console](https://developers.line.biz/console/), выберите свой канал Messaging API и перейдите на вкладку **Messaging API**.\n3. В разделе **Webhook settings** нажмите **Edit** и вставьте этот URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Нажмите **Verify**, затем включите **Use webhook**.\n\nУ канала только один URL вебхука, поэтому сообщения получает только тот поток, чей URL вы вставили.\n",
+ "Body Type": "Тип тела",
+ "Response is Binary": "Ответ двоичный",
+ "Return Error as Output": "Возвращать ошибку как результат",
+ "Timeout": "Тайм-аут",
+ "Follow redirects": "Следовать перенаправлениям",
+ "Appended to the URL as ?key=value.": "Добавляется к URL как ?key=value.",
+ "Enable for files like PDFs, images, etc.": "Включите для файлов, например PDF или изображений.",
+ "On a failed request, output the error instead of failing the step.": "При неудачном запросе вернуть ошибку вместо сбоя шага.",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Секунды ожидания ответа. Пусто: до лимита потока (10 мин).",
+ "Follow 3xx redirects instead of returning them as the response.": "Следовать перенаправлениям 3xx, а не возвращать их как ответ."
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/translation.json b/packages/pieces/community/line/src/i18n/translation.json
index 2321b9c343f..abfac43acbe 100644
--- a/packages/pieces/community/line/src/i18n/translation.json
+++ b/packages/pieces/community/line/src/i18n/translation.json
@@ -1,11 +1,13 @@
{
"Build chatbots for LINE": "Build chatbots for LINE",
- "Push Message": "Push Message",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n",
+ "Send Message": "Send Message",
"Custom API Call": "Custom API Call",
- "Push message to the line account": "Push message to the line account",
+ "Send a text message to a LINE user or group chat.": "Send a text message to a LINE user or group chat.",
"Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint",
- "User Id": "User Id",
+ "Recipient ID": "Recipient ID",
"Text": "Text",
+ "Markdown": "Markdown",
"Method": "Method",
"Headers": "Headers",
"Query Parameters": "Query Parameters",
@@ -15,7 +17,9 @@
"Return Error as Output": "Return Error as Output",
"Timeout": "Timeout",
"Follow redirects": "Follow redirects",
- "The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "User, group or room ID. Map it from Source in the New Message trigger.",
+ "Plain text, up to 5,000 characters.": "Plain text, up to 5,000 characters.",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.",
"Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",
"Appended to the URL as ?key=value.": "Appended to the URL as ?key=value.",
"Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
@@ -28,10 +32,11 @@
"PUT": "PUT",
"DELETE": "DELETE",
"HEAD": "HEAD",
+ "Send to": "Send to",
+ "Message": "Message",
"Request": "Request",
"Data to send": "Data to send",
"New Message": "New Message",
- "Triggers when a new message is received": "Triggers when a new message is received",
- "Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
+ "Starts the flow when your LINE bot receives a message.": "Starts the flow when your LINE bot receives a message.",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n"
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/i18n/zh.json b/packages/pieces/community/line/src/i18n/zh.json
index e611f754911..1d3b5d1c2dc 100644
--- a/packages/pieces/community/line/src/i18n/zh.json
+++ b/packages/pieces/community/line/src/i18n/zh.json
@@ -1,5 +1,5 @@
{
- "Build chatbots for LINE": "Build chatbots for LINE",
+ "Build chatbots for LINE": "为 LINE 构建聊天机器人",
"Push Message": "Push Message",
"Custom API Call": "自定义 API 呼叫",
"Push message to the line account": "Push message to the line account",
@@ -9,15 +9,15 @@
"Method": "方法",
"Headers": "信头",
"Query Parameters": "查询参数",
- "Body Type": "Body Type",
+ "Body Type": "正文类型",
"Body": "正文内容",
"Response is Binary ?": "Response is Binary ?",
"No Error on Failure": "失败时没有错误",
"Timeout (in seconds)": "超时(秒)",
- "Follow redirects": "Follow redirects",
+ "Follow redirects": "跟随重定向",
"The user id can be obtained from the webhook payload": "The user id can be obtained from the webhook payload",
"Authorization headers are injected automatically from your connection.": "授权头自动从您的连接中注入。",
- "Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",
+ "Enable for files like PDFs, images, etc.": "用于 PDF、图片等文件。",
"GET": "获取",
"POST": "帖子",
"PATCH": "PATCH",
@@ -28,8 +28,28 @@
"JSON": "JSON",
"Form Data": "表单数据",
"Raw": "原始文件",
- "New Message": "New Message",
+ "New Message": "新消息",
"Triggers when a new message is received": "Triggers when a new message is received",
"Markdown": "Markdown",
- "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n"
+ "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n": "\n- Create Line bot account from Developer Console\n- Go to the \"Messaging API\" section.\n- In the webhook settings, paste this URL: \n `{{webhookUrl}}`\n- Publish Activepieces flow first then click \"Verify\" button\n",
+ "\nTo get your channel access token:\n1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.\n2. Go to the **Messaging API** tab.\n3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.\n": "\n获取频道访问令牌:\n1. 打开 [LINE Developers Console](https://developers.line.biz/console/),选择你的 Messaging API 频道。\n2. 进入 **Messaging API** 标签页。\n3. 在 **Channel access token (long-lived)** 下点击 **Issue**,然后复制令牌。\n",
+ "Send Message": "发送消息",
+ "Send a text message to a LINE user or group chat.": "向 LINE 用户或群聊发送文本消息。",
+ "Recipient ID": "接收者 ID",
+ "User, group or room ID. Map it from Source in the New Message trigger.": "用户、群组或聊天室 ID。从“新消息”触发器的 Source 中映射。",
+ "Plain text, up to 5,000 characters.": "纯文本,最多 5,000 个字符。",
+ "Each person who gets the message, including every group member, counts toward your LINE plan's monthly message limit.": "每位收到消息的人(包括群组中的每位成员)都会计入你 LINE 套餐的每月消息上限。",
+ "Send to": "发送至",
+ "Message": "消息",
+ "Request": "请求",
+ "Data to send": "要发送的数据",
+ "Starts the flow when your LINE bot receives a message.": "当你的 LINE 机器人收到消息时启动流程。",
+ "\n**Connect this trigger to your LINE bot**\n\n1. **Publish this flow first.** LINE checks the URL when you click **Verify**.\n2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.\n3. Under **Webhook settings**, click **Edit** and paste this URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. Click **Verify**, then turn on **Use webhook**.\n\nA channel has one webhook URL, so only the flow whose URL you paste receives messages.\n": "\n**将此触发器连接到你的 LINE 机器人**\n\n1. **先发布此流程。** 点击 **Verify** 时 LINE 会检查该 URL。\n2. 打开 [LINE Developers Console](https://developers.line.biz/console/),选择你的 Messaging API 频道并进入 **Messaging API** 标签页。\n3. 在 **Webhook settings** 下点击 **Edit**,粘贴此 URL:\n\n ```text\n {{webhookUrl}}\n ```\n\n4. 点击 **Verify**,然后开启 **Use webhook**。\n\n每个频道只有一个 Webhook URL,因此只有你粘贴其 URL 的流程会收到消息。\n",
+ "Response is Binary": "响应为二进制",
+ "Return Error as Output": "将错误作为输出返回",
+ "Timeout": "超时",
+ "Appended to the URL as ?key=value.": "以 ?key=value 形式附加到 URL。",
+ "On a failed request, output the error instead of failing the step.": "请求失败时输出错误,而不是让步骤失败。",
+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "等待响应的秒数。留空:最长为流程上限(10 分钟)。",
+ "Follow 3xx redirects instead of returning them as the response.": "跟随 3xx 重定向,而不是将其作为响应返回。"
}
\ No newline at end of file
diff --git a/packages/pieces/community/line/src/index.ts b/packages/pieces/community/line/src/index.ts
index f3ee5c3bbb9..b36a6f76871 100644
--- a/packages/pieces/community/line/src/index.ts
+++ b/packages/pieces/community/line/src/index.ts
@@ -4,8 +4,16 @@ import { PieceCategory } from '@activepieces/pieces-framework';
import { pushMessage } from './lib/actions/push-message';
import { newMessage } from './lib/trigger/new-message';
+const lineApiBaseUrl = 'https://api.line.me/v2';
+
export const lineAuth2 = PieceAuth.SecretText({
- displayName: 'Bot Token',
+ displayName: 'Channel Access Token',
+ description: `
+To get your channel access token:
+1. Open the [LINE Developers Console](https://developers.line.biz/console/) and pick your Messaging API channel.
+2. Go to the **Messaging API** tab.
+3. Under **Channel access token (long-lived)**, click **Issue** and copy the token.
+`,
required: true,
});
@@ -14,18 +22,24 @@ export const line = createPiece({
description: 'Build chatbots for LINE',
auth: lineAuth2,
- minimumSupportedRelease: '0.30.0',
+ minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/line.png',
categories: [PieceCategory.COMMUNICATION],
authors: ["kishanprmr","MoShizzle","abuaboud"],
actions: [
pushMessage,
createCustomApiCallAction({
- baseUrl: () => 'https://api.line.me/v2',
+ baseUrl: () => lineApiBaseUrl,
auth: lineAuth2,
authMapping: async (auth) => ({
Authorization: `Bearer ${auth.secret_text}`,
}),
+ props: {
+ url: {
+ description: `Full URL, or a path relative to ${lineApiBaseUrl}`,
+ placeholder: '/bot/info',
+ },
+ },
}),
],
triggers: [newMessage],
diff --git a/packages/pieces/community/line/src/lib/actions/push-message.ts b/packages/pieces/community/line/src/lib/actions/push-message.ts
index f504b577700..1ecba2379fb 100644
--- a/packages/pieces/community/line/src/lib/actions/push-message.ts
+++ b/packages/pieces/community/line/src/lib/actions/push-message.ts
@@ -1,4 +1,4 @@
-import { Property, createAction } from '@activepieces/pieces-framework';
+import { MarkdownVariant, Property, createAction } from '@activepieces/pieces-framework';
import { lineAuth2 } from '../..';
import {
AuthenticationType,
@@ -10,8 +10,8 @@ export const pushMessage = createAction({
name: 'push_message', // Must be a unique across the piece, this shouldn't be changed.
classification: 'WRITE',
auth: lineAuth2,
- displayName: 'Push Message',
- description: 'Push message to the line account',
+ displayName: 'Send Message',
+ description: 'Send a text message to a LINE user or group chat.',
audience: 'both',
aiMetadata: {
description: 'Sends a text message from the LINE bot directly to a single recipient identified by their LINE user ID. Use this to proactively message a user (not as a reply within a webhook session); the user ID is typically captured from an incoming message webhook payload. Not idempotent — each call delivers a new message.',
@@ -19,15 +19,26 @@ export const pushMessage = createAction({
},
props: {
userId: Property.ShortText({
- displayName: 'User Id',
- description: 'The user id can be obtained from the webhook payload',
+ displayName: 'Recipient ID',
+ description: 'User, group or room ID. Map it from Source in the New Message trigger.',
+ placeholder: 'U4af4980629...',
required: true,
}),
text: Property.ShortText({
displayName: 'Text',
+ description: 'Plain text, up to 5,000 characters.',
+ placeholder: 'Thanks for your message! We\'ll reply soon.',
required: true,
}),
+ quotaNote: Property.MarkDown({
+ value: 'Each person who gets the message, including every group member, counts toward your LINE plan\'s monthly message limit.',
+ variant: MarkdownVariant.INFO,
+ }),
},
+ propertyGroups: [
+ { key: 'destination', display: 'section', label: 'Send to', icon: 'send', props: ['userId', 'quotaNote'] },
+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['text'] },
+ ],
async run(context) {
return httpClient.sendRequest({
method: HttpMethod.POST,
diff --git a/packages/pieces/community/line/src/lib/trigger/new-message.ts b/packages/pieces/community/line/src/lib/trigger/new-message.ts
index ed3d87fd271..ca454d63d8f 100644
--- a/packages/pieces/community/line/src/lib/trigger/new-message.ts
+++ b/packages/pieces/community/line/src/lib/trigger/new-message.ts
@@ -7,11 +7,19 @@ import {
import { newMessageTriggerOutputSchema } from '../output-schemas';
const markdown = `
-- Create Line bot account from Developer Console
-- Go to the "Messaging API" section.
-- In the webhook settings, paste this URL:
- \`{{webhookUrl}}\`
-- Publish Activepieces flow first then click "Verify" button
+**Connect this trigger to your LINE bot**
+
+1. **Publish this flow first.** LINE checks the URL when you click **Verify**.
+2. Open the [LINE Developers Console](https://developers.line.biz/console/), pick your Messaging API channel and go to the **Messaging API** tab.
+3. Under **Webhook settings**, click **Edit** and paste this URL:
+
+ \`\`\`text
+ {{webhookUrl}}
+ \`\`\`
+
+4. Click **Verify**, then turn on **Use webhook**.
+
+A channel has one webhook URL, so only the flow whose URL you paste receives messages.
`;
export const newMessage = createTrigger({
@@ -19,7 +27,7 @@ export const newMessage = createTrigger({
classification: 'READ',
displayName: 'New Message',
auth: PieceAuth.None(),
- description: 'Triggers when a new message is received',
+ description: 'Starts the flow when your LINE bot receives a message.',
aiMetadata: {
description: 'Fires when the LINE bot receives an inbound message event from a user via the Messaging API webhook. Each emitted item represents one active message event, carrying the sender details and message content needed to react or reply.',
},
@@ -30,6 +38,7 @@ export const newMessage = createTrigger({
}),
},
type: TriggerStrategy.WEBHOOK,
+ requireAuth: false,
sampleData: {},
async onEnable(context) {
// Empty