method.type === DeliveryMethodType.WebApp) && 'opacity-50')}>
-
+
method.type === DeliveryMethodType.WebApp) && 'opacity-50')}>
+
method.type === DeliveryMethodType.WebApp) && 'opacity-50')}>
{t(`${i18nPrefix}.deliveryMethod.types.webapp.title`)}
@@ -93,8 +98,8 @@ const MethodSelector: FC
= ({
})
}}
>
- method.type === DeliveryMethodType.Email) && 'opacity-50')}>
-
+
method.type === DeliveryMethodType.Email) && 'opacity-50')}>
+
method.type === DeliveryMethodType.Email) && 'opacity-50')}>
{t(`${i18nPrefix}.deliveryMethod.types.email.title`)}
@@ -104,8 +109,69 @@ const MethodSelector: FC
= ({
{t(`${i18nPrefix}.deliveryMethod.added`)}
)}
+ {/* Slack */}
+
+
+
+
+
+
{t(`${i18nPrefix}.deliveryMethod.types.slack.title`)}
+
{t(`${i18nPrefix}.deliveryMethod.types.slack.description`)}
+
+
+ COMING SOON
+
+
+ {/* Teams */}
+
+
+
+
+
+
{t(`${i18nPrefix}.deliveryMethod.types.teams.title`)}
+
{t(`${i18nPrefix}.deliveryMethod.types.teams.description`)}
+
+
+ COMING SOON
+
+
+ {/* Discord */}
+
+
+
+
+
+
{t(`${i18nPrefix}.deliveryMethod.types.discord.title`)}
+
{t(`${i18nPrefix}.deliveryMethod.types.discord.description`)}
+
+
+ COMING SOON
+
+
+ {!IS_CE_EDITION && (
+
+
+
+
+
+
+
{t(`${i18nPrefix}.deliveryMethod.contactTip1`)}
+
support@dify.ai }}
+ />
+
+
+
+ )}
)
diff --git a/web/app/components/workflow/nodes/human-input/types.ts b/web/app/components/workflow/nodes/human-input/types.ts
index 2f55095db5..4a2b30e10c 100644
--- a/web/app/components/workflow/nodes/human-input/types.ts
+++ b/web/app/components/workflow/nodes/human-input/types.ts
@@ -14,6 +14,8 @@ export enum DeliveryMethodType {
WebApp = 'webapp',
Email = 'email',
Slack = 'slack',
+ Teams = 'teams',
+ Discord = 'discord',
}
export type Recipient = {
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts
index 6e263ff414..f7fbcde8a3 100644
--- a/web/i18n/en-US/workflow.ts
+++ b/web/i18n/en-US/workflow.ts
@@ -960,7 +960,17 @@ const translation = {
title: 'Slack',
description: 'Send request for input via Slack',
},
+ teams: {
+ title: 'Teams',
+ description: 'Send request for input via Teams',
+ },
+ discord: {
+ title: 'Discord',
+ description: 'Send request for input via Discord',
+ },
},
+ contactTip1: 'Missing a delivery method you need?',
+ contactTip2: 'Tell us at
support@dify.ai.',
added: 'Added',
notConfigured: 'Not configured',
emailConfigure: {
diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts
index 033855d06f..0c1e76fe14 100644
--- a/web/i18n/zh-Hans/workflow.ts
+++ b/web/i18n/zh-Hans/workflow.ts
@@ -960,7 +960,17 @@ const translation = {
title: 'Slack',
description: '通过 Slack 发送输入请求',
},
+ teams: {
+ title: 'Teams',
+ description: '通过 Teams 发送输入请求',
+ },
+ discord: {
+ title: 'Discord',
+ description: '通过 Discord 发送输入请求',
+ },
},
+ contactTip1: '缺少所需的提交方式?',
+ contactTip2: '请告诉我们
support@dify.ai',
added: '已添加',
notConfigured: '未配置',
emailConfigure: {