diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx index b8f71501fc..8797249b0b 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx @@ -54,6 +54,13 @@ const EmailConfigureModal = ({ }) return false } + if (!/{{#url#}}/.test(body.trim())) { + Toast.notify({ + type: 'error', + message: `body must contain one ${t('common.promptEditor.requestURL.item.title')}`, + }) + return false + } if (!recipients || (recipients.items.length === 0 && !recipients.whole_workspace)) { Toast.notify({ type: 'error', diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx index d32ff37627..166ca6a36b 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/recipient/email-input.tsx @@ -9,6 +9,7 @@ import { PortalToFollowElemContent, PortalToFollowElemTrigger, } from '@/app/components/base/portal-to-follow-elem' +import cn from '@/utils/classnames' const i18nPrefix = 'workflow.nodes.humanInput' @@ -103,7 +104,7 @@ const EmailInput = ({ return (