The Answer node defines what content gets delivered to users in Chatflow applications. Use it to format responses, combine text with variables, and stream multimodal content including text, images, and files.
The Answer node is only available for Chatflow applications. Workflow applications use the End node instead.
The Answer node provides a flexible text editor where you can craft responses using fixed text, variables from previous nodes, or combinations of both.Reference variables from any previous workflow node using the {{variable_name}} syntax. The editor supports rich content formatting and variable insertion to create dynamic, contextual responses.
Answer nodes support rich content delivery including text, images, and files in a single response stream.
Multimodal Answer with Image and Text Content
Text Content can include variable substitution, markdown formatting, and dynamic content based on workflow processing results.Image Content displays images generated by tools, uploaded by users, or processed by workflow nodes. Images stream alongside text for rich user experiences.File Content delivers documents, spreadsheets, or other files generated or processed during the workflow execution.
Answer nodes stream content progressively based on variable availability. The node outputs all content up to the first unresolved variable, then waits for that variable to resolve before continuing.Variable Order Matters - The sequence of variables in your Answer node determines streaming behavior, not the execution order of upstream nodes.For example, with nodes executing as Node A -> Node B -> Answer:
If the Answer contains {{A}} then {{B}}, it streams A’s content immediately when available, then waits for B
If the Answer contains {{B}} then {{A}}, it waits for B to complete before streaming any content
This streaming behavior enables responsive user experiences while maintaining content coherence.
Answer nodes seamlessly integrate with outputs from all workflow node types. Common variable sources include:LLM Responses - Display generated text, analysis results, or structured outputs from language modelsKnowledge Retrieval - Show relevant information found in knowledge bases with automatic citation trackingTool Results - Present data from external APIs, calculations, or service integrationsFile Processing - Display extracted text, analysis results, or processed document contentThe variable system maintains type safety and automatically handles different content types for optimal display in the chat interface.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Dify Enterprise Docs","colors":{"primary":"#0060FF","light":"#688FE8","dark":"#0034FF"},"logo":{"light":"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg","dark":"https://assets-docs.dify.ai/2025/05/c51f1cda47c1d9a4a162d7736f6e4c53.svg"},"favicon":"https://mintcdn.com/dify-enterprise-docs/zvhvyUvEpyoIONBf/logo/dify-logo.png?fit=max\u0026auto=format\u0026n=zvhvyUvEpyoIONBf\u0026q=85\u0026s=e0afd8349b7a272ad12280680a53043c","navbar":{"links":[{"href":"mailto:support@dify.ai","label":"Support"}]},"footer":{"socials":{"x":"https://x.com/dify_ai","github":"https://github.com/langgenius/dify","linkedin":"https://www.linkedin.com/company/langgenius"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"en/3.13.x/deploy/checklist"},{"language":"zh","href":"zh/3.13.x/deploy/checklist"},{"language":"ja","href":"ja/3.13.x/deploy/checklist"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dify-enterprise-docs","hasAudioNarration":false,"actualSubdomain":"dify-enterprise-docs","customDomains":["enterprise-docs.dify.ai"],"gitSource":{"type":"github","owner":"langgenius","repo":"dify-enterprise-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"b23b91b8-bf61-4fb0-bbf3-d55d66c55095","liveDeploymentHistoryId":"6ae4489fc0a5d590d24bfa62","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4489fc0a5d590d24bfa62"},"entitlements":{},"buildId":"6ae4489fc0a5d590d24bfa62","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"en","tag":"Developer Resources","count":1947},{"language":"ja","tag":"開発者リソース","count":1947},{"language":"zh","tag":"开发者资源","count":1947},{"language":"en","tag":"Use","count":1401},{"language":"ja","tag":"使い方","count":1401},{"language":"zh","tag":"使用","count":1401},{"language":"en","tag":"Workspace API","count":1353},{"language":"ja","tag":"Workspace API","count":1353},{"language":"zh","tag":"Workspace API","count":1353},{"language":"en","tag":"Knowledge APIs","count":639},{"language":"ja","tag":"ナレッジ API","count":639},{"language":"zh","tag":"知识库 API","count":639},{"language":"en","tag":"Orchestrate","count":620},{"language":"ja","tag":"オーケストレーション","count":620},{"language":"zh","tag":"编排","count":620},{"language":"en","tag":"App APIs","count":545},{"language":"ja","tag":"アプリ API","count":545},{"language":"zh","tag":"应用 API","count":545},{"language":"en","tag":"Workflow \u0026 Chatflow","count":533},{"language":"ja","tag":"ワークフローとチャットフロー","count":533},{"language":"zh","tag":"工作流与对话流","count":533},{"language":"en","tag":"Deploy","count":530},{"language":"ja","tag":"デプロイ","count":530},{"language":"zh","tag":"部署","count":530},{"language":"en","tag":"Plugins","count":524},{"language":"ja","tag":"プラグイン開発","count":522},{"language":"zh","tag":"插件开发","count":522},{"language":"ja","tag":"管理","count":470},{"language":"zh","tag":"管理","count":470},{"language":"en","tag":"Administer","count":420}],"searchSettings":{"maxResults":12}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{text-autospace:normal}html[data-current-path=\"/\"] .nav-tabs{display:none}"}],"page":{"pagePath":"en/3.12.x/use/nodes/answer","slug":"/en/3.12.x/use/nodes/answer","pageMetadata":{"title":"Answer","description":"Define response content in Chatflow applications","href":"/en/3.12.x/use/nodes/answer"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Define response content in Chatflow applications\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,img:`img`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Info}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The Answer node defines what content gets delivered to users in Chatflow applications. Use it to format responses, combine text with variables, and stream multimodal content including text, images, and files.`}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`The Answer node is only available for Chatflow applications. Workflow applications use the End node instead.`})}),`\n`,_jsx(Heading,{level:`2`,id:`content-configuration`,children:`Content Configuration`}),`\n`,_jsx(_components.p,{children:`The Answer node provides a flexible text editor where you can craft responses using fixed text, variables from previous nodes, or combinations of both.`}),`\n`,_jsxs(_components.p,{children:[`Reference variables from any previous workflow node using the `,_jsx(_components.code,{children:`{{variable_name}}`}),` syntax. The editor supports rich content formatting and variable insertion to create dynamic, contextual responses.`]}),`\n`,_jsx(Frame,{caption:`Plain Text Answer Configuration`,children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/2025/04/42bb6bdef101bf79f959f4fc56a50ff3.png`,alt:`Plain Text Answer Configuration`})})}),`\n`,_jsx(Heading,{level:`2`,id:`multimodal-responses`,children:`Multimodal Responses`}),`\n`,_jsx(_components.p,{children:`Answer nodes support rich content delivery including text, images, and files in a single response stream.`}),`\n`,_jsx(Frame,{caption:`Multimodal Answer with Image and Text Content`,children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/2025/04/d2c901e821029756ebf95f4e099d833f.png`,alt:`Multimodal Answer with Image and Text Content`})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Text Content`}),` can include variable substitution, markdown formatting, and dynamic content based on workflow processing results.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Image Content`}),` displays images generated by tools, uploaded by users, or processed by workflow nodes. Images stream alongside text for rich user experiences.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`File Content`}),` delivers documents, spreadsheets, or other files generated or processed during the workflow execution.`]}),`\n`,_jsx(Frame,{caption:`Answer Node User Interface in Chat`,children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/2025/04/5a70a5e568dded3975e54cfa84085c93.png`,alt:`Answer Node User Interface in Chat`})})}),`\n`,_jsx(Heading,{level:`2`,id:`streaming-behavior`,children:`Streaming Behavior`}),`\n`,_jsx(_components.p,{children:`Answer nodes stream content progressively based on variable availability. The node outputs all content up to the first unresolved variable, then waits for that variable to resolve before continuing.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Variable Order Matters`}),` - The sequence of variables in your Answer node determines streaming behavior, not the execution order of upstream nodes.`]}),`\n`,_jsxs(_components.p,{children:[`For example, with nodes executing as `,_jsx(_components.code,{children:`Node A -> Node B -> Answer`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`If the Answer contains `,_jsx(_components.code,{children:`{{A}}`}),` then `,_jsx(_components.code,{children:`{{B}}`}),`, it streams A’s content immediately when available, then waits for B`]}),`\n`,_jsxs(_components.li,{children:[`If the Answer contains `,_jsx(_components.code,{children:`{{B}}`}),` then `,_jsx(_components.code,{children:`{{A}}`}),`, it waits for B to complete before streaming any content`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This streaming behavior enables responsive user experiences while maintaining content coherence.`}),`\n`,_jsx(Heading,{level:`2`,id:`multiple-answer-nodes`,children:`Multiple Answer Nodes`}),`\n`,_jsx(_components.p,{children:`You can place multiple Answer nodes throughout your Chatflow to deliver content at different stages of processing.`}),`\n`,_jsx(Heading,{level:`2`,id:`variable-integration`,children:`Variable Integration`}),`\n`,_jsx(_components.p,{children:`Answer nodes seamlessly integrate with outputs from all workflow node types. Common variable sources include:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`LLM Responses`}),` - Display generated text, analysis results, or structured outputs from language models`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Knowledge Retrieval`}),` - Show relevant information found in knowledge bases with automatic citation tracking`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Tool Results`}),` - Present data from external APIs, calculations, or service integrations`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`File Processing`}),` - Display extracted text, analysis results, or processed document content`]}),`\n`,_jsx(_components.p,{children:`The variable system maintains type safety and automatically handles different content types for optimal display in the chat interface.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Answer","description":"Define response content in Chatflow applications","href":"/en/3.12.x/use/nodes/answer"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Content Configuration","slug":"content-configuration","depth":2,"children":[]},{"title":"Multimodal Responses","slug":"multimodal-responses","depth":2,"children":[]},{"title":"Streaming Behavior","slug":"streaming-behavior","depth":2,"children":[]},{"title":"Multiple Answer Nodes","slug":"multiple-answer-nodes","depth":2,"children":[]},{"title":"Variable Integration","slug":"variable-integration","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dify-enterprise-docs","siteName":"Dify Enterprise Docs","title":"Answer - Dify Enterprise Docs","navMaps":{"firstHrefInVersion":{"3.13.x":{"href":"/en/3.13.x/use/nodes/answer","matchLevel":1},"3.12.x":{"href":"/en/3.12.x/use/nodes/answer","matchLevel":0},"3.11.x":{"href":"/en/3.11.x/use/nodes/answer","matchLevel":1},"3.10.x":{"href":"/en/3.10.x/use/nodes/answer","matchLevel":1},"3.9.x":{"href":"/en/3.9.x/use/nodes/answer","matchLevel":1},"3.8.x":{"href":"/en/3.8.x/use/nodes/answer","matchLevel":1},"3.7.x":{"href":"/en/3.7.x/use/nodes/answer","matchLevel":1},"3.6.x":{"href":"/en/3.6.x/use/nodes/answer","matchLevel":1},"3.5.x":{"href":"/en/3.5.x/use/nodes/answer","matchLevel":1},"3.4.x":{"href":"/en/3.4.x/use/nodes/answer","matchLevel":1},"3.3.x":{"href":"/en/3.3.x/use/nodes/answer","matchLevel":1},"3.2.x":{"href":"/en/3.2.x/use/nodes/answer","matchLevel":1},"3.1.x":{"href":"/en/3.1.x/use/nodes/answer","matchLevel":1},"3.0.x":{"href":"/en/3.0.x/use/nodes/answer","matchLevel":1},"2.8.x":{"href":"/en/2.8.x/use/nodes/answer","matchLevel":1},"2.7.x":{"href":"/en/2.7.x/use/nodes/answer","matchLevel":1},"2.6.x":{"href":"/en/2.6.x/use/nodes/answer","matchLevel":1},"2.5.x":{"href":"/en/2.5.x/use/nodes/answer","matchLevel":1}},"firstHrefInLanguage":{"en":{"href":"/en/3.12.x/use/nodes/answer","matchLevel":0},"zh":{"href":"/zh/3.12.x/use/nodes/answer","matchLevel":1},"ja":{"href":"/ja/3.12.x/use/nodes/answer","matchLevel":1}}},"lastModified":"2026-07-31T15:23:13.026Z","originalFileLocation":"en/3.12.x/use/nodes/answer.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Define response content in Chatflow applications\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Answer - Dify Enterprise Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Define response content in Chatflow applications\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dify-enterprise-docs.mintlify.app/_mintlify/api/og/v2?division=Nodes\u0026amp;title=Answer\u0026amp;description=Define+response+content+in+Chatflow+applications\u0026amp;theme=fc270d2c96587e5833522f0e\u0026amp;signature=61b4ad56cc1b826f90568c1664d3fd8bad6ffc2f862d8181f9eadc21de2d662e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Answer - Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Define response content in Chatflow applications\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dify-enterprise-docs.mintlify.app/_mintlify/api/og/v2?division=Nodes\u0026amp;title=Answer\u0026amp;description=Define+response+content+in+Chatflow+applications\u0026amp;theme=fc270d2c96587e5833522f0e\u0026amp;signature=61b4ad56cc1b826f90568c1664d3fd8bad6ffc2f862d8181f9eadc21de2d662e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dify-enterprise-docs/0-RXGeruZhgwpkgZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0060FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/3.12.x/use/nodes/answer.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://enterprise-docs.dify.ai/zh/3.12.x/use/nodes/answer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://enterprise-docs.dify.ai/ja/3.12.x/use/nodes/answer\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://enterprise-docs.dify.ai/#organization\",\"name\":\"Dify Enterprise Docs\",\"url\":\"https://enterprise-docs.dify.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://enterprise-docs.dify.ai#website\",\"name\":\"Dify Enterprise Docs\",\"url\":\"https://enterprise-docs.dify.ai\",\"publisher\":{\"@id\":\"https://enterprise-docs.dify.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer#webpage\",\"url\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\",\"name\":\"Answer\",\"description\":\"Define response content in Chatflow applications\",\"dateModified\":\"2026-07-31T15:23:13.026Z\",\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"},\"breadcrumb\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Orchestrate\",\"item\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/build/workflow-chatflow\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Workflow \u0026 Chatflow\",\"item\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/build/workflow-chatflow\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Nodes\",\"item\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/user-input\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Answer\",\"item\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer#article\",\"headline\":\"Answer\",\"name\":\"Answer\",\"description\":\"Define response content in Chatflow applications\",\"url\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer\",\"mainEntityOfPage\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.12.x/use/nodes/answer#webpage\"},\"dateModified\":\"2026-07-31T15:23:13.026Z\",\"publisher\":{\"@id\":\"https://enterprise-docs.dify.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dify Enterprise Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Dify Enterprise Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"versions":[{"version":"3.13.x","tag":"LTS","pages":[{"title":"3.13.x","href":"/en/3.13.x/use/nodes/answer"}]},{"version":"3.12.x","tabs":[{"tab":"Deploy","pages":[{"title":"Deploy","href":"/en/3.12.x/deploy/checklist"}]},{"tab":"Administer","pages":[{"title":"Administer","href":"/en/3.12.x/administer/workspace-management"}]},{"tab":"Use","pages":[{"group":"Orchestrate","icon":"hammer","pages":[{"group":"Workflow \u0026 Chatflow","expanded":false,"pages":[{"title":"Workflow \u0026 Chatflow","sidebarTitle":"Overview","href":"/en/3.12.x/use/build/workflow-chatflow"},{"title":"Orchestration Logic","href":"/en/3.12.x/use/build/orchestrate-node"},{"group":"Nodes","expanded":false,"pages":[{"group":"Start","root":{"title":"Start Node","href":"/en/3.12.x/use/nodes/start"},"pages":[{"title":"User Input","href":"/en/3.12.x/use/nodes/user-input"},{"group":"Trigger","root":{"title":"Trigger","sidebarTitle":"Overview","href":"/en/3.12.x/use/nodes/trigger/overview"},"pages":[{"title":"Schedule Trigger","href":"/en/3.12.x/use/nodes/trigger/schedule-trigger"},{"title":"Integration Trigger","href":"/en/3.12.x/use/nodes/trigger/plugin-trigger"},{"title":"Webhook Trigger","href":"/en/3.12.x/use/nodes/trigger/webhook-trigger"}]}]},{"title":"LLM","href":"/en/3.12.x/use/nodes/llm"},{"title":"Knowledge Retrieval","description":"Retrieve relevant content from knowledge bases and use it as context for downstream nodes","href":"/en/3.12.x/use/nodes/knowledge-retrieval"},{"title":"Answer","href":"/en/3.12.x/use/nodes/answer"},{"title":"Output","description":"Return workflow results to the end user or API caller","href":"/en/3.12.x/use/nodes/output"},{"title":"Agent","href":"/en/3.12.x/use/nodes/agent"},{"title":"Question Classifier","href":"/en/3.12.x/use/nodes/question-classifier"},{"title":"If-Else","href":"/en/3.12.x/use/nodes/ifelse"},{"title":"Human Input","href":"/en/3.12.x/use/nodes/human-input"},{"title":"Iteration","href":"/en/3.12.x/use/nodes/iteration"},{"title":"Loop","href":"/en/3.12.x/use/nodes/loop"},{"title":"Code","href":"/en/3.12.x/use/nodes/code"},{"title":"Template","href":"/en/3.12.x/use/nodes/template"},{"title":"Variable Aggregator","href":"/en/3.12.x/use/nodes/variable-aggregator"},{"title":"Document Extractor","href":"/en/3.12.x/use/nodes/doc-extractor"},{"title":"Variable Assigner","href":"/en/3.12.x/use/nodes/variable-assigner"},{"title":"Parameter Extractor","href":"/en/3.12.x/use/nodes/parameter-extractor"},{"title":"HTTP Request","href":"/en/3.12.x/use/nodes/http-request"},{"title":"List Operator","href":"/en/3.12.x/use/nodes/list-operator"},{"title":"Tool Node","sidebarTitle":"Tool","href":"/en/3.12.x/use/nodes/tools"}]},{"title":"Hotkeys","href":"/en/3.12.x/use/build/shortcut-key"},{"title":"Version Control","href":"/en/3.12.x/use/build/version-control"},{"title":"Snippets","sidebarTitle":"Snippets","href":"/en/3.12.x/use/build/snippet"},{"title":"Collaborate with Teammates","sidebarTitle":"Collaboration","href":"/en/3.12.x/use/build/workflow-collaboration"},{"group":"Debug","expanded":false,"pages":[{"title":"Handle Errors","href":"/en/3.12.x/use/build/predefined-error-handling-logic"},{"title":"Single Node","href":"/en/3.12.x/use/debug/step-run"},{"title":"Variable Inspector","href":"/en/3.12.x/use/debug/variable-inspect"},{"title":"Run History","href":"/en/3.12.x/use/debug/history-and-logs"},{"title":"Error Types","href":"/en/3.12.x/use/debug/error-type"}]}]},{"group":"New Agent","tag":"Beta","expanded":false,"pages":[{"title":"New Agent","sidebarTitle":"Overview","href":"/en/3.12.x/use/build/new-agent/overview"},{"title":"Build an Agent","sidebarTitle":"Build","href":"/en/3.12.x/use/build/new-agent/build"}]},{"group":"Basic Apps","expanded":false,"pages":[{"title":"Agent","href":"/en/3.12.x/use/build/agent"},{"title":"Chatbot","sidebarTitle":"Chatbot","href":"/en/3.12.x/use/build/chatbot"},{"title":"Text Generator","sidebarTitle":"Text Generator","href":"/en/3.12.x/use/build/text-generator"}]},{"title":"App Toolkit","href":"/en/3.12.x/use/build/additional-features"},{"title":"Go to Anything","href":"/en/3.12.x/use/build/goto-anything"}]},{"group":"Publish","icon":"paper-plane","expanded":false,"pages":[{"title":"Overview","href":"/en/3.12.x/use/publish/README"},{"group":"Web App","pages":[{"title":"Workflow Web Apps","href":"/en/3.12.x/use/publish/webapp/workflow-webapp"},{"title":"Chat Web Apps","href":"/en/3.12.x/use/publish/webapp/chatflow-webapp"},{"title":"Settings","href":"/en/3.12.x/use/publish/webapp/web-app-settings"},{"title":"Access Control","href":"/en/3.12.x/use/publish/webapp/web-app-access"},{"title":"Embed Your Web App","sidebarTitle":"Embeds","href":"/en/3.12.x/use/publish/webapp/embedding-in-websites"}]},{"title":"MCP Server","href":"/en/3.12.x/use/publish/publish-mcp"},{"title":"Publish Apps to Marketplace","sidebarTitle":"Marketplace","href":"/en/3.12.x/use/publish/publish-to-marketplace"}]},{"group":"Monitor","icon":"chart-line","expanded":false,"pages":[{"title":"Dashboard","href":"/en/3.12.x/use/monitor/analysis"},{"title":"Logs","href":"/en/3.12.x/use/monitor/logs"},{"title":"Annotation System","href":"/en/3.12.x/use/monitor/annotation-reply"},{"group":"Integrations","pages":[{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","href":"/en/3.12.x/use/monitor/integrations/integrate-langsmith"},{"title":"Integrate with Langfuse","sidebarTitle":"Langfuse","href":"/en/3.12.x/use/monitor/integrations/integrate-langfuse"},{"title":"Integrate with Opik","sidebarTitle":"Opik","href":"/en/3.12.x/use/monitor/integrations/integrate-opik"},{"title":"Integrate with W\u0026B Weave","sidebarTitle":"W\u0026B Weave","href":"/en/3.12.x/use/monitor/integrations/integrate-weave"},{"title":"Integrate with Arize","sidebarTitle":"Arize","href":"/en/3.12.x/use/monitor/integrations/integrate-arize"},{"title":"Integrate with Phoenix","sidebarTitle":"Phoenix","href":"/en/3.12.x/use/monitor/integrations/integrate-phoenix"},{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","href":"/en/3.12.x/use/monitor/integrations/integrate-aliyun"}]}]},{"group":"Knowledge","icon":"book","expanded":false,"pages":[{"title":"Knowledge","sidebarTitle":"Overview","href":"/en/3.12.x/use/knowledge/readme"},{"group":"Create","pages":[{"group":"Ready-to-Use Knowledge Base","pages":[{"title":"Create a Ready-to-Use Knowledge Base","sidebarTitle":"Overview","href":"/en/3.12.x/use/knowledge/create-knowledge/introduction"},{"group":"Import Data","pages":[{"title":"Upload Local Files","href":"/en/3.12.x/use/knowledge/create-knowledge/import-text-data/readme"},{"title":"Sync Data from Notion","href":"/en/3.12.x/use/knowledge/create-knowledge/import-text-data/sync-from-notion"},{"title":"Import Data from Website","href":"/en/3.12.x/use/knowledge/create-knowledge/import-text-data/sync-from-website"}]},{"title":"Configure the Chunk Settings","href":"/en/3.12.x/use/knowledge/create-knowledge/chunking-and-cleaning-text"},{"title":"Specify the Index Method and Retrieval Settings","href":"/en/3.12.x/use/knowledge/create-knowledge/setting-indexing-methods"}]},{"group":"Custom Knowledge Base","pages":[{"title":"Build a Custom Knowledge Base","sidebarTitle":"Overview","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/readme"},{"title":"Step 1: Create Knowledge Pipeline","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/create-knowledge-pipeline"},{"title":"Step 2: Orchestrate Knowledge Pipeline","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration"},{"title":"Step 3: Publish Knowledge Pipeline","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/publish-knowledge-pipeline"},{"title":"Step 4: Upload Files","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/upload-files"},{"title":"Step 5: Manage and Use Knowledge Base","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/manage-knowledge-base"},{"title":"Authorize Data Source","href":"/en/3.12.x/use/knowledge/knowledge-pipeline/authorize-data-source"}]},{"group":"Connect to External Knowledge","pages":[{"title":"Connect to External Knowledge Base","sidebarTitle":"Overview","href":"/en/3.12.x/use/knowledge/connect-external-knowledge-base"},{"title":"External Knowledge API","href":"/en/3.12.x/use/knowledge/external-knowledge-api"}]}]},{"group":"Manage","pages":[{"title":"Manage Knowledge Content","sidebarTitle":"Documents \u0026 Chunks","href":"/en/3.12.x/use/knowledge/manage-knowledge/maintain-knowledge-documents"},{"title":"Manage Document Metadata","sidebarTitle":"Metadata","href":"/en/3.12.x/use/knowledge/metadata"},{"title":"Manage Knowledge Settings","sidebarTitle":"Settings","href":"/en/3.12.x/use/knowledge/manage-knowledge/introduction"}]},{"title":"Test Knowledge Retrieval","sidebarTitle":"Test Retrieval","href":"/en/3.12.x/use/knowledge/test-retrieval"},{"title":"Integrate Knowledge within Apps","sidebarTitle":"Integrate in Apps","href":"/en/3.12.x/use/knowledge/integrate-knowledge-within-application"}]},{"group":"Integrations","icon":"plug","expanded":false,"pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/en/3.12.x/use/workspace/plugins"},{"title":"Model Providers","href":"/en/3.12.x/use/workspace/model-providers"},{"group":"Dify Tools","root":{"title":"Dify Tools","sidebarTitle":"Tools","href":"/en/3.12.x/use/workspace/tools"},"pages":[{"title":"Forward User Identity to MCP Servers","href":"/en/3.12.x/use/workspace/mcp-token-forwarding"}]},{"group":"Custom Endpoint","pages":[{"title":"Custom Endpoints","sidebarTitle":"Overview","href":"/en/3.12.x/use/workspace/api-extension/api-extension"},{"title":"External Data Tool","href":"/en/3.12.x/use/workspace/api-extension/external-data-tool-api-extension"},{"title":"Sensitive Content Moderation","href":"/en/3.12.x/use/workspace/api-extension/moderation-api-extension"},{"title":"Deploy Custom Endpoints Using Cloudflare Workers","href":"/en/3.12.x/use/workspace/api-extension/cloudflare-worker"}]}]},{"group":"Workspace","icon":"briefcase","expanded":false,"pages":[{"title":"Overview","href":"/en/3.12.x/use/workspace/readme"},{"title":"Manage Apps","href":"/en/3.12.x/use/workspace/app-management"},{"title":"Manage Members","href":"/en/3.12.x/use/workspace/team-members-management"},{"group":"Permissions","root":{"title":"Permissions","href":"/en/3.12.x/use/workspace/roles-and-permissions"},"expanded":false,"pages":[{"title":"Permission Reference","href":"/en/3.12.x/use/workspace/permission-reference"}]},{"title":"Personal Settings","href":"/en/3.12.x/use/workspace/personal-account-management"}]}]},{"tab":"Developer Resources","menu":[{"item":"Workspace API","pages":[{"title":"Workspace API","href":"/en/3.12.x/develop/api/guides/get-started"}]},{"item":"CLI","pages":[{"title":"CLI","href":"/en/3.12.x/develop/cli/introduction"}]},{"item":"Plugins","pages":[{"title":"Plugins","href":"/en/3.12.x/develop/plugins/getting-started/getting-started-dify-plugin"}]}],"pages":[{"title":"Developer Resources","href":"/en/3.12.x/develop/api/guides/get-started"}]}]},{"version":"3.11.x","pages":[{"title":"3.11.x","href":"/en/3.11.x/use/nodes/answer"}]},{"version":"3.10.x","pages":[{"title":"3.10.x","href":"/en/3.10.x/use/nodes/answer"}]},{"version":"3.9.x","tag":"LTS","pages":[{"title":"3.9.x","href":"/en/3.9.x/use/nodes/answer"}]},{"version":"3.8.x","pages":[{"title":"3.8.x","href":"/en/3.8.x/use/nodes/answer"}]},{"version":"3.7.x","pages":[{"title":"3.7.x","href":"/en/3.7.x/use/nodes/answer"}]},{"version":"3.6.x","pages":[{"title":"3.6.x","href":"/en/3.6.x/use/nodes/answer"}]},{"version":"3.5.x","pages":[{"title":"3.5.x","href":"/en/3.5.x/use/nodes/answer"}]},{"version":"3.4.x","pages":[{"title":"3.4.x","href":"/en/3.4.x/use/nodes/answer"}]},{"version":"3.3.x","pages":[{"title":"3.3.x","href":"/en/3.3.x/use/nodes/answer"}]},{"version":"3.2.x","pages":[{"title":"3.2.x","href":"/en/3.2.x/use/nodes/answer"}]},{"version":"3.1.x","pages":[{"title":"3.1.x","href":"/en/3.1.x/use/nodes/answer"}]},{"version":"3.0.x","pages":[{"title":"3.0.x","href":"/en/3.0.x/use/nodes/answer"}]},{"version":"2.8.x","pages":[{"title":"2.8.x","href":"/en/2.8.x/use/nodes/answer"}]},{"version":"2.7.x","pages":[{"title":"2.7.x","href":"/en/2.7.x/use/nodes/answer"}]},{"version":"2.6.x","pages":[{"title":"2.6.x","href":"/en/2.6.x/use/nodes/answer"}]},{"version":"2.5.x","pages":[{"title":"2.5.x","href":"/en/2.5.x/use/nodes/answer"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/3.12.x/use/nodes/answer"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/3.12.x/use/nodes/answer"}]}]},"basePath":"","title":"Answer - Dify Enterprise Docs","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-Bpq2Z6jK.js","DynamicMarkdown-D5M2At0B.js","zoom-image-lightbox-DL4wrF0w.js","lightbox-handle-r17bVUz3.js"]}