LangSmith is a platform for building production-grade LLM applications. It is used for developing, collaborating, testing, deploying, and monitoring LLM applications.
Create a project in LangSmith. After logging in, click New Project on the homepage to create your own project. The project will be used to associate with applications in Dify for data monitoring.
Once created, you can view all created projects in the Projects section.
3. Create Project Credentials
Find the project settings Settings in the left sidebar.
Click Create API Key to create project credentials.
Select Personal Access Token for subsequent API authentication.
Copy and save the created API key.
4. Integrate LangSmith with Dify
Configure LangSmith in the Dify application. Open the application you need to monitor, open Monitoring in the side menu, and select Tracing app performance on the page.
After clicking Config, paste the API Key and Project into the configuration and save. The key must allow project reads and trace writes. Endpoint defaults to https://api.smith.langchain.com; a custom API endpoint must use HTTPS.
The configured project name needs to match the project set in LangSmith. If the project does not exist, LangSmith creates it when the first trace arrives, not when the configuration is saved.
Once successfully saved, you can view the monitoring status on the current page.
View Monitoring Data in LangSmith
Once configured, the debug or production data from applications within Dify can be monitored in LangSmith.
When you switch to LangSmith, you can view detailed operation logs of Dify applications in the dashboard.
Detailed LLM operation logs through LangSmith will help you optimize the performance of your Dify application.
After saving and enabling tracing, run the app again and check for a new trace in the monitoring service. Delivery is asynchronous; saving the configuration alone does not confirm that a trace has arrived.With both deployment switches off, the new Agent app type and workflows using the new Agent node still send ordinary traces, including available inputs and outputs, but omit the Agent’s internal model and tool calls.To collect those calls, ask your deployment administrator to turn on both deployment switches in the Helm values: OPS_AGENT_TRACE_ENABLED and DIFY_AGENT_APPLICATION_TRACING_ENABLED. See LLMOps Trace Delivery for details.Once both deployment switches are on, Capture content is off by default for these apps: inputs, outputs, and most metadata are removed, and error text is redacted across the whole workflow. Enable it to send that content. Legacy Agent apps and workflows using only classic Agent nodes retain ordinary tracing.
Monitoring Data List
The tables below describe ordinary traces. When both deployment switches are on, traces from the new Agent app type and from workflows containing a new Agent node use a new UUIDv7 trace ID, with source and tracing-run IDs retained as dify.source.id and dify.tracing.run_id attributes. For the new Agent app type, spans named Agent attempt 1, Agent attempt 2, and so on, with the internal model and tool calls, replace the ordinary llm span when Capture Agent internals is on. These traces leave out the separate moderation, suggested-question, and naming records.Dify exports a hierarchy of operations: a message contains an llm call, and a Chatflow message contains its workflow and node operations. Native token usage is reported on model calls only.The root run ID is the workflow run ID in Workflow apps and the message ID in all other app types. Child run IDs are derived. A parent_run_id refers to the parent’s exported run ID. When you call a Chatflow or Workflow app through the API with an X-Trace-Id header, the root run ID is derived as well, and the header’s value is retained in metadata.For Chatflow, the trace root is the message, with the user’s query as input (or workflow inputs when the query is empty). Its workflow child retains the workflow inputs and outputs.The detail lists below describe Dify’s source records and metadata. Only the relevant, available values are exported; the raw records are not sent in full.
Workflow/Chatflow Trace Information
Used to track workflows and chatflows
Workflow
LangSmith Chain
workflow_run_id (Workflow) / message_id (Chatflow), without X-Trace-Id
id (root run)
user_id
extra.metadata.user_id
workflow (Workflow) / message (Chatflow)
name
start_time
start_time
end_time
end_time
Workflow inputs / Chatflow query (workflow inputs if empty)
inputs
outputs
outputs
Model token consumption (LLM calls)
outputs.usage_metadata
metadata
extra.metadata
error
error
Session ID
extra.metadata.session_id
Parent span (when present)
parent_run_id
Workflow Trace Info
workflow_id - Unique identifier of the workflow
conversation_id - Conversation ID
workflow_run_id - ID of the current run
tenant_id - Tenant ID
elapsed_time - Time taken for the current run
status - Run status
version - Workflow version
total_tokens - Total tokens used in the current run
file_list - List of processed files
triggered_from - Source that triggered the current run
workflow_run_inputs - Input data for the current run
workflow_run_outputs - Output data for the current run
error - Errors encountered during the current run
query - Query used during the run
workflow_app_log_id - Workflow application log ID
message_id - Associated message ID
start_time - Start time of the run
end_time - End time of the run
workflow node executions - Information about workflow node executions
Metadata
workflow_id - Unique identifier of the workflow
conversation_id - Conversation ID
workflow_run_id - ID of the current run
tenant_id - Tenant ID
elapsed_time - Time taken for the current run
status - Run status
version - Workflow version
total_tokens - Total tokens used in the current run
file_list - List of processed files
triggered_from - Source that triggered the current run
Message Trace Information
Used to track LLM-related conversations
Chat
LangSmith Chain / LLM
message_id
id (root run)
end_user_session_id
extra.metadata.end_user_session_id
message
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
Model token consumption (LLM calls)
outputs.usage_metadata
metadata
extra.metadata
error
error
Session ID
extra.metadata.session_id
Message Trace Info
message_id - Message ID
message_data - Message data
end_user_session_id - User session ID
conversation_model - Conversation mode
message_tokens - Number of tokens in the message
answer_tokens - Number of tokens in the answer
total_tokens - Total number of tokens in the message and answer
error - Error information
inputs - Input data
outputs - Output data
file_list - List of processed files
start_time - Start time
end_time - End time
conversation_mode - Conversation mode
Metadata
conversation_id - Conversation ID
ls_provider - Model provider
ls_model_name - Model ID
status - Message status
from_end_user_id - ID of the sending user
from_account_id - ID of the sending account
agent_based - Whether the message is agent-based
workflow_run_id - Workflow run ID
from_source - Message source
Moderation Trace Information
Used to track conversation moderation
Moderation
LangSmith Tool
user_id
extra.metadata.user_id
moderation
name
start_time
start_time
end_time
end_time
inputs
inputs
action, flagged
outputs
metadata
extra.metadata
message_id
parent_run_id
Moderation Trace Info
message_id - Message ID
user_id: User ID
workflow_app_log_id - Workflow application log ID
inputs - Moderation input data
message_data - Message data
flagged - Whether the content is flagged for attention
action - Specific actions taken
preset_response - Preset response
start_time - Moderation start time
end_time - Moderation end time
Metadata
message_id - Message ID
action - Specific actions taken
preset_response - Preset response
Suggested Question Trace Information
Used to track suggested questions
Suggested Question
LangSmith Tool
user_id
extra.metadata.user_id
suggested_question
name
start_time
start_time
end_time
end_time
inputs
inputs
suggested_question
outputs
metadata
extra.metadata
message_id
parent_run_id
Message Trace Info
message_id - Message ID
message_data - Message data
inputs - Input content
outputs - Output content
start_time - Start time
end_time - End time
total_tokens - Number of tokens
status - Message status
error - Error information
from_account_id - ID of the sending account
agent_based - Whether the message is agent-based
from_source - Message source
model_provider - Model provider
model_id - Model ID
suggested_question - Suggested question
level - Status level
status_message - Status message
Metadata
message_id - Message ID
ls_provider - Model provider
ls_model_name - Model ID
status - Message status
from_end_user_id - ID of the sending user
from_account_id - ID of the sending account
workflow_run_id - Workflow run ID
from_source - Message source
Dataset Retrieval Trace Information
Used to track knowledge base retrieval
Dataset Retrieval
LangSmith Retriever
user_id
extra.metadata.user_id
dataset_retrieval
name
start_time
start_time
end_time
end_time
inputs
inputs
documents
outputs
metadata
extra.metadata
message_id
parent_run_id
Dataset Retrieval Trace Info
message_id - Message ID
inputs - Input content
documents - Document data
start_time - Start time
end_time - End time
message_data - Message data
Metadata
message_id - Message ID
ls_provider - Model provider
ls_model_name - Model ID
status - Message status
from_end_user_id - ID of the sending user
from_account_id - ID of the sending account
agent_based - Whether the message is agent-based
workflow_run_id - Workflow run ID
from_source - Message source
Tool Trace Information
Used to track tool invocation
Tool
LangSmith Tool
user_id
extra.metadata.user_id
tool_name
name
start_time
start_time
end_time
end_time
tool_inputs
inputs
tool_outputs
outputs
metadata
extra.metadata
message_id
parent_run_id
Tool Trace Info
message_id - Message ID
tool_name - Tool name
start_time - Start time
end_time - End time
tool_inputs - Tool inputs
tool_outputs - Tool outputs
message_data - Message data
error - Error information, if any
inputs - Inputs for the message
outputs - Outputs of the message
tool_config - Tool configuration
time_cost - Time cost
tool_parameters - Tool parameters
file_url - URL of the associated file
Metadata
message_id - Message ID
tool_name - Tool name
tool_inputs - Tool inputs
tool_outputs - Tool outputs
tool_config - Tool configuration
time_cost - Time cost
error - Error information, if any
tool_parameters - Tool parameters
message_file_id - Message file ID
created_by_role - Role of the creator
created_user_id - User ID of the creator
Generate Name Trace InformationUsed to track conversation title generation
Generate Name
LangSmith Tool
user_id
extra.metadata.user_id
generate_name
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
metadata
extra.metadata
Generate Name Trace Info
conversation_id - Conversation ID
inputs - Input data
outputs - Generated conversation name
start_time - Start time
end_time - End time
tenant_id - Tenant ID
Metadata
conversation_id - Conversation ID
tenant_id - Tenant ID
{"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.14.x/deploy/checklist"},{"language":"zh","href":"zh/3.14.x/deploy/checklist"},{"language":"ja","href":"ja/3.14.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":""},"entitlements":{},"buildId":"6b093c32dd4a00ade0d099a3","clientVersion":"0.0.4340","searchFilterCounts":[{"language":"en","tag":"Developer Resources","count":2107},{"language":"ja","tag":"開発者リソース","count":2107},{"language":"zh","tag":"开发者资源","count":2107},{"language":"en","tag":"Use","count":1519},{"language":"ja","tag":"使い方","count":1519},{"language":"zh","tag":"使用","count":1519},{"language":"en","tag":"Workspace API","count":1459},{"language":"ja","tag":"Workspace API","count":1459},{"language":"zh","tag":"Workspace API","count":1459},{"language":"en","tag":"Knowledge APIs","count":685},{"language":"ja","tag":"ナレッジ API","count":685},{"language":"zh","tag":"知识库 API","count":685},{"language":"en","tag":"Orchestrate","count":671},{"language":"ja","tag":"オーケストレーション","count":671},{"language":"zh","tag":"编排","count":671},{"language":"en","tag":"App APIs","count":593},{"language":"ja","tag":"アプリ API","count":593},{"language":"zh","tag":"应用 API","count":593},{"language":"en","tag":"Workflow \u0026 Chatflow","count":576},{"language":"ja","tag":"ワークフローとチャットフロー","count":576},{"language":"zh","tag":"工作流与对话流","count":576},{"language":"en","tag":"Deploy","count":565},{"language":"ja","tag":"デプロイ","count":565},{"language":"zh","tag":"部署","count":565},{"language":"en","tag":"Plugins","count":563},{"language":"ja","tag":"プラグイン開発","count":561},{"language":"zh","tag":"插件开发","count":561},{"language":"ja","tag":"管理","count":506},{"language":"zh","tag":"管理","count":506},{"language":"en","tag":"Administer","count":451}],"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":"custom-rbac-roles","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":"rbac-expansion","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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{text-autospace:normal}html[data-current-path=\"/\"] .nav-tabs{display:none}"}]}
{"page":{"pagePath":"en/3.14.x/use/monitor/integrations/integrate-langsmith","slug":"/en/3.14.x/use/monitor/integrations/integrate-langsmith","pageMetadata":{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","description":null,"href":"/en/3.14.x/use/monitor/integrations/integrate-langsmith"},"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={a:`a`,code:`code`,img:`img`,li:`li`,p:`p`,strong:`strong`,table:`table`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Info,Note}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`what-is-langsmith`,children:`What is LangSmith`}),`\n`,_jsx(_components.p,{children:`LangSmith is a platform for building production-grade LLM applications. It is used for developing, collaborating, testing, deploying, and monitoring LLM applications.`}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`For more details, please refer to `,_jsx(_components.a,{href:`https://www.langchain.com/langsmith`,children:`LangSmith`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`how-to-configure-langsmith`,children:`How to Configure LangSmith`}),`\n`,_jsxs(Heading,{level:`4`,id:`1-register/login-to-langsmith`,children:[`1. Register/Login to `,_jsx(_components.a,{href:`https://www.langchain.com/langsmith`,children:`LangSmith`})]}),`\n`,_jsx(Heading,{level:`4`,id:`2-create-a-project`,children:`2. Create a Project`}),`\n`,_jsxs(_components.p,{children:[`Create a project in LangSmith. After logging in, click `,_jsx(_components.strong,{children:`New Project`}),` on the homepage to create your own project. The `,_jsx(_components.strong,{children:`project`}),` will be used to associate with `,_jsx(_components.strong,{children:`applications`}),` in Dify for data monitoring.`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/58e20105fcc0771ca2431e8e5dcc42d3.png`,alt:`Create a Project in LangSmith`})})}),`\n`,_jsx(_components.p,{children:`Once created, you can view all created projects in the Projects section.`}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/642c0ff7edfdfe77fba43aa22cc3fa71.png`,alt:`View Created Projects in LangSmith`})})}),`\n`,_jsx(Heading,{level:`4`,id:`3-create-project-credentials`,children:`3. Create Project Credentials`}),`\n`,_jsxs(_components.p,{children:[`Find the project settings `,_jsx(_components.strong,{children:`Settings`}),` in the left sidebar.`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/c49a1fc769215193928ff0d880422f89.png`,alt:`Project Settings`})})}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Create API Key`}),` to create project credentials.`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/7082286b0d12af4bc0c84d9a3acf8b1b.png`,alt:`Create a Project API Key`})})}),`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Personal Access Token`}),` for subsequent API authentication.`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/75a69bd4dd02f0ffc0313589ae12fb36.png`,alt:`Create an API Key`})})}),`\n`,_jsx(_components.p,{children:`Copy and save the created API key.`}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/723e96a13e8f722d6df714b11ffd0bb1.png`,alt:`Copy API Key`})})}),`\n`,_jsx(Heading,{level:`4`,id:`4-integrate-langsmith-with-dify`,children:`4. Integrate LangSmith with Dify`}),`\n`,_jsxs(_components.p,{children:[`Configure LangSmith in the Dify application. Open the application you need to monitor, open `,_jsx(_components.strong,{children:`Monitoring`}),` in the side menu, and select `,_jsx(_components.strong,{children:`Tracing app performance`}),` on the page.`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/b6c7e5d4c2ca2092d59465cca27bc69c.png`,alt:`Tracing App Performance`})})}),`\n`,_jsxs(_components.p,{children:[`After clicking `,_jsx(_components.strong,{children:`Config`}),`, paste the `,_jsx(_components.strong,{children:`API Key`}),` and `,_jsx(_components.strong,{children:`Project`}),` into the configuration and save. The key must allow project reads and trace writes. `,_jsx(_components.strong,{children:`Endpoint`}),` defaults to `,_jsx(_components.code,{children:`https://api.smith.langchain.com`}),`; a custom API endpoint must use HTTPS.`]}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/93dfabcadb7b2ff597f54beb5e642124.png`,alt:`Configure LangSmith`})})}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`The configured project name needs to match the project set in LangSmith. If the project does not exist, LangSmith creates it when the first trace arrives, not when the configuration is saved.`})}),`\n`,_jsx(_components.p,{children:`Once successfully saved, you can view the monitoring status on the current page.`}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/43369dc4de8f606c166fae2efab97d73.png`,alt:`View Configuration Status`})})}),`\n`,_jsx(Heading,{level:`3`,id:`view-monitoring-data-in-langsmith`,children:`View Monitoring Data in LangSmith`}),`\n`,_jsx(_components.p,{children:`Once configured, the debug or production data from applications within Dify can be monitored in LangSmith.`}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/a1370fdbb79257cba31a565ac6764802.png`,alt:`Debugging Applications in Dify`})})}),`\n`,_jsx(_components.p,{children:`When you switch to LangSmith, you can view detailed operation logs of Dify applications in the dashboard.`}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/2833b2ffa20927b5328e9624b065beea.png`,alt:`Viewing Application Data in LangSmith`})})}),`\n`,_jsx(_components.p,{children:`Detailed LLM operation logs through LangSmith will help you optimize the performance of your Dify application.`}),`\n`,_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://assets-docs.dify.ai/dify-enterprise-mintlify/en/guides/monitoring/integrate-external-ops-tools/beeb4ee50c80de8db7400c1f65727c8c.png`,alt:`Viewing Application Data in LangSmith`})})}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:`After saving and enabling tracing, run the app again and check for a new trace in the monitoring service. Delivery is asynchronous; saving the configuration alone does not confirm that a trace has arrived.`}),_jsxs(_components.p,{children:[`With both deployment switches off, the new Agent app type and workflows using the `,_jsx(_components.a,{href:`/en/3.14.x/use/nodes/agent#new-agent`,children:`new Agent node`}),` still send ordinary traces, including available inputs and outputs, but omit the Agent’s internal model and tool calls.`]}),_jsxs(_components.p,{children:[`To collect those calls, ask your deployment administrator to turn on both deployment switches in the Helm values: `,_jsx(_components.code,{children:`OPS_AGENT_TRACE_ENABLED`}),` and `,_jsx(_components.code,{children:`DIFY_AGENT_APPLICATION_TRACING_ENABLED`}),`. See `,_jsx(_components.a,{href:`/en/3.14.x/deploy/advanced-configuration/environment-variables#llmops-trace-delivery`,children:`LLMOps Trace Delivery`}),` for details.`]}),_jsxs(_components.p,{children:[`Once both deployment switches are on, `,_jsx(_components.strong,{children:`Capture content`}),` is off by default for these apps: inputs, outputs, and most metadata are removed, and error text is redacted across the whole workflow. Enable it to send that content. Legacy Agent apps and workflows using only classic Agent nodes retain ordinary tracing.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`monitoring-data-list`,children:`Monitoring Data List`}),`\n`,_jsxs(_components.p,{children:[`The tables below describe ordinary traces. When both deployment switches are on, traces from the new Agent app type and from workflows containing a new Agent node use a new UUIDv7 trace ID, with source and tracing-run IDs retained as `,_jsx(_components.code,{children:`dify.source.id`}),` and `,_jsx(_components.code,{children:`dify.tracing.run_id`}),` attributes. For the new Agent app type, spans named `,_jsx(_components.code,{children:`Agent attempt 1`}),`, `,_jsx(_components.code,{children:`Agent attempt 2`}),`, and so on, with the internal model and tool calls, replace the ordinary `,_jsx(_components.code,{children:`llm`}),` span when `,_jsx(_components.strong,{children:`Capture Agent internals`}),` is on. These traces leave out the separate moderation, suggested-question, and naming records.`]}),`\n`,_jsxs(_components.p,{children:[`Dify exports a hierarchy of operations: a message contains an `,_jsx(_components.code,{children:`llm`}),` call, and a Chatflow message contains its workflow and node operations. Native token usage is reported on model calls only.`]}),`\n`,_jsxs(_components.p,{children:[`The root run ID is the workflow run ID in Workflow apps and the message ID in all other app types. Child run IDs are derived. A `,_jsx(_components.code,{children:`parent_run_id`}),` refers to the parent’s exported run ID. When you call a Chatflow or Workflow app through the API with an `,_jsx(_components.code,{children:`X-Trace-Id`}),` header, the root run ID is derived as well, and the header’s value is retained in metadata.`]}),`\n`,_jsxs(_components.p,{children:[`For Chatflow, the trace root is the `,_jsx(_components.code,{children:`message`}),`, with the user’s query as input (or workflow inputs when the query is empty). Its `,_jsx(_components.code,{children:`workflow`}),` child retains the workflow inputs and outputs.`]}),`\n`,_jsx(_components.p,{children:`The detail lists below describe Dify’s source records and metadata. Only the relevant, available values are exported; the raw records are not sent in full.`}),`\n`,_jsx(Heading,{level:`4`,id:`workflow/chatflow-trace-information`,children:_jsx(_components.strong,{children:`Workflow/Chatflow Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track workflows and chatflows`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Workflow`}),_jsx(_components.th,{children:`LangSmith Chain`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`workflow_run_id (Workflow) / message_id (Chatflow), without X-Trace-Id`}),_jsx(_components.td,{children:`id (root run)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`user_id`}),_jsx(_components.td,{children:`extra.metadata.user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`workflow (Workflow) / message (Chatflow)`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Workflow inputs / Chatflow query (workflow inputs if empty)`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`outputs`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model token consumption (LLM calls)`}),_jsx(_components.td,{children:`outputs.usage_metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`error`}),_jsx(_components.td,{children:`error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Session ID`}),_jsx(_components.td,{children:`extra.metadata.session_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Parent span (when present)`}),_jsx(_components.td,{children:`parent_run_id`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Workflow Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`workflow_id - Unique identifier of the workflow`}),`\n`,_jsx(_components.li,{children:`conversation_id - Conversation ID`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - ID of the current run`}),`\n`,_jsx(_components.li,{children:`tenant_id - Tenant ID`}),`\n`,_jsx(_components.li,{children:`elapsed_time - Time taken for the current run`}),`\n`,_jsx(_components.li,{children:`status - Run status`}),`\n`,_jsx(_components.li,{children:`version - Workflow version`}),`\n`,_jsx(_components.li,{children:`total_tokens - Total tokens used in the current run`}),`\n`,_jsx(_components.li,{children:`file_list - List of processed files`}),`\n`,_jsx(_components.li,{children:`triggered_from - Source that triggered the current run`}),`\n`,_jsx(_components.li,{children:`workflow_run_inputs - Input data for the current run`}),`\n`,_jsx(_components.li,{children:`workflow_run_outputs - Output data for the current run`}),`\n`,_jsx(_components.li,{children:`error - Errors encountered during the current run`}),`\n`,_jsx(_components.li,{children:`query - Query used during the run`}),`\n`,_jsx(_components.li,{children:`workflow_app_log_id - Workflow application log ID`}),`\n`,_jsx(_components.li,{children:`message_id - Associated message ID`}),`\n`,_jsx(_components.li,{children:`start_time - Start time of the run`}),`\n`,_jsx(_components.li,{children:`end_time - End time of the run`}),`\n`,_jsx(_components.li,{children:`workflow node executions - Information about workflow node executions`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`workflow_id - Unique identifier of the workflow`}),`\n`,_jsx(_components.li,{children:`conversation_id - Conversation ID`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - ID of the current run`}),`\n`,_jsx(_components.li,{children:`tenant_id - Tenant ID`}),`\n`,_jsx(_components.li,{children:`elapsed_time - Time taken for the current run`}),`\n`,_jsx(_components.li,{children:`status - Run status`}),`\n`,_jsx(_components.li,{children:`version - Workflow version`}),`\n`,_jsx(_components.li,{children:`total_tokens - Total tokens used in the current run`}),`\n`,_jsx(_components.li,{children:`file_list - List of processed files`}),`\n`,_jsx(_components.li,{children:`triggered_from - Source that triggered the current run`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`message-trace-information`,children:_jsx(_components.strong,{children:`Message Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track LLM-related conversations`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Chat`}),_jsx(_components.th,{children:`LangSmith Chain / LLM`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`message_id`}),_jsx(_components.td,{children:`id (root run)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_user_session_id`}),_jsx(_components.td,{children:`extra.metadata.end_user_session_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`message`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`inputs`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`outputs`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Model token consumption (LLM calls)`}),_jsx(_components.td,{children:`outputs.usage_metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`error`}),_jsx(_components.td,{children:`error`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Session ID`}),_jsx(_components.td,{children:`extra.metadata.session_id`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Message Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`message_data - Message data`}),`\n`,_jsx(_components.li,{children:`end_user_session_id - User session ID`}),`\n`,_jsx(_components.li,{children:`conversation_model - Conversation mode`}),`\n`,_jsx(_components.li,{children:`message_tokens - Number of tokens in the message`}),`\n`,_jsx(_components.li,{children:`answer_tokens - Number of tokens in the answer`}),`\n`,_jsx(_components.li,{children:`total_tokens - Total number of tokens in the message and answer`}),`\n`,_jsx(_components.li,{children:`error - Error information`}),`\n`,_jsx(_components.li,{children:`inputs - Input data`}),`\n`,_jsx(_components.li,{children:`outputs - Output data`}),`\n`,_jsx(_components.li,{children:`file_list - List of processed files`}),`\n`,_jsx(_components.li,{children:`start_time - Start time`}),`\n`,_jsx(_components.li,{children:`end_time - End time`}),`\n`,_jsx(_components.li,{children:`conversation_mode - Conversation mode`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`conversation_id - Conversation ID`}),`\n`,_jsx(_components.li,{children:`ls_provider - Model provider`}),`\n`,_jsx(_components.li,{children:`ls_model_name - Model ID`}),`\n`,_jsx(_components.li,{children:`status - Message status`}),`\n`,_jsx(_components.li,{children:`from_end_user_id - ID of the sending user`}),`\n`,_jsx(_components.li,{children:`from_account_id - ID of the sending account`}),`\n`,_jsx(_components.li,{children:`agent_based - Whether the message is agent-based`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - Workflow run ID`}),`\n`,_jsx(_components.li,{children:`from_source - Message source`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`moderation-trace-information`,children:_jsx(_components.strong,{children:`Moderation Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track conversation moderation`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Moderation`}),_jsx(_components.th,{children:`LangSmith Tool`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`user_id`}),_jsx(_components.td,{children:`extra.metadata.user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`moderation`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`inputs`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`action, flagged`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`message_id`}),_jsx(_components.td,{children:`parent_run_id`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Moderation Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`user_id: User ID`}),`\n`,_jsx(_components.li,{children:`workflow_app_log_id - Workflow application log ID`}),`\n`,_jsx(_components.li,{children:`inputs - Moderation input data`}),`\n`,_jsx(_components.li,{children:`message_data - Message data`}),`\n`,_jsx(_components.li,{children:`flagged - Whether the content is flagged for attention`}),`\n`,_jsx(_components.li,{children:`action - Specific actions taken`}),`\n`,_jsx(_components.li,{children:`preset_response - Preset response`}),`\n`,_jsx(_components.li,{children:`start_time - Moderation start time`}),`\n`,_jsx(_components.li,{children:`end_time - Moderation end time`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`action - Specific actions taken`}),`\n`,_jsx(_components.li,{children:`preset_response - Preset response`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`suggested-question-trace-information`,children:_jsx(_components.strong,{children:`Suggested Question Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track suggested questions`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Suggested Question`}),_jsx(_components.th,{children:`LangSmith Tool`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`user_id`}),_jsx(_components.td,{children:`extra.metadata.user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`suggested_question`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`inputs`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`suggested_question`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`message_id`}),_jsx(_components.td,{children:`parent_run_id`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Message Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`message_data - Message data`}),`\n`,_jsx(_components.li,{children:`inputs - Input content`}),`\n`,_jsx(_components.li,{children:`outputs - Output content`}),`\n`,_jsx(_components.li,{children:`start_time - Start time`}),`\n`,_jsx(_components.li,{children:`end_time - End time`}),`\n`,_jsx(_components.li,{children:`total_tokens - Number of tokens`}),`\n`,_jsx(_components.li,{children:`status - Message status`}),`\n`,_jsx(_components.li,{children:`error - Error information`}),`\n`,_jsx(_components.li,{children:`from_account_id - ID of the sending account`}),`\n`,_jsx(_components.li,{children:`agent_based - Whether the message is agent-based`}),`\n`,_jsx(_components.li,{children:`from_source - Message source`}),`\n`,_jsx(_components.li,{children:`model_provider - Model provider`}),`\n`,_jsx(_components.li,{children:`model_id - Model ID`}),`\n`,_jsx(_components.li,{children:`suggested_question - Suggested question`}),`\n`,_jsx(_components.li,{children:`level - Status level`}),`\n`,_jsx(_components.li,{children:`status_message - Status message`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`ls_provider - Model provider`}),`\n`,_jsx(_components.li,{children:`ls_model_name - Model ID`}),`\n`,_jsx(_components.li,{children:`status - Message status`}),`\n`,_jsx(_components.li,{children:`from_end_user_id - ID of the sending user`}),`\n`,_jsx(_components.li,{children:`from_account_id - ID of the sending account`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - Workflow run ID`}),`\n`,_jsx(_components.li,{children:`from_source - Message source`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`dataset-retrieval-trace-information`,children:_jsx(_components.strong,{children:`Dataset Retrieval Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track knowledge base retrieval`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Dataset Retrieval`}),_jsx(_components.th,{children:`LangSmith Retriever`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`user_id`}),_jsx(_components.td,{children:`extra.metadata.user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`dataset_retrieval`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`inputs`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`documents`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`message_id`}),_jsx(_components.td,{children:`parent_run_id`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Dataset Retrieval Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`inputs - Input content`}),`\n`,_jsx(_components.li,{children:`documents - Document data`}),`\n`,_jsx(_components.li,{children:`start_time - Start time`}),`\n`,_jsx(_components.li,{children:`end_time - End time`}),`\n`,_jsx(_components.li,{children:`message_data - Message data`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`ls_provider - Model provider`}),`\n`,_jsx(_components.li,{children:`ls_model_name - Model ID`}),`\n`,_jsx(_components.li,{children:`status - Message status`}),`\n`,_jsx(_components.li,{children:`from_end_user_id - ID of the sending user`}),`\n`,_jsx(_components.li,{children:`from_account_id - ID of the sending account`}),`\n`,_jsx(_components.li,{children:`agent_based - Whether the message is agent-based`}),`\n`,_jsx(_components.li,{children:`workflow_run_id - Workflow run ID`}),`\n`,_jsx(_components.li,{children:`from_source - Message source`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`4`,id:`tool-trace-information`,children:_jsx(_components.strong,{children:`Tool Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track tool invocation`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Tool`}),_jsx(_components.th,{children:`LangSmith Tool`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`user_id`}),_jsx(_components.td,{children:`extra.metadata.user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`tool_name`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`tool_inputs`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`tool_outputs`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`message_id`}),_jsx(_components.td,{children:`parent_run_id`})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`tool-trace-info`,children:_jsx(_components.strong,{children:`Tool Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`tool_name - Tool name`}),`\n`,_jsx(_components.li,{children:`start_time - Start time`}),`\n`,_jsx(_components.li,{children:`end_time - End time`}),`\n`,_jsx(_components.li,{children:`tool_inputs - Tool inputs`}),`\n`,_jsx(_components.li,{children:`tool_outputs - Tool outputs`}),`\n`,_jsx(_components.li,{children:`message_data - Message data`}),`\n`,_jsx(_components.li,{children:`error - Error information, if any`}),`\n`,_jsx(_components.li,{children:`inputs - Inputs for the message`}),`\n`,_jsx(_components.li,{children:`outputs - Outputs of the message`}),`\n`,_jsx(_components.li,{children:`tool_config - Tool configuration`}),`\n`,_jsx(_components.li,{children:`time_cost - Time cost`}),`\n`,_jsx(_components.li,{children:`tool_parameters - Tool parameters`}),`\n`,_jsx(_components.li,{children:`file_url - URL of the associated file`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`message_id - Message ID`}),`\n`,_jsx(_components.li,{children:`tool_name - Tool name`}),`\n`,_jsx(_components.li,{children:`tool_inputs - Tool inputs`}),`\n`,_jsx(_components.li,{children:`tool_outputs - Tool outputs`}),`\n`,_jsx(_components.li,{children:`tool_config - Tool configuration`}),`\n`,_jsx(_components.li,{children:`time_cost - Time cost`}),`\n`,_jsx(_components.li,{children:`error - Error information, if any`}),`\n`,_jsx(_components.li,{children:`tool_parameters - Tool parameters`}),`\n`,_jsx(_components.li,{children:`message_file_id - Message file ID`}),`\n`,_jsx(_components.li,{children:`created_by_role - Role of the creator`}),`\n`,_jsx(_components.li,{children:`created_user_id - User ID of the creator`}),`\n`]}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Generate Name Trace Information`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Used to track conversation title generation`})}),`\n`,_jsxs(_components.table,{\"data-html-table\":true,children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Generate Name`}),_jsx(_components.th,{children:`LangSmith Tool`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`user_id`}),_jsx(_components.td,{children:`extra.metadata.user_id`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`generate_name`}),_jsx(_components.td,{children:`name`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`start_time`}),_jsx(_components.td,{children:`start_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`end_time`}),_jsx(_components.td,{children:`end_time`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`inputs`}),_jsx(_components.td,{children:`inputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`outputs`}),_jsx(_components.td,{children:`outputs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`metadata`}),_jsx(_components.td,{children:`extra.metadata`})]})]})]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Generate Name Trace Info`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`conversation_id - Conversation ID`}),`\n`,_jsx(_components.li,{children:`inputs - Input data`}),`\n`,_jsx(_components.li,{children:`outputs - Generated conversation name`}),`\n`,_jsx(_components.li,{children:`start_time - Start time`}),`\n`,_jsx(_components.li,{children:`end_time - End time`}),`\n`,_jsx(_components.li,{children:`tenant_id - Tenant ID`}),`\n`,_jsxs(_components.li,{children:[`Metadata`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`conversation_id - Conversation ID`}),`\n`,_jsx(_components.li,{children:`tenant_id - Tenant ID`}),`\n`]}),`\n`]}),`\n`]})]})}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":"Integrate with LangSmith","sidebarTitle":"LangSmith","description":null,"href":"/en/3.14.x/use/monitor/integrations/integrate-langsmith"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What is LangSmith","slug":"what-is-langsmith","depth":3,"children":[]},{"title":"How to Configure LangSmith","slug":"how-to-configure-langsmith","depth":3,"children":[]},{"title":"1. Register/Login to LangSmith","slug":"1-register/login-to-langsmith","depth":4,"children":[]},{"title":"2. Create a Project","slug":"2-create-a-project","depth":4,"children":[]},{"title":"3. Create Project Credentials","slug":"3-create-project-credentials","depth":4,"children":[]},{"title":"4. Integrate LangSmith with Dify","slug":"4-integrate-langsmith-with-dify","depth":4,"children":[]},{"title":"View Monitoring Data in LangSmith","slug":"view-monitoring-data-in-langsmith","depth":3,"children":[]},{"title":"Monitoring Data List","slug":"monitoring-data-list","depth":3,"children":[]},{"title":"Workflow/Chatflow Trace Information","slug":"workflow/chatflow-trace-information","depth":4,"children":[]},{"title":"Message Trace Information","slug":"message-trace-information","depth":4,"children":[]},{"title":"Moderation Trace Information","slug":"moderation-trace-information","depth":4,"children":[]},{"title":"Suggested Question Trace Information","slug":"suggested-question-trace-information","depth":4,"children":[]},{"title":"Dataset Retrieval Trace Information","slug":"dataset-retrieval-trace-information","depth":4,"children":[]},{"title":"Tool Trace Information","slug":"tool-trace-information","depth":4,"children":[]},{"title":"Tool Trace Info","slug":"tool-trace-info","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"dify-enterprise-docs","siteName":"Dify Enterprise Docs","title":"Integrate with LangSmith - Dify Enterprise Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"3.14.x":{"href":"/en/3.14.x/use/monitor/integrations/integrate-langsmith","matchLevel":0},"3.13.x":{"href":"/en/3.13.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.12.x":{"href":"/en/3.12.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.11.x":{"href":"/en/3.11.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.10.x":{"href":"/en/3.10.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.9.x":{"href":"/en/3.9.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.8.x":{"href":"/en/3.8.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.7.x":{"href":"/en/3.7.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.6.x":{"href":"/en/3.6.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.5.x":{"href":"/en/3.5.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.4.x":{"href":"/en/3.4.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.3.x":{"href":"/en/3.3.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.2.x":{"href":"/en/3.2.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.1.x":{"href":"/en/3.1.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"3.0.x":{"href":"/en/3.0.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"2.8.x":{"href":"/en/2.8.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"2.7.x":{"href":"/en/2.7.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"2.6.x":{"href":"/en/2.6.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"2.5.x":{"href":"/en/2.5.x/use/monitor/integrations/integrate-langsmith","matchLevel":1}},"firstHrefInLanguage":{"en":{"href":"/en/3.14.x/use/monitor/integrations/integrate-langsmith","matchLevel":0},"zh":{"href":"/zh/3.14.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"ja":{"href":"/ja/3.14.x/use/monitor/integrations/integrate-langsmith","matchLevel":1}}},"lastModified":"2026-11-27T08:17:49.278Z","originalFileLocation":"en/3.14.x/use/monitor/integrations/integrate-langsmith.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=\"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=\"Integrate with LangSmith - Dify Enterprise Docs\">\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.14.x/use/monitor/integrations/integrate-langsmith\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dify-enterprise-docs.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Integrate+with+LangSmith\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=eb0c69c98aa1c8ce520f8968e996a34a0688ac18146dd565d0cf480991efb2b8\">\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=\"Integrate with LangSmith - Dify Enterprise Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dify-enterprise-docs.mintlify.site/_mintlify/api/og/v2?division=Integrations\u0026amp;title=Integrate+with+LangSmith\u0026amp;theme=e95e546bd9c3a8e3c27c730b\u0026amp;signature=eb0c69c98aa1c8ce520f8968e996a34a0688ac18146dd565d0cf480991efb2b8\">\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.14.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/3.14.x/use/monitor/integrations/integrate-langsmith.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://enterprise-docs.dify.ai/zh/3.14.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://enterprise-docs.dify.ai/ja/3.14.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith\">\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.14.x/use/monitor/integrations/integrate-langsmith#webpage\",\"url\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith\",\"name\":\"Integrate with LangSmith\",\"dateModified\":\"2026-11-27T08:17:49.278Z\",\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"},\"breadcrumb\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Monitor\",\"item\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/analysis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrate with LangSmith\",\"item\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith#article\",\"headline\":\"Integrate with LangSmith\",\"name\":\"Integrate with LangSmith\",\"url\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith\",\"mainEntityOfPage\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.14.x/use/monitor/integrations/integrate-langsmith#webpage\"},\"dateModified\":\"2026-11-27T08:17:49.278Z\",\"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\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dify Enterprise Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/3.14.x/use/monitor/integrations/integrate-langsmith.md","siteName":"Dify Enterprise Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"versions":[{"version":"3.14.x","tabs":[{"tab":"Deploy","pages":[{"title":"Deploy","href":"/en/3.14.x/deploy/checklist"}]},{"tab":"Administer","pages":[{"title":"Administer","href":"/en/3.14.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.14.x/use/build/workflow-chatflow"},{"title":"Orchestration Logic","href":"/en/3.14.x/use/build/orchestrate-node"},{"group":"Nodes","expanded":false,"pages":[{"group":"Start","root":{"title":"Start Node","href":"/en/3.14.x/use/nodes/start"},"pages":[{"title":"User Input","href":"/en/3.14.x/use/nodes/user-input"},{"group":"Trigger","root":{"title":"Trigger","sidebarTitle":"Overview","href":"/en/3.14.x/use/nodes/trigger/overview"},"pages":[{"title":"Schedule Trigger","href":"/en/3.14.x/use/nodes/trigger/schedule-trigger"},{"title":"Integration Trigger","href":"/en/3.14.x/use/nodes/trigger/plugin-trigger"},{"title":"Webhook Trigger","href":"/en/3.14.x/use/nodes/trigger/webhook-trigger"}]}]},{"title":"LLM","href":"/en/3.14.x/use/nodes/llm"},{"title":"Knowledge Retrieval","href":"/en/3.14.x/use/nodes/knowledge-retrieval"},{"title":"Answer","href":"/en/3.14.x/use/nodes/answer"},{"title":"Output","href":"/en/3.14.x/use/nodes/output"},{"title":"Agent","href":"/en/3.14.x/use/nodes/agent"},{"title":"Question Classifier","href":"/en/3.14.x/use/nodes/question-classifier"},{"title":"If-Else","href":"/en/3.14.x/use/nodes/ifelse"},{"group":"Human Input","root":{"title":"Human Input","href":"/en/3.14.x/use/nodes/human-input"},"expanded":false,"pages":[]},{"title":"Iteration","href":"/en/3.14.x/use/nodes/iteration"},{"title":"Loop","href":"/en/3.14.x/use/nodes/loop"},{"title":"Code","href":"/en/3.14.x/use/nodes/code"},{"title":"Template","href":"/en/3.14.x/use/nodes/template"},{"title":"Variable Aggregator","href":"/en/3.14.x/use/nodes/variable-aggregator"},{"title":"Document Extractor","href":"/en/3.14.x/use/nodes/doc-extractor"},{"title":"Variable Assigner","href":"/en/3.14.x/use/nodes/variable-assigner"},{"title":"Parameter Extractor","href":"/en/3.14.x/use/nodes/parameter-extractor"},{"title":"HTTP Request","href":"/en/3.14.x/use/nodes/http-request"},{"title":"List Operator","href":"/en/3.14.x/use/nodes/list-operator"},{"title":"Tool Node","sidebarTitle":"Tool","href":"/en/3.14.x/use/nodes/tools"}]},{"title":"Hotkeys","href":"/en/3.14.x/use/build/shortcut-key"},{"title":"Version Control","href":"/en/3.14.x/use/build/version-control"},{"title":"Snippets","sidebarTitle":"Snippets","href":"/en/3.14.x/use/build/snippet"},{"title":"Collaborate with Teammates","sidebarTitle":"Collaboration","href":"/en/3.14.x/use/build/workflow-collaboration"},{"group":"Debug","expanded":false,"pages":[{"title":"Handle Errors","href":"/en/3.14.x/use/build/predefined-error-handling-logic"},{"title":"Single Node","href":"/en/3.14.x/use/debug/step-run"},{"title":"Variable Inspector","href":"/en/3.14.x/use/debug/variable-inspect"},{"title":"Run History","href":"/en/3.14.x/use/debug/history-and-logs"},{"title":"Error Types","href":"/en/3.14.x/use/debug/error-type"}]}]},{"group":"Agent","tag":"New","expanded":false,"pages":[{"title":"Agent","sidebarTitle":"Overview","href":"/en/3.14.x/use/build/new-agent/overview"},{"title":"Build an Agent","sidebarTitle":"Build","href":"/en/3.14.x/use/build/new-agent/build"}]},{"title":"Skills","sidebarTitle":"Skills","href":"/en/3.14.x/use/build/skills"},{"group":"Basic Apps","expanded":false,"pages":[{"title":"Agent","tag":"Legacy","href":"/en/3.14.x/use/build/agent"},{"title":"Chatbot","sidebarTitle":"Chatbot","href":"/en/3.14.x/use/build/chatbot"},{"title":"Text Generator","sidebarTitle":"Text Generator","href":"/en/3.14.x/use/build/text-generator"}]},{"title":"App Toolkit","href":"/en/3.14.x/use/build/additional-features"},{"title":"Go to Anything","href":"/en/3.14.x/use/build/goto-anything"}]},{"group":"Publish","icon":"paper-plane","expanded":false,"pages":[{"title":"Overview","href":"/en/3.14.x/use/publish/README"},{"group":"Web App","pages":[{"title":"Workflow Web Apps","href":"/en/3.14.x/use/publish/webapp/workflow-webapp"},{"title":"Chat Web Apps","href":"/en/3.14.x/use/publish/webapp/chatflow-webapp"},{"title":"Settings","href":"/en/3.14.x/use/publish/webapp/web-app-settings"},{"title":"Access Control","href":"/en/3.14.x/use/publish/webapp/web-app-access"},{"title":"Embed Your Web App","sidebarTitle":"Embeds","href":"/en/3.14.x/use/publish/webapp/embedding-in-websites"}]},{"title":"MCP Server","href":"/en/3.14.x/use/publish/publish-mcp"},{"title":"Publish Apps to Marketplace","sidebarTitle":"Marketplace","href":"/en/3.14.x/use/publish/publish-to-marketplace"}]},{"group":"Evaluate","icon":"clipboard-check","expanded":false,"pages":[{"title":"Run an Evaluation","sidebarTitle":"Overview","href":"/en/3.14.x/use/evaluate/run-evaluations"},{"title":"Evaluation Metrics","href":"/en/3.14.x/use/evaluate/metrics"},{"title":"Custom Evaluators","href":"/en/3.14.x/use/evaluate/custom-evaluators"}]},{"group":"Deploy","icon":"rocket","expanded":false,"pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/en/3.14.x/use/deploy/overview"},{"title":"Deploy Apps","href":"/en/3.14.x/use/deploy/deploy-apps"}]},{"group":"Monitor","icon":"chart-line","expanded":false,"pages":[{"title":"Dashboard","href":"/en/3.14.x/use/monitor/analysis"},{"title":"Logs","href":"/en/3.14.x/use/monitor/logs"},{"title":"Annotation System","description":"Build a curated library of high-quality responses to improve consistency and bypass AI generation","href":"/en/3.14.x/use/monitor/annotation-reply"},{"group":"Integrations","pages":[{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","href":"/en/3.14.x/use/monitor/integrations/integrate-langsmith"},{"title":"Integrate with Langfuse","sidebarTitle":"Langfuse","description":null,"href":"/en/3.14.x/use/monitor/integrations/integrate-langfuse"},{"title":"Integrate with Opik","sidebarTitle":"Opik","href":"/en/3.14.x/use/monitor/integrations/integrate-opik"},{"title":"Integrate with W\u0026B Weave","sidebarTitle":"W\u0026B Weave","href":"/en/3.14.x/use/monitor/integrations/integrate-weave"},{"title":"Integrate with Arize","sidebarTitle":"Arize","href":"/en/3.14.x/use/monitor/integrations/integrate-arize"},{"title":"Integrate with Phoenix","sidebarTitle":"Phoenix","href":"/en/3.14.x/use/monitor/integrations/integrate-phoenix"},{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","href":"/en/3.14.x/use/monitor/integrations/integrate-aliyun"},{"title":"Integrate with OpenTelemetry","sidebarTitle":"OpenTelemetry","href":"/en/3.14.x/use/monitor/integrations/integrate-opentelemetry"}]}]},{"group":"Knowledge","icon":"book","expanded":false,"pages":[{"title":"Knowledge","sidebarTitle":"Overview","href":"/en/3.14.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.14.x/use/knowledge/create-knowledge/introduction"},{"group":"Import Data","pages":[{"title":"Upload Local Files","href":"/en/3.14.x/use/knowledge/create-knowledge/import-text-data/readme"},{"title":"Sync Data from Notion","href":"/en/3.14.x/use/knowledge/create-knowledge/import-text-data/sync-from-notion"},{"title":"Import Data from Website","href":"/en/3.14.x/use/knowledge/create-knowledge/import-text-data/sync-from-website"}]},{"title":"Configure the Chunk Settings","href":"/en/3.14.x/use/knowledge/create-knowledge/chunking-and-cleaning-text"},{"title":"Specify the Index Method and Retrieval Settings","href":"/en/3.14.x/use/knowledge/create-knowledge/setting-indexing-methods"}]},{"group":"Custom Knowledge Base","pages":[{"title":"Build a Custom Knowledge Base","sidebarTitle":"Overview","href":"/en/3.14.x/use/knowledge/knowledge-pipeline/readme"},{"title":"Step 1: Create Knowledge Pipeline","href":"/en/3.14.x/use/knowledge/knowledge-pipeline/create-knowledge-pipeline"},{"title":"Step 2: Orchestrate Knowledge Pipeline","href":"/en/3.14.x/use/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration"},{"title":"Step 3: Publish Knowledge Pipeline","href":"/en/3.14.x/use/knowledge/knowledge-pipeline/publish-knowledge-pipeline"},{"title":"Step 4: Upload Files","href":"/en/3.14.x/use/knowledge/knowledge-pipeline/upload-files"},{"title":"Step 5: Manage and Use Knowledge Base","href":"/en/3.14.x/use/knowledge/knowledge-pipeline/manage-knowledge-base"},{"title":"Authorize Data Source","href":"/en/3.14.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.14.x/use/knowledge/connect-external-knowledge-base"},{"title":"External Knowledge API","href":"/en/3.14.x/use/knowledge/external-knowledge-api"}]}]},{"group":"Manage","pages":[{"title":"Manage Knowledge Content","sidebarTitle":"Documents \u0026 Chunks","href":"/en/3.14.x/use/knowledge/manage-knowledge/maintain-knowledge-documents"},{"title":"Manage Document Metadata","sidebarTitle":"Metadata","href":"/en/3.14.x/use/knowledge/metadata"},{"group":"File Security Scan","root":{"title":"Scan Uploaded Files for Malware","sidebarTitle":"File Security Scan","href":"/en/3.14.x/use/knowledge/file-security-scan"},"pages":[{"title":"Custom Endpoint Scanner API","sidebarTitle":"Custom Endpoint Scanner","href":"/en/3.14.x/use/knowledge/file-security-scan-custom-endpoint"}]},{"title":"Manage Knowledge Settings","sidebarTitle":"Settings","href":"/en/3.14.x/use/knowledge/manage-knowledge/introduction"}]},{"title":"Test Knowledge Retrieval","sidebarTitle":"Test Retrieval","href":"/en/3.14.x/use/knowledge/test-retrieval"},{"title":"Integrate Knowledge within Apps","sidebarTitle":"Integrate in Apps","href":"/en/3.14.x/use/knowledge/integrate-knowledge-within-application"}]},{"group":"Integrations","icon":"plug","expanded":false,"pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/en/3.14.x/use/workspace/plugins"},{"title":"Model Providers","href":"/en/3.14.x/use/workspace/model-providers"},{"group":"Dify Tools","root":{"title":"Dify Tools","sidebarTitle":"Tools","href":"/en/3.14.x/use/workspace/tools"},"pages":[{"title":"Forward User Identity to MCP Servers","href":"/en/3.14.x/use/workspace/mcp-token-forwarding"}]},{"group":"Custom Endpoint","pages":[{"title":"Custom Endpoints","sidebarTitle":"Overview","href":"/en/3.14.x/use/workspace/api-extension/api-extension"},{"title":"External Data Tool","href":"/en/3.14.x/use/workspace/api-extension/external-data-tool-api-extension"},{"title":"Sensitive Content Moderation","href":"/en/3.14.x/use/workspace/api-extension/moderation-api-extension"},{"title":"Deploy Custom Endpoints Using Cloudflare Workers","href":"/en/3.14.x/use/workspace/api-extension/cloudflare-worker"}]}]},{"group":"Workspace","icon":"briefcase","expanded":false,"pages":[{"title":"Overview","href":"/en/3.14.x/use/workspace/readme"},{"title":"Export and Import Apps","sidebarTitle":"Export and Import","href":"/en/3.14.x/use/workspace/export-import-apps"},{"title":"Manage Members","href":"/en/3.14.x/use/workspace/team-members-management"},{"group":"Permissions","root":{"title":"Roles and Permissions","href":"/en/3.14.x/use/workspace/roles-and-permissions"},"expanded":false,"pages":[{"title":"Permission Reference","href":"/en/3.14.x/use/workspace/permission-reference"}]},{"title":"Personal Settings","href":"/en/3.14.x/use/workspace/personal-account-management"}]}]},{"tab":"Developer Resources","menu":[{"item":"Workspace API","pages":[{"title":"Workspace API","href":"/en/3.14.x/develop/api/guides/get-started"}]},{"item":"CLI","pages":[{"title":"CLI","href":"/en/3.14.x/develop/cli/overview"}]},{"item":"Plugins","pages":[{"title":"Plugins","href":"/en/3.14.x/develop/plugins/getting-started/getting-started-dify-plugin"}]}],"pages":[{"title":"Developer Resources","href":"/en/3.14.x/develop/api/guides/get-started"}]}]},{"version":"3.13.x","tag":"LTS","pages":[{"title":"3.13.x","href":"/en/3.13.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.12.x","pages":[{"title":"3.12.x","href":"/en/3.12.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.11.x","pages":[{"title":"3.11.x","href":"/en/3.11.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.10.x","pages":[{"title":"3.10.x","href":"/en/3.10.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.9.x","tag":"LTS","pages":[{"title":"3.9.x","href":"/en/3.9.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.8.x","pages":[{"title":"3.8.x","href":"/en/3.8.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.7.x","pages":[{"title":"3.7.x","href":"/en/3.7.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.6.x","pages":[{"title":"3.6.x","href":"/en/3.6.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.5.x","pages":[{"title":"3.5.x","href":"/en/3.5.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.4.x","pages":[{"title":"3.4.x","href":"/en/3.4.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.3.x","pages":[{"title":"3.3.x","href":"/en/3.3.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.2.x","pages":[{"title":"3.2.x","href":"/en/3.2.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.1.x","pages":[{"title":"3.1.x","href":"/en/3.1.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"3.0.x","pages":[{"title":"3.0.x","href":"/en/3.0.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"2.8.x","pages":[{"title":"2.8.x","href":"/en/2.8.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"2.7.x","pages":[{"title":"2.7.x","href":"/en/2.7.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"2.6.x","pages":[{"title":"2.6.x","href":"/en/2.6.x/use/monitor/integrations/integrate-langsmith"}]},{"version":"2.5.x","pages":[{"title":"2.5.x","href":"/en/2.5.x/use/monitor/integrations/integrate-langsmith"}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/3.14.x/use/monitor/integrations/integrate-langsmith"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/3.14.x/use/monitor/integrations/integrate-langsmith"}]}]},"basePath":"","title":"Integrate with LangSmith - Dify Enterprise Docs","deploymentId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","buildId":"dpl_EtLmMeZHkKGqAjV1DiX4ZXCriDj3","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-CCOo5IeD.js","DynamicMarkdown-Czhs88Hc.js","zoom-image-lightbox-BA_UUN68.js","lightbox-handle-r17bVUz3.js"]}