Skip to main content
LangSmith Engine can notify you when it opens a new issue, links a new trace to an existing issue, or fails to complete a run. Deliver these notifications to a Slack channel, an HTTP webhook endpoint, or both. Each destination has its own event types and minimum priority, so you can route urgent issues to a paging webhook while sending every issue to a Slack channel.

Add a destination

Notification destinations are configured per tracing project. On the Engine page, click Configure Engine, then under Notifications click + Add destination. For each destination, choose: To be alerted when a watched issue recurs, click Alert me via Slack on the issue, which opens the same Notifications section.

Event types

This is the complete set of event types Engine sends today. New types may be added in the future. A destination created without an explicit list of event types receives only issue.created.

Severity filtering

The Minimum priority setting is stored as a severity_threshold from 0 to 3. For issue events, a notification is delivered only when the issue’s severity is less than or equal to the threshold. Lower numbers are more urgent. For example, a destination with severity_threshold: 1 receives events for URGENT (0) and HIGH (1) issues only. Severity thresholds do not apply to issue.agent_run.failed, because run-failure events are scoped to an Engine session rather than to a specific issue.

Notify a Slack channel

1

Connect a Slack workspace

Connecting a Slack workspace is an organization-level action you perform once, not per project. Connecting or disconnecting a workspace requires the organization:manage permission. In the LangSmith console, open Settings, go to your organization’s General settings, and under Slack click Connect Slack. Authorize the LangSmith app in Slack. You can connect more than one Slack workspace to an organization.
2

Add a Slack destination

On the Engine page, click Configure Engine, then click Add destination. Set the Deliver to field to Slack, then choose the workspace and channel under Channel.
3

Choose events and priority

Under Notify when, select which event types post a message to the channel. Under Minimum priority, choose the lowest severity that triggers a notification. Click Add destination to save.
LangSmith automatically joins the public channel you select. To post to a private channel, invite the LangSmith app to that channel in Slack first. Each Slack message includes the issue title, description, and severity, a View issue link back to LangSmith, and (for issue events) a chart of the issue’s recurrence over time. If a workspace’s connection becomes invalid, for example, the app is removed from Slack, its destinations stop delivering until you reconnect it from your organization’s General settings. Slack destinations post through LangSmith’s managed Slack app instead of sending the webhook payload, so signing secrets and custom headers do not apply.

Send to a webhook

Forward Engine events to your own incident-management, paging, or chat tooling. Add a destination and set the Deliver to field to Webhook. Enter a URL and, optionally, custom headers. Each delivery is signed so you can verify its authenticity.

Delivery

LangSmith sends a POST request with a JSON body to your webhook URL. The request uses Content-Type: application/json and includes any custom headers you attached to the destination.
Retries deliver a byte-identical payload, including the same id. Dedupe on id so a retried delivery does not produce a duplicate downstream effect.

Custom headers

You can attach arbitrary headers to each destination (for example, Authorization: Bearer …) to authenticate the caller at your endpoint. Content-Type is always set by LangSmith and cannot be overridden.

Signing secret

Each destination has a signing secret. LangSmith uses this secret to sign the raw webhook request body and sends the result in the X-LangSmith-Signature header. The header value has this format:
Verify the signature before parsing or acting on the payload. The HMAC input is the exact raw request body bytes, and the HMAC key is the destination’s signing secret. Do not parse and reserialize the JSON body before verification.

Roll a signing secret

Roll a signing secret when it may have been exposed, or when your organization’s credential rotation policy requires a new secret. To roll a secret, open the destination row in Engine Settings, click Roll signing secret, and confirm. LangSmith generates a new signing secret and uses it for future webhook deliveries immediately. The previous secret stops signing deliveries as soon as the roll completes. After rolling the secret, update every consumer that verifies X-LangSmith-Signature with the new value.

Test your endpoint

Before pointing a real destination at your endpoint, send a sample payload to verify it accepts and acknowledges within the 20-second timeout:
Use the example body from issue.created as sample-issue-created.json. Verify that:
  • The custom Authorization header arrives and matches the secret you configured on the destination.
  • The handler persists the event keyed by its id so retries are deduped.
  • The handler returns 2xx before kicking off slow downstream work.

Security

  • Webhook URLs are validated when the destination is created and again at delivery time. Private and metadata IP ranges are blocked in SaaS. Both http:// and https:// are accepted; use https:// so the payload and any custom headers are not sent in cleartext.
  • LangSmith signs webhook bodies with the destination’s signing secret. Verify X-LangSmith-Signature before processing the payload.
  • You can also set custom headers on the destination, such as Authorization: Bearer …, for routing or additional authentication at your endpoint.
  • Dedupe on the event id so that a retried delivery does not cause a duplicate notification.

Best practices

  • Acknowledge fast. Respond with 2xx as soon as you have persisted the event. Move slow work (fan-out, paging, downstream API calls) onto a queue so your handler stays within the 20-second timeout.
  • Tolerate unknown event types. Ignore type values your handler does not recognize. New event types may be added without notice.
  • Tolerate new fields. Parse payloads with a permissive schema. New fields may be added to existing event types without notice.

Webhook payload reference

Webhook destinations receive the JSON payloads below. Slack destinations do not.

Event envelope

Every event delivered to your endpoint uses the same outer JSON shape.

Issue data.object

For issue.created and issue.trace.added, data.object is a snapshot of the issue. Treat it as the authoritative state of the issue at the time the event was generated.

Run failure data.object

For issue.agent_run.failed, data.object describes the Engine run that failed.

data.trace

data.trace is included only on issue.trace.added events.

Batch coalescing

A single upstream action can produce multiple webhook events. When Engine opens a new issue and attaches five traces to it, you receive one issue.created event and five issue.trace.added events, all sharing the same request_id. Use request_id to group these into a single downstream notification.

issue.created

Sent when LangSmith Engine creates a new issue. data.trace is omitted.

issue.trace.added

Sent when a new trace is linked to an existing issue. data.trace describes the linked trace.

issue.agent_run.failed

Sent when LangSmith Engine fails to complete a run. This event is session-scoped, so it does not include data.trace and does not use severity filtering.