https://api.example.com/incident-webhook
Authorization
: For authentication tokensContent-Type
: Usually set to application/json
(default)X-Source
: To identify the source as LangSmith{}
project_name
: Name of the triggered alertalert_rule_id
: A UUID to identify the LangSmith alert. This can be used as a de-duplication key in the webhook service.alert_rule_name
: The name of the alert rule.alert_rule_type
: The type of alert (as of 04/01/2025 all alerts are of type threshold
).alert_rule_attribute
: The attribute associated with the alert rule - error_count
, feedback_score
or latency
.triggered_metric_value
: The value of the metric at the time the threshold was triggered.triggered_threshold
: The threshold that triggered the alert.timestamp
: The timestamp that triggered the alert.chat.postMessage
API.
chat:write
(Send messages as the app)chat:write.public
(Send messages to channels the app isn’t in)channels:read
(View basic channel information)xoxb-
)
Note: Replace xoxb-your-token-here
with your actual Bot User OAuth Token
Request Body Template
channel_id
, alert_name
, project_name
and project_url
when creating the alert. You can find your project_url
in the browser’s URL bar. Copy the portion up to but not including any query parameters.