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
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(flow-helper): ui improvement (#16438)
Talal Jaber1b010a41e240
diff --git a/bun.lock b/bun.lockindex 06bc470da2f..c2f25627a22 100644--- a/bun.lock+++ b/bun.lock@@ -3315,7 +3315,7 @@},"packages/pieces/community/flow-helper": {"name": "@activepieces/piece-flow-helper",- "version": "0.1.8",+ "version": "0.2.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/flow-helper/package.json b/packages/pieces/community/flow-helper/package.jsonindex 4d66fb39814..4f6ded77192 100644--- a/packages/pieces/community/flow-helper/package.json+++ b/packages/pieces/community/flow-helper/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-flow-helper",- "version": "0.1.8",+ "version": "0.2.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/community/flow-helper/src/i18n/de.json b/packages/pieces/community/flow-helper/src/i18n/de.jsonindex 08a973bbc90..2d53e6de52a 100644--- a/packages/pieces/community/flow-helper/src/i18n/de.json+++ b/packages/pieces/community/flow-helper/src/i18n/de.json@@ -5,5 +5,14 @@"Fails the flow execution with a custom message.": "Fehler bei der Ausführung des Workflows mit einer benutzerdefinierten Nachricht.","Stops the flow immediately this step is reached.": "Stoppt den Fluss sofort wird dieser Schritt erreicht.","Error Message": "Fehlermeldung",- "The error message to show when the flow fails.": "Die Fehlermeldung, die angezeigt wird, wenn der Fluss fehlschlägt."+ "The error message to show when the flow fails.": "Die Fehlermeldung, die angezeigt wird, wenn der Fluss fehlschlägt.",+ "Stop or fail a running flow, or get a link to the current run.": "Einen laufenden Flow stoppen oder fehlschlagen lassen oder einen Link zum aktuellen Lauf abrufen.",+ "Gets this run's ID and a link to open it.": "Ruft die ID dieses Laufs und einen Link zum Öffnen ab.",+ "Fails this step with your error message.": "Lässt diesen Schritt mit Ihrer Fehlermeldung fehlschlagen.",+ "Ends the run at this step and marks it as succeeded.": "Beendet den Lauf bei diesem Schritt und markiert ihn als erfolgreich.",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "Gibt die ID dieses Laufs und einen Link aus, der den Lauf öffnet.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "Der Lauf schlägt hier fehl und spätere Schritte werden nicht ausgeführt. Wenn Add Error Handler aktiviert ist, schlägt nur dieser Schritt fehl. Der Zweig Fehler läuft und der Flow wird fortgesetzt.",+ "Shown as the step's error. Can include data from earlier steps.": "Wird als Fehler des Schritts angezeigt. Kann Daten aus früheren Schritten enthalten.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "Der Lauf endet hier und wird als erfolgreich markiert. Schritte danach werden nicht ausgeführt."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/es.json b/packages/pieces/community/flow-helper/src/i18n/es.jsonindex 0303c49b3f9..a5ffabc51a8 100644--- a/packages/pieces/community/flow-helper/src/i18n/es.json+++ b/packages/pieces/community/flow-helper/src/i18n/es.json@@ -5,5 +5,14 @@"Fails the flow execution with a custom message.": "Falla en la ejecución del flujo con un mensaje personalizado.","Stops the flow immediately this step is reached.": "Detiene el flujo inmediatamente que se alcanza este paso.","Error Message": "Mensaje de error",- "The error message to show when the flow fails.": "El mensaje de error a mostrar cuando el flujo falla."+ "The error message to show when the flow fails.": "El mensaje de error a mostrar cuando el flujo falla.",+ "Stop or fail a running flow, or get a link to the current run.": "Detén o haz fallar un flujo en ejecución, u obtén un enlace a la ejecución actual.",+ "Gets this run's ID and a link to open it.": "Obtiene el ID de esta ejecución y un enlace para abrirla.",+ "Fails this step with your error message.": "Hace fallar este paso con tu mensaje de error.",+ "Ends the run at this step and marks it as succeeded.": "Termina la ejecución en este paso y la marca como exitosa.",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "Devuelve el ID de esta ejecución y un enlace que abre la ejecución.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "La ejecución falla aquí y los pasos posteriores no se ejecutan. Si Add Error Handler está activado, solo falla este paso. Se ejecuta la rama Fallo y el flujo continúa.",+ "Shown as the step's error. Can include data from earlier steps.": "Se muestra como el error del paso. Puede incluir datos de pasos anteriores.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "La ejecución termina aquí y se marca como exitosa. Los pasos posteriores no se ejecutan."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/fr.json b/packages/pieces/community/flow-helper/src/i18n/fr.jsonindex 3a59f8fbca3..f4771209cba 100644--- a/packages/pieces/community/flow-helper/src/i18n/fr.json+++ b/packages/pieces/community/flow-helper/src/i18n/fr.json@@ -5,5 +5,14 @@"Fails the flow execution with a custom message.": "Échoue l'exécution du flux avec un message personnalisé.","Stops the flow immediately this step is reached.": "Arrête le flux immédiatement cette étape est atteinte.","Error Message": "Message d'erreur",- "The error message to show when the flow fails.": "Le message d'erreur à afficher lorsque le flux échoue."+ "The error message to show when the flow fails.": "Le message d'erreur à afficher lorsque le flux échoue.",+ "Stop or fail a running flow, or get a link to the current run.": "Arrêter ou faire échouer un flux en cours, ou obtenir un lien vers l'exécution en cours.",+ "Gets this run's ID and a link to open it.": "Récupère l'ID de cette exécution et un lien pour l'ouvrir.",+ "Fails this step with your error message.": "Fait échouer cette étape avec votre message d'erreur.",+ "Ends the run at this step and marks it as succeeded.": "Termine l'exécution à cette étape et la marque comme réussie.",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "Renvoie l'ID de cette exécution et un lien qui ouvre l'exécution.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "L'exécution échoue ici et les étapes suivantes ne s'exécutent pas. Si Add Error Handler est activé, seule cette étape échoue. La branche Échec s'exécute et le flux continue.",+ "Shown as the step's error. Can include data from earlier steps.": "Affiché comme erreur de l'étape. Peut inclure des données des étapes précédentes.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "L'exécution s'arrête ici et est marquée comme réussie. Les étapes suivantes ne s'exécutent pas."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/ja.json b/packages/pieces/community/flow-helper/src/i18n/ja.jsonindex 869e277ea44..b46cc46789a 100644--- a/packages/pieces/community/flow-helper/src/i18n/ja.json+++ b/packages/pieces/community/flow-helper/src/i18n/ja.json@@ -5,5 +5,14 @@"Fails the flow execution with a custom message.": "カスタムメッセージでフローの実行に失敗します。","Stops the flow immediately this step is reached.": "このステップに到達した直後にフローを停止します。","Error Message": "エラー メッセージ",- "The error message to show when the flow fails.": "フローが失敗したときに表示されるエラーメッセージ。"+ "The error message to show when the flow fails.": "フローが失敗したときに表示されるエラーメッセージ。",+ "Stop or fail a running flow, or get a link to the current run.": "実行中のフローを停止または失敗させるか、現在の実行へのリンクを取得します。",+ "Gets this run's ID and a link to open it.": "この実行のIDと、それを開くリンクを取得します。",+ "Fails this step with your error message.": "指定したエラーメッセージでこのステップを失敗させます。",+ "Ends the run at this step and marks it as succeeded.": "このステップで実行を終了し、成功としてマークします。",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "この実行のIDと、実行を開くリンクを出力します。",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "実行はここで失敗し、以降のステップは実行されません。「エラーハンドリングを追加」がオンの場合は、このステップだけが失敗します。「失敗」ブランチが実行され、フローは続行されます。",+ "Shown as the step's error. Can include data from earlier steps.": "ステップのエラーとして表示されます。前のステップのデータを含めることができます。",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "実行はここで終了し、成功としてマークされます。以降のステップは実行されません。"}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/nl.json b/packages/pieces/community/flow-helper/src/i18n/nl.jsonindex 46f3e2450f8..f9cadecb1af 100644--- a/packages/pieces/community/flow-helper/src/i18n/nl.json+++ b/packages/pieces/community/flow-helper/src/i18n/nl.json@@ -5,5 +5,14 @@"Fails the flow execution with a custom message.": "Fout bij uitvoeren van de stroom met een aangepast bericht.","Stops the flow immediately this step is reached.": "Stopt de stroom zodra deze stap is bereikt.","Error Message": "Fout bericht",- "The error message to show when the flow fails.": "Het foutbericht om te laten zien wanneer de stroom mislukt."+ "The error message to show when the flow fails.": "Het foutbericht om te laten zien wanneer de stroom mislukt.",+ "Stop or fail a running flow, or get a link to the current run.": "Een lopende flow stoppen of laten mislukken, of een link naar de huidige run ophalen.",+ "Gets this run's ID and a link to open it.": "Haalt de ID van deze run op en een link om deze te openen.",+ "Fails this step with your error message.": "Laat deze stap mislukken met je foutbericht.",+ "Ends the run at this step and marks it as succeeded.": "Beëindigt de run bij deze stap en markeert deze als geslaagd.",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "Geeft de ID van deze run en een link die de run opent.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "De run mislukt hier en latere stappen worden niet uitgevoerd. Als Add Error Handler aan staat, mislukt alleen deze stap. De tak Fout wordt uitgevoerd en de flow gaat verder.",+ "Shown as the step's error. Can include data from earlier steps.": "Wordt getoond als de fout van de stap. Kan gegevens uit eerdere stappen bevatten.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "De run eindigt hier en wordt als geslaagd gemarkeerd. Stappen hierna worden niet uitgevoerd."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/pt.json b/packages/pieces/community/flow-helper/src/i18n/pt.jsonindex 3df83d74762..4c30442778e 100644--- a/packages/pieces/community/flow-helper/src/i18n/pt.json+++ b/packages/pieces/community/flow-helper/src/i18n/pt.json@@ -5,5 +5,14 @@"Fails the flow execution with a custom message.": "Falha na execução do fluxo com uma mensagem personalizada.","Stops the flow immediately this step is reached.": "Interrompe o fluxo imediatamente que esta etapa é atingida.","Error Message": "Mensagem de Erro",- "The error message to show when the flow fails.": "Mensagem de erro a ser exibida quando o fluxo falhar."+ "The error message to show when the flow fails.": "Mensagem de erro a ser exibida quando o fluxo falhar.",+ "Stop or fail a running flow, or get a link to the current run.": "Pare ou faça falhar um fluxo em execução, ou obtenha um link para a execução atual.",+ "Gets this run's ID and a link to open it.": "Obtém o ID desta execução e um link para abri-la.",+ "Fails this step with your error message.": "Faz esta etapa falhar com a sua mensagem de erro.",+ "Ends the run at this step and marks it as succeeded.": "Encerra a execução nesta etapa e a marca como bem-sucedida.",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "Retorna o ID desta execução e um link que abre a execução.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "A execução falha aqui e as etapas seguintes não são executadas. Se Add Error Handler estiver ativado, apenas esta etapa falha. O ramo Falha é executado e o fluxo continua.",+ "Shown as the step's error. Can include data from earlier steps.": "Exibida como o erro da etapa. Pode incluir dados de etapas anteriores.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "A execução termina aqui e é marcada como bem-sucedida. As etapas seguintes não são executadas."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/ru.json b/packages/pieces/community/flow-helper/src/i18n/ru.jsonindex e73ef9f73dd..13087a76577 100644--- a/packages/pieces/community/flow-helper/src/i18n/ru.json+++ b/packages/pieces/community/flow-helper/src/i18n/ru.json@@ -6,5 +6,14 @@"Fails the flow execution with a custom message.": "Ошибка выполнения потока с пользовательским сообщением.","Stops the flow immediately this step is reached.": "Немедленно останавливает поток, который достигается на этом шаге.","Error Message": "Сообщение об ошибке",- "The error message to show when the flow fails.": "Сообщение об ошибке при сбое процесса."+ "The error message to show when the flow fails.": "Сообщение об ошибке при сбое процесса.",+ "Stop or fail a running flow, or get a link to the current run.": "Остановить выполняемый поток или завершить его с ошибкой либо получить ссылку на текущий запуск.",+ "Gets this run's ID and a link to open it.": "Получает ID этого запуска и ссылку для его открытия.",+ "Fails this step with your error message.": "Завершает этот шаг с ошибкой и вашим сообщением.",+ "Ends the run at this step and marks it as succeeded.": "Завершает запуск на этом шаге и отмечает его как успешный.",+ "Markdown": "Markdown",+ "Outputs this run's ID and a link that opens the run.": "Выводит ID этого запуска и ссылку, которая открывает запуск.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "Здесь запуск завершается с ошибкой, и последующие шаги не выполняются. Если включён Add Error Handler, с ошибкой завершается только этот шаг. Выполняется ветка Failure, и поток продолжается.",+ "Shown as the step's error. Can include data from earlier steps.": "Отображается как ошибка шага. Может содержать данные из предыдущих шагов.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "Запуск завершается здесь и отмечается как успешный. Последующие шаги не выполняются."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/i18n/translation.json b/packages/pieces/community/flow-helper/src/i18n/translation.jsonindex 9afb2c1d6b0..8d5d37f4956 100644--- a/packages/pieces/community/flow-helper/src/i18n/translation.json+++ b/packages/pieces/community/flow-helper/src/i18n/translation.json@@ -1,9 +1,15 @@{+ "Stop or fail a running flow, or get a link to the current run.": "Stop or fail a running flow, or get a link to the current run.","Get Run Info": "Get Run Info","Fail Flow": "Fail Flow","Stop Flow": "Stop Flow",- "Fails the flow execution with a custom message.": "Fails the flow execution with a custom message.",- "Stops the flow immediately this step is reached.": "Stops the flow immediately this step is reached.",+ "Gets this run's ID and a link to open it.": "Gets this run's ID and a link to open it.",+ "Fails this step with your error message.": "Fails this step with your error message.",+ "Ends the run at this step and marks it as succeeded.": "Ends the run at this step and marks it as succeeded.",+ "Markdown": "Markdown","Error Message": "Error Message",- "The error message to show when the flow fails.": "The error message to show when the flow fails."+ "Outputs this run's ID and a link that opens the run.": "Outputs this run's ID and a link that opens the run.",+ "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.": "The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.",+ "Shown as the step's error. Can include data from earlier steps.": "Shown as the step's error. Can include data from earlier steps.",+ "The run ends here and is marked as succeeded. Steps after this one do not run.": "The run ends here and is marked as succeeded. Steps after this one do not run."}\ No newline at end of filediff --git a/packages/pieces/community/flow-helper/src/index.ts b/packages/pieces/community/flow-helper/src/index.tsindex db26b851edb..6cc07bb4e09 100644--- a/packages/pieces/community/flow-helper/src/index.ts+++ b/packages/pieces/community/flow-helper/src/index.ts@@ -5,6 +5,7 @@ import { stopFlow } from "./lib/actions/stop-flow";export const flowHelper = createPiece({displayName: "Flow Helper",+ description: "Stop or fail a running flow, or get a link to the current run.",auth: PieceAuth.None(),minimumSupportedRelease: '0.36.1',logoUrl: "https://cdn.activepieces.com/pieces/flow-helper.svg",diff --git a/packages/pieces/community/flow-helper/src/lib/actions/fail-flow.ts b/packages/pieces/community/flow-helper/src/lib/actions/fail-flow.tsindex d04c08240e0..ffd01c36a28 100644--- a/packages/pieces/community/flow-helper/src/lib/actions/fail-flow.ts+++ b/packages/pieces/community/flow-helper/src/lib/actions/fail-flow.ts@@ -1,16 +1,21 @@-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';export const failFlow = createAction({audience: 'both',name: 'failFlow',classification: 'READ',displayName: 'Fail Flow',- description: 'Fails the flow execution with a custom message.',+ description: 'Fails this step with your error message.',aiMetadata: { description: 'Aborts the current flow run by throwing the supplied message as an error, so the run is recorded as failed and no later steps execute. Use it to hard-fail on an unrecoverable condition; prefer Stop Flow when the early exit is a normal outcome that should still count as a success. Requires an error message, and the run continues past this step if continue-on-failure is enabled on it; idempotent, since it drives the run to the same failed end state and creates nothing.', idempotent: true },props: {+ info: Property.MarkDown({+ value: 'The run fails here and later steps do not run. If Add Error Handler is on, only this step fails. The Failure branch runs and the flow continues.',+ variant: MarkdownVariant.INFO,+ }),message: Property.LongText({displayName: 'Error Message',- description: 'The error message to show when the flow fails.',+ description: "Shown as the step's error. Can include data from earlier steps.",+ placeholder: 'e.g. Order total is missing',required: true,}),},diff --git a/packages/pieces/community/flow-helper/src/lib/actions/get-run-id.ts b/packages/pieces/community/flow-helper/src/lib/actions/get-run-id.tsindex 6d9a9c06625..c6cbff2dba7 100644--- a/packages/pieces/community/flow-helper/src/lib/actions/get-run-id.ts+++ b/packages/pieces/community/flow-helper/src/lib/actions/get-run-id.ts@@ -1,18 +1,22 @@-import { createAction } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { getRunIdActionOutputSchema } from '../output-schemas';export const getRunId = createAction({audience: 'both',- // auth: check https://www.activepieces.com/docs/developers/piece-reference/authentication,name: 'getRunId',classification: 'READ',displayName: 'Get Run Info',- description: '',+ description: "Gets this run's ID and a link to open it.",aiMetadata: { description: 'Returns the identifier of the flow run that is currently executing, along with a direct link to that run in the Activepieces UI. Use it when a later step needs to reference or report the run itself (e.g. embedding a run link in a Slack alert or a support ticket); it only ever describes the in-progress run and cannot look up a different one. Takes no inputs; read-only and idempotent.', idempotent: true },- props: {},+ props: {+ info: Property.MarkDown({+ value: "Outputs this run's ID and a link that opens the run.",+ variant: MarkdownVariant.INFO,+ }),+ },outputSchema: getRunIdActionOutputSchema,async run(context) {- const publicUrlWithoutApi = context.server.publicUrl.replace('/api', '');+ const publicUrlWithoutApi = context.server.publicUrl.replace(/api\/$/, '');return {id: context.run.id,url: `${publicUrlWithoutApi}projects/${context.project.id}/runs/${context.run.id}`diff --git a/packages/pieces/community/flow-helper/src/lib/actions/stop-flow.ts b/packages/pieces/community/flow-helper/src/lib/actions/stop-flow.tsindex 597d8c6dfa6..50e3ba7b248 100644--- a/packages/pieces/community/flow-helper/src/lib/actions/stop-flow.ts+++ b/packages/pieces/community/flow-helper/src/lib/actions/stop-flow.ts@@ -1,4 +1,4 @@-import { createAction} from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { stopFlowActionOutputSchema } from '../output-schemas';export const stopFlow = createAction({@@ -6,9 +6,14 @@ export const stopFlow = createAction({name: 'stopFlow',classification: 'READ',displayName: 'Stop Flow',- description: 'Stops the flow immediately this step is reached.',+ description: 'Ends the run at this step and marks it as succeeded.',aiMetadata: { description: 'Ends the current flow run at this step and marks it as stopped rather than failed, so no later steps execute. Use it for an early exit when a condition means there is nothing left to do; prefer Fail Flow when the exit should be recorded as an error instead. Takes no inputs and stops the run without a custom webhook response; idempotent, since it drives the run to the same stopped end state and creates nothing.', idempotent: true },- props: {},+ props: {+ info: Property.MarkDown({+ value: 'The run ends here and is marked as succeeded. Steps after this one do not run.',+ variant: MarkdownVariant.INFO,+ }),+ },outputSchema: stopFlowActionOutputSchema,async run(context) {context.run.stop();