Skip to content
LangChain logo

Connectors / AI · HTTP Connector

LangChain integration and API

Create a run, create a project and create a dataset in LangChain. Connect LangChain to the rest of your AI stack with Tray.ai.

What can you do with LangChain on Tray.ai?

LangChain makes LangSmith, a platform for tracing, evaluating and managing prompts for LLM applications and agents, with datasets, feedback and annotation queues. Tray.ai connects to LangChain through the HTTP Connector, so your workflows can call the LangChain API alongside the rest of your stack.

  • Create feedback on an AI reply when a support agent rates it in your help desk.
  • Query runs each morning and post failed agent traces to your engineering team chat.
  • Create an example in a dataset from each AI answer your support team corrects.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://api.smith.langchain.com

Set it up

Connect LangChain to Tray.ai

Each step uses LangChain's own API details, from its documentation.

Save LangChain's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.smith.langchain.com as the base URL. Or paste a cURL example from LangChain's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Query runs”

It's one of 23 documented actions, under Runs. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a run” and “Update a run” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with LangChain

Connect LangChain with Zendesk, Google Sheets and Jira

Each one uses actions and events from LangChain's own API documentation.

Log support agent ratings in Zendesk as LangSmith feedback

When

A satisfaction rating is received in Zendesk

Then

  1. Query runs for the matching conversation
  2. Create feedback with the customer's rating

With Zendesk

Build a LangSmith dataset from reviewed answers in Google Sheets

When

A row is added in Google Sheets

Then

  1. Create an example with the question and approved answer
  2. Update the row as added in Google Sheets

With Google Sheets

Open Jira issues for failed LLM runs each day

When

On a schedule

Then

  1. Query runs that ended in an error
  2. Create an issue in Jira for each new failure

With Jira

Apps you can build on LangChain data

Internal tools your team can build with an AI assistant, each one using LangChain calls from its API documentation.

Trace review queue

Queries recent runs in a project and lets a reviewer add feedback scores to each one.

Test dataset builder

Shows runs with low feedback scores and lets an engineer save them as examples in a dataset.

Prompt library

Lists the team's prompts and lets an engineer commit a new version of a prompt.

Give your AI agents LangChain tools

Build an MCP server on LangChain in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a run
  • Create a project
  • Create a dataset
  • Create an example
  • Create feedback
  • Create a prompt
  • Query runs
  • Update a run

What the LangChain API covers

6 resources and 23 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Runs

  • Create a run
  • Query runs
  • Update a run
  • Delete runs

Projects

  • Create a project
  • Get a project
  • Update a project
  • Delete a project

Datasets

  • Create a dataset
  • Update a dataset
  • Delete a dataset
  • Upload a CSV dataset

Examples

  • Create an example
  • Update examples
  • Delete an example

Feedback

  • Create feedback
  • Read feedback
  • Update feedback
  • Delete feedback

Prompts

  • Create a prompt
  • List prompts
  • Create a commit
  • Delete a prompt

Checked against LangChain's own documentation on 2026-10-22

docs.langchain.com/_llms/agent-development-lifecycle/moni…

Frequently asked questions

What can a Tray.ai workflow do in LangChain?

The LangChain API documents 23 actions across 6 resources (Runs, Projects, Datasets, Examples, Feedback, Prompts). For example: Create a run; Create a project; Create a dataset. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with LangChain?

The LangChain API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See LangChain working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.