diff --git a/web/app/components/base/chat/chat/answer/human-input-content/index.tsx b/web/app/components/base/chat/chat/answer/human-input-content/index.tsx
index b52be06747..6f2859f32a 100644
--- a/web/app/components/base/chat/chat/answer/human-input-content/index.tsx
+++ b/web/app/components/base/chat/chat/answer/human-input-content/index.tsx
@@ -1,20 +1,43 @@
+import { useTranslation } from 'react-i18next'
import HumanInputForm from './human-input-form'
import type { FormData } from './human-input-form'
+import { useChatContext } from '../../context'
+import type { HumanInputFormData } from '@/types/workflow'
+import type { DeliveryMethod } from '@/app/components/workflow/nodes/human-input/types'
+import { DeliveryMethodType } from '@/app/components/workflow/nodes/human-input/types'
+import Divider from '@/app/components/base/divider'
type Props = {
- formData: FormData
- showDebugTip?: boolean
+ formData: HumanInputFormData
showTimeout?: boolean
onSubmit?: (formID: string, data: any) => void
}
const HumanInputContent = ({ formData, onSubmit }: Props) => {
+ const { t } = useTranslation()
+ const {
+ getHumanInputNodeData,
+ } = useChatContext()
+
+ const deliveryMethodsConfig = getHumanInputNodeData?.(formData.node_id as any)?.data.delivery_methods || []
+ const isWebappEnabled = deliveryMethodsConfig.some((method: DeliveryMethod) => method.type === DeliveryMethodType.WebApp && method.enabled)
+ const isEmailEnabled = deliveryMethodsConfig.some((method: DeliveryMethod) => method.type === DeliveryMethodType.Email && method.enabled)
+
return (
<>