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 configure, paste the API Key and project name created in LangSmith into the configuration and save.
The configured project name needs to match the project set in LangSmith. If the project names do not match, LangSmith will automatically create a new project during data synchronization.
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.
Monitoring Data List
Workflow/Chatflow Trace Information
Used to track workflows and chatflows
Workflow
LangSmith Chain
workflow_app_log_id/workflow_run_id
id
user_session_id
- placed in metadata
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
Model token consumption
usage_metadata
metadata
extra
error
error
[workflow]
tags
”conversation_id/none for workflow”
conversation_id in metadata
conversion_id
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 LLM
message_id
id
user_session_id
- placed in metadata
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
Model token consumption
usage_metadata
metadata
extra
error
error
[“message”, conversation_mode]
tags
conversation_id
conversation_id in metadata
conversion_id
parent_run_id
Message Trace Info
message_id - Message ID
message_data - Message data
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
message_file_data - File data associated with the message
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
- placed in metadata
“moderation”
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
metadata
extra
[moderation]
tags
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 LLM
user_id
- placed in metadata
suggested_question
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
metadata
extra
[suggested_question]
tags
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
- placed in metadata
dataset_retrieval
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
metadata
extra
[dataset_retrieval]
tags
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
- placed in metadata
tool_name
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
metadata
extra
[“tool”, tool_name]
tags
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
- placed in metadata
generate_name
name
start_time
start_time
end_time
end_time
inputs
inputs
outputs
outputs
metadata
extra
[generate_name]
tags
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.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":""},"entitlements":{},"buildId":"6af427f9ab305b91f7cbee03","clientVersion":"0.0.4143","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":"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":"workos-onboarding","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":"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":"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},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","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":"llms-txt-v2","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.13.x/use/monitor/integrations/integrate-langsmith","slug":"/en/3.13.x/use/monitor/integrations/integrate-langsmith","pageMetadata":{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","description":null,"href":"/en/3.13.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`,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(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 configure, paste the `,_jsx(_components.strong,{children:`API Key`}),` and `,_jsx(_components.strong,{children:`project name`}),` created in LangSmith into the configuration and save.`]}),`\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 names do not match, LangSmith will automatically create a new project during data synchronization.`})}),`\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`,_jsx(Heading,{level:`3`,id:`monitoring-data-list`,children:`Monitoring Data List`}),`\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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Workflow`}),_jsx(`th`,{children:`LangSmith Chain`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_app_log_id/workflow_run_id`}),_jsx(`td`,{children:`id`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_session_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`workflow_{id}`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`Model token consumption`}),_jsx(`td`,{children:`usage_metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`error`}),_jsx(`td`,{children:`error`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[workflow]`}),_jsx(`td`,{children:`tags`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`”conversation_id/none for workflow”`}),_jsx(`td`,{children:`conversation_id in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`conversion_id`}),_jsx(`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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Chat`}),_jsx(`th`,{children:`LangSmith LLM`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`td`,{children:`id`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_session_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`\"message_{id}\"`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`Model token consumption`}),_jsx(`td`,{children:`usage_metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`error`}),_jsx(`td`,{children:`error`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[“message”, conversation_mode]`}),_jsx(`td`,{children:`tags`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`conversation_id`}),_jsx(`td`,{children:`conversation_id in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`conversion_id`}),_jsx(`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:`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:`message_file_data - File data associated with the message`}),`\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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Moderation`}),_jsx(`th`,{children:`LangSmith Tool`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`“moderation”`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[moderation]`}),_jsx(`td`,{children:`tags`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Suggested Question`}),_jsx(`th`,{children:`LangSmith LLM`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`suggested_question`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[suggested_question]`}),_jsx(`td`,{children:`tags`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Dataset Retrieval`}),_jsx(`th`,{children:`LangSmith Retriever`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`dataset_retrieval`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[dataset_retrieval]`}),_jsx(`td`,{children:`tags`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Tool`}),_jsx(`th`,{children:`LangSmith Tool`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`tool_name`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[“tool”, tool_name]`}),_jsx(`td`,{children:`tags`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`message_id`}),_jsx(`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(`table`,{children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Generate Name`}),_jsx(`th`,{children:`LangSmith Tool`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`user_id`}),_jsx(`td`,{children:`- placed in metadata`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`generate_name`}),_jsx(`td`,{children:`name`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`start_time`}),_jsx(`td`,{children:`start_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`end_time`}),_jsx(`td`,{children:`end_time`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`inputs`}),_jsx(`td`,{children:`inputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`outputs`}),_jsx(`td`,{children:`outputs`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`metadata`}),_jsx(`td`,{children:`extra`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`[generate_name]`}),_jsx(`td`,{children:`tags`})]})]})]}),`\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.13.x/use/monitor/integrations/integrate-langsmith"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[7827,7928,"(`tr`,{children:_jsx(`td`,{children:`name`})}),_jsxs(`tr`,{c"],[12022,12124,"(`tr`,{children:_jsx(`td`,{children:`name`})}),_jsxs(`tr`,{c"]]},"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","navMaps":{"firstHrefInVersion":{"3.13.x":{"href":"/en/3.13.x/use/monitor/integrations/integrate-langsmith","matchLevel":0},"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.13.x/use/monitor/integrations/integrate-langsmith","matchLevel":0},"zh":{"href":"/zh/3.13.x/use/monitor/integrations/integrate-langsmith","matchLevel":1},"ja":{"href":"/ja/3.13.x/use/monitor/integrations/integrate-langsmith","matchLevel":1}}},"lastModified":"2026-11-10T08:17:10.378Z","originalFileLocation":"en/3.13.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.13.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.13.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.13.x/use/monitor/integrations/integrate-langsmith.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://enterprise-docs.dify.ai/zh/3.13.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://enterprise-docs.dify.ai/ja/3.13.x/use/monitor/integrations/integrate-langsmith\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://enterprise-docs.dify.ai/en/3.13.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.13.x/use/monitor/integrations/integrate-langsmith#webpage\",\"url\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith\",\"name\":\"Integrate with LangSmith\",\"dateModified\":\"2026-11-10T08:17:10.378Z\",\"isPartOf\":{\"@id\":\"https://enterprise-docs.dify.ai#website\"},\"breadcrumb\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Monitor\",\"item\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/analysis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrate with LangSmith\",\"item\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith#article\",\"headline\":\"Integrate with LangSmith\",\"name\":\"Integrate with LangSmith\",\"url\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith\",\"mainEntityOfPage\":{\"@id\":\"https://enterprise-docs.dify.ai/en/3.13.x/use/monitor/integrations/integrate-langsmith#webpage\"},\"dateModified\":\"2026-11-10T08:17:10.378Z\",\"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.13.x/use/monitor/integrations/integrate-langsmith.md","siteName":"Dify Enterprise Docs","nav":{"global":null,"languages":[{"language":"en","default":true,"versions":[{"version":"3.13.x","tag":"LTS","tabs":[{"tab":"Deploy","pages":[{"title":"Deploy","href":"/en/3.13.x/deploy/checklist"}]},{"tab":"Administer","pages":[{"title":"Administer","href":"/en/3.13.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.13.x/use/build/workflow-chatflow"},{"title":"Orchestration Logic","href":"/en/3.13.x/use/build/orchestrate-node"},{"group":"Nodes","expanded":false,"pages":[{"group":"Start","root":{"title":"Start Node","href":"/en/3.13.x/use/nodes/start"},"pages":[{"title":"User Input","href":"/en/3.13.x/use/nodes/user-input"},{"group":"Trigger","root":{"title":"Trigger","sidebarTitle":"Overview","href":"/en/3.13.x/use/nodes/trigger/overview"},"pages":[{"title":"Schedule Trigger","href":"/en/3.13.x/use/nodes/trigger/schedule-trigger"},{"title":"Integration Trigger","href":"/en/3.13.x/use/nodes/trigger/plugin-trigger"},{"title":"Webhook Trigger","href":"/en/3.13.x/use/nodes/trigger/webhook-trigger"}]}]},{"title":"LLM","href":"/en/3.13.x/use/nodes/llm"},{"title":"Knowledge Retrieval","href":"/en/3.13.x/use/nodes/knowledge-retrieval"},{"title":"Answer","href":"/en/3.13.x/use/nodes/answer"},{"title":"Output","href":"/en/3.13.x/use/nodes/output"},{"title":"Agent","href":"/en/3.13.x/use/nodes/agent"},{"title":"Question Classifier","href":"/en/3.13.x/use/nodes/question-classifier"},{"title":"If-Else","href":"/en/3.13.x/use/nodes/ifelse"},{"group":"Human Input","root":{"title":"Human Input","href":"/en/3.13.x/use/nodes/human-input"},"expanded":false,"pages":[]},{"title":"Iteration","href":"/en/3.13.x/use/nodes/iteration"},{"title":"Loop","href":"/en/3.13.x/use/nodes/loop"},{"title":"Code","href":"/en/3.13.x/use/nodes/code"},{"title":"Template","href":"/en/3.13.x/use/nodes/template"},{"title":"Variable Aggregator","href":"/en/3.13.x/use/nodes/variable-aggregator"},{"title":"Document Extractor","href":"/en/3.13.x/use/nodes/doc-extractor"},{"title":"Variable Assigner","href":"/en/3.13.x/use/nodes/variable-assigner"},{"title":"Parameter Extractor","href":"/en/3.13.x/use/nodes/parameter-extractor"},{"title":"HTTP Request","href":"/en/3.13.x/use/nodes/http-request"},{"title":"List Operator","href":"/en/3.13.x/use/nodes/list-operator"},{"title":"Tool Node","sidebarTitle":"Tool","href":"/en/3.13.x/use/nodes/tools"}]},{"title":"Hotkeys","href":"/en/3.13.x/use/build/shortcut-key"},{"title":"Version Control","href":"/en/3.13.x/use/build/version-control"},{"title":"Snippets","sidebarTitle":"Snippets","href":"/en/3.13.x/use/build/snippet"},{"title":"Collaborate with Teammates","sidebarTitle":"Collaboration","href":"/en/3.13.x/use/build/workflow-collaboration"},{"group":"Debug","expanded":false,"pages":[{"title":"Handle Errors","href":"/en/3.13.x/use/build/predefined-error-handling-logic"},{"title":"Single Node","href":"/en/3.13.x/use/debug/step-run"},{"title":"Variable Inspector","href":"/en/3.13.x/use/debug/variable-inspect"},{"title":"Run History","href":"/en/3.13.x/use/debug/history-and-logs"},{"title":"Error Types","href":"/en/3.13.x/use/debug/error-type"}]}]},{"group":"Agent","tag":"New","expanded":false,"pages":[{"title":"Agent","sidebarTitle":"Overview","href":"/en/3.13.x/use/build/new-agent/overview"},{"title":"Build an Agent","sidebarTitle":"Build","href":"/en/3.13.x/use/build/new-agent/build"}]},{"title":"Skills","sidebarTitle":"Skills","href":"/en/3.13.x/use/build/skills"},{"group":"Basic Apps","expanded":false,"pages":[{"title":"Agent","tag":"Legacy","href":"/en/3.13.x/use/build/agent"},{"title":"Chatbot","sidebarTitle":"Chatbot","href":"/en/3.13.x/use/build/chatbot"},{"title":"Text Generator","sidebarTitle":"Text Generator","href":"/en/3.13.x/use/build/text-generator"}]},{"title":"App Toolkit","href":"/en/3.13.x/use/build/additional-features"},{"title":"Go to Anything","href":"/en/3.13.x/use/build/goto-anything"}]},{"group":"Publish","icon":"paper-plane","expanded":false,"pages":[{"title":"Overview","href":"/en/3.13.x/use/publish/README"},{"group":"Web App","pages":[{"title":"Workflow Web Apps","href":"/en/3.13.x/use/publish/webapp/workflow-webapp"},{"title":"Chat Web Apps","href":"/en/3.13.x/use/publish/webapp/chatflow-webapp"},{"title":"Settings","href":"/en/3.13.x/use/publish/webapp/web-app-settings"},{"title":"Access Control","href":"/en/3.13.x/use/publish/webapp/web-app-access"},{"title":"Embed Your Web App","sidebarTitle":"Embeds","href":"/en/3.13.x/use/publish/webapp/embedding-in-websites"}]},{"title":"MCP Server","href":"/en/3.13.x/use/publish/publish-mcp"},{"title":"Publish Apps to Marketplace","sidebarTitle":"Marketplace","href":"/en/3.13.x/use/publish/publish-to-marketplace"}]},{"group":"Deploy","icon":"rocket","expanded":false,"pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/en/3.13.x/use/deploy/overview"},{"title":"Deploy Apps","href":"/en/3.13.x/use/deploy/deploy-apps"}]},{"group":"Monitor","icon":"chart-line","expanded":false,"pages":[{"title":"Dashboard","href":"/en/3.13.x/use/monitor/analysis"},{"title":"Logs","href":"/en/3.13.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.13.x/use/monitor/annotation-reply"},{"group":"Integrations","pages":[{"title":"Integrate with LangSmith","sidebarTitle":"LangSmith","href":"/en/3.13.x/use/monitor/integrations/integrate-langsmith"},{"title":"Integrate with Langfuse","sidebarTitle":"Langfuse","description":null,"href":"/en/3.13.x/use/monitor/integrations/integrate-langfuse"},{"title":"Integrate with Opik","sidebarTitle":"Opik","href":"/en/3.13.x/use/monitor/integrations/integrate-opik"},{"title":"Integrate with W\u0026B Weave","sidebarTitle":"W\u0026B Weave","href":"/en/3.13.x/use/monitor/integrations/integrate-weave"},{"title":"Integrate with Arize","sidebarTitle":"Arize","href":"/en/3.13.x/use/monitor/integrations/integrate-arize"},{"title":"Integrate with Phoenix","sidebarTitle":"Phoenix","href":"/en/3.13.x/use/monitor/integrations/integrate-phoenix"},{"title":"Integrate with Alibaba Cloud Monitor","sidebarTitle":"Alibaba Cloud Monitor","href":"/en/3.13.x/use/monitor/integrations/integrate-aliyun"}]}]},{"group":"Knowledge","icon":"book","expanded":false,"pages":[{"title":"Knowledge","sidebarTitle":"Overview","href":"/en/3.13.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.13.x/use/knowledge/create-knowledge/introduction"},{"group":"Import Data","pages":[{"title":"Upload Local Files","href":"/en/3.13.x/use/knowledge/create-knowledge/import-text-data/readme"},{"title":"Sync Data from Notion","href":"/en/3.13.x/use/knowledge/create-knowledge/import-text-data/sync-from-notion"},{"title":"Import Data from Website","href":"/en/3.13.x/use/knowledge/create-knowledge/import-text-data/sync-from-website"}]},{"title":"Configure the Chunk Settings","href":"/en/3.13.x/use/knowledge/create-knowledge/chunking-and-cleaning-text"},{"title":"Specify the Index Method and Retrieval Settings","href":"/en/3.13.x/use/knowledge/create-knowledge/setting-indexing-methods"}]},{"group":"Custom Knowledge Base","pages":[{"title":"Build a Custom Knowledge Base","sidebarTitle":"Overview","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/readme"},{"title":"Step 1: Create Knowledge Pipeline","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/create-knowledge-pipeline"},{"title":"Step 2: Orchestrate Knowledge Pipeline","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/knowledge-pipeline-orchestration"},{"title":"Step 3: Publish Knowledge Pipeline","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/publish-knowledge-pipeline"},{"title":"Step 4: Upload Files","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/upload-files"},{"title":"Step 5: Manage and Use Knowledge Base","href":"/en/3.13.x/use/knowledge/knowledge-pipeline/manage-knowledge-base"},{"title":"Authorize Data Source","href":"/en/3.13.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.13.x/use/knowledge/connect-external-knowledge-base"},{"title":"External Knowledge API","href":"/en/3.13.x/use/knowledge/external-knowledge-api"}]}]},{"group":"Manage","pages":[{"title":"Manage Knowledge Content","sidebarTitle":"Documents \u0026 Chunks","href":"/en/3.13.x/use/knowledge/manage-knowledge/maintain-knowledge-documents"},{"title":"Manage Document Metadata","sidebarTitle":"Metadata","href":"/en/3.13.x/use/knowledge/metadata"},{"title":"Manage Knowledge Settings","sidebarTitle":"Settings","href":"/en/3.13.x/use/knowledge/manage-knowledge/introduction"}]},{"title":"Test Knowledge Retrieval","sidebarTitle":"Test Retrieval","href":"/en/3.13.x/use/knowledge/test-retrieval"},{"title":"Integrate Knowledge within Apps","sidebarTitle":"Integrate in Apps","href":"/en/3.13.x/use/knowledge/integrate-knowledge-within-application"}]},{"group":"Integrations","icon":"plug","expanded":false,"pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/en/3.13.x/use/workspace/plugins"},{"title":"Model Providers","href":"/en/3.13.x/use/workspace/model-providers"},{"group":"Dify Tools","root":{"title":"Dify Tools","sidebarTitle":"Tools","href":"/en/3.13.x/use/workspace/tools"},"pages":[{"title":"Forward User Identity to MCP Servers","href":"/en/3.13.x/use/workspace/mcp-token-forwarding"}]},{"group":"Custom Endpoint","pages":[{"title":"Custom Endpoints","sidebarTitle":"Overview","href":"/en/3.13.x/use/workspace/api-extension/api-extension"},{"title":"External Data Tool","href":"/en/3.13.x/use/workspace/api-extension/external-data-tool-api-extension"},{"title":"Sensitive Content Moderation","href":"/en/3.13.x/use/workspace/api-extension/moderation-api-extension"},{"title":"Deploy Custom Endpoints Using Cloudflare Workers","href":"/en/3.13.x/use/workspace/api-extension/cloudflare-worker"}]}]},{"group":"Workspace","icon":"briefcase","expanded":false,"pages":[{"title":"Overview","href":"/en/3.13.x/use/workspace/readme"},{"title":"Manage Apps","href":"/en/3.13.x/use/workspace/app-management"},{"title":"Manage Members","href":"/en/3.13.x/use/workspace/team-members-management"},{"group":"Permissions","root":{"title":"Roles and Permissions","href":"/en/3.13.x/use/workspace/roles-and-permissions"},"expanded":false,"pages":[{"title":"Permission Reference","href":"/en/3.13.x/use/workspace/permission-reference"}]},{"title":"Personal Settings","href":"/en/3.13.x/use/workspace/personal-account-management"}]}]},{"tab":"Developer Resources","menu":[{"item":"Workspace API","pages":[{"title":"Workspace API","href":"/en/3.13.x/develop/api/guides/get-started"}]},{"item":"CLI","pages":[{"title":"CLI","href":"/en/3.13.x/develop/cli/introduction"}]},{"item":"Plugins","pages":[{"title":"Plugins","href":"/en/3.13.x/develop/plugins/getting-started/getting-started-dify-plugin"}]}],"pages":[{"title":"Developer Resources","href":"/en/3.13.x/develop/api/guides/get-started"}]}]},{"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.13.x/use/monitor/integrations/integrate-langsmith"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/3.13.x/use/monitor/integrations/integrate-langsmith"}]}]},"basePath":"","title":"Integrate with LangSmith - Dify Enterprise Docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-D2acuaLg.js","DynamicMarkdown-Co5nikxh.js","zoom-image-lightbox-BbK2OBGL.js","lightbox-handle-r17bVUz3.js"]}