Prerequisites
- A LangSmith account and API key
- An n8n instance (Cloud or self-hosted)
Set up tracing
1
Add LangSmith credentials in n8n
- In your n8n instance, go to Settings > Credentials.
- Select Add Credential and search for LangSmith.
- Enter your LangSmith API key.
- Select Save.
2
Connect LangSmith to your AI workflow
- Open an AI workflow that uses LangChain nodes (for example, an AI Agent or Basic LLM Chain node).
- In the root LangChain node, find the Connect LangSmith option.
- Select your LangSmith credential.
View traces in LangSmith
After running your workflow:- Open the LangSmith UI.
- Select your project.
- Locate the trace corresponding to your workflow execution.
- LLM inputs and outputs
- Agent execution steps
- Tool calls and results
- Timing and error information
Additional resources
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

