LaneshotDocs

Search the docs

Find a page or a section

Open Laneshot

Integrations

Automations

Build flows that react to captures, cards, comments, and issues. Send signed webhooks to Slack, Discord, or Teams, call MCP tools, file issues in any tracker, and change cards, without writing code.

An automation is a trigger, optional conditions, and a list of actions that run in order. Use them to route bugs to the right people, mirror Laneshot into other tools, or hand captures to an AI agent.

Automations belong to a project. Open the board and select Automations. Project admins create and edit them; anyone who can edit cards can run manual automations.

On a hosted server, automations come with the Pro and Business plans. On the Free plan, the page offers an upgrade, and automations created before stay saved but don't run, including their webhook addresses, until the organization upgrades. Self-hosted servers without billing have them all. See Billing.

The automations page of Acme Storefront
The automations page: each flow with its trigger, actions, and latest run. Templates are listed below.

Create an automation

  1. On the Automations page, select New automation, or pick one of the templates under Start from a template.
  2. Name the automation.
  3. Choose a trigger.
  4. Add conditions if the flow should only run for some events.
  5. Add one or more actions. Reorder them with the arrows; they run top to bottom.
  6. Select Create automation.

The editor checks the flow as you build it. Incomplete actions are marked Needs attention, and the flow can't be saved until they're fixed. Fields that accept text show Insert a variable, which lists the variables available for the chosen trigger.

The automation editor, with a trigger, a condition, and two actions
The editor: trigger and conditions on the left, actions in order, and variables available for the chosen trigger.

Triggers

Trigger Fires when
A trace is captured A capture finishes uploading to the project, from the extension or a recording link.
A card is created Someone creates a card.
A card moves to another column A card changes column. card.previousColumn holds where it was.
A card is assigned A card gets an assignee.
A card is marked complete Someone marks a card complete, from the board, the card, or MCP.
Someone comments on a card A comment is posted on a card.
Someone comments on a trace A comment is posted on a trace.
An issue is created A card is filed in GitHub or an issue tracker.
A linked issue is closed An issue linked to a card closes, reported by a GitHub webhook, a refresh, or tracker sync.
An incoming webhook is called Another tool posts to the automation's secret address.
Someone runs it by hand Someone runs it from a card's menu, the automations page, or MCP.

Automations run in the background, so a slow webhook never delays the person who triggered it.

Conditions

Each condition compares a field of the event with a value. All conditions must match for the actions to run; otherwise the run is recorded as skipped.

Operator Meaning
is Equal to the value.
is not Different from the value.
contains Contains the value.
is greater than Numerically greater.
is less than Numerically smaller.
is set Has any non-empty value. The value is ignored.

Text comparisons ignore case. Fields are dotted paths into the event. The editor suggests common ones, and Another field… accepts any path:

Field Example
card.column In progress
card.previousColumn To do (on A card moves to another column)
card.priority urgent
card.type bug
card.title checkout
card.assignee.email leo@acme.com
trace.source extension or link
trace.kind video, screenshot, or replay
trace.summary.consoleErrors 0
trace.summary.failedRequests 0
trace.environment.url shop.acme.com
trace.environment.browser.name Safari
actor.email maya@acme.com
comment.body @Léo
issue.repository acme/storefront
webhook.body.severity critical (any path inside an incoming webhook's JSON)

Actions

Action What it does
Send a webhook Posts to an address, as Laneshot JSON or as a Slack, Discord, or Teams message.
Call an MCP tool Calls a tool on any MCP server over Streamable HTTP.
Create an issue Files the card in a linked GitHub repository or any destination of a connected issue tracker.
Create a card Creates a card in a column of your choice. Later actions act on the new card.
Move the card Moves the card to the bottom of a column.
Set the priority Low, medium, high, or urgent.
Assign the card Assigns a project member.
Add a label Adds one of the project's labels.
Comment on the card Posts a comment. Variables are filled in.
Notify people Sends an in-app notification to the people you choose.

Actions that change a card need one: the event's card, or a card created earlier in the flow. Card changes and comments are recorded under the person who created the automation.

If an action fails, the following actions are skipped, and the run is marked failed with the error on the failing step.

Send a webhook

Field Description
Address Any http or https address. Slack and Discord incoming webhooks work as they are.
Format Laneshot JSON, Slack, Discord, or Teams.
Message For Slack, Discord, and Teams. Supports variables.
Signing secret (optional) Signs each delivery. See Verify signatures.
Extra headers (JSON, optional) Such as {"Authorization": "Bearer …"}.

The format decides the body:

Laneshot JSON sends the whole event:

{
  "trigger": "trace.created",
  "occurredAt": "2026-11-10T09:41:12.004Z",
  "project": { "id": "8c1d…", "key": "SHOP", "name": "Acme Storefront", "url": "https://laneshot.acme.com/projects/8c1d…" },
  "actor": { "id": "u_42", "name": "Maya Chen", "email": "maya@acme.com" },
  "card": {
    "id": "c_12",
    "number": 12,
    "reference": "SHOP-12",
    "title": "Checkout fails after paying",
    "type": "bug",
    "priority": "urgent",
    "column": "To do",
    "labels": ["payments"],
    "assignee": { "id": "u_7", "name": "Léo Martin", "email": "leo@acme.com" },
    "url": "https://laneshot.acme.com/projects/8c1d…?card=12"
  },
  "trace": {
    "id": "0b1f…",
    "title": "Checkout fails after paying",
    "kind": "video",
    "source": "extension",
    "durationMs": 42150,
    "summary": { "consoleErrors": 3, "failedRequests": 1, "totalRequests": 42 },
    "environment": { "url": "https://shop.acme.com/checkout", "browser": { "name": "Chrome", "version": "131" } },
    "url": "https://laneshot.acme.com/traces/0b1f…",
    "shareUrl": null
  }
}

Slack sends {"text": "<message>"}, and Discord sends {"content": "<message>"}.

Teams sends an Adaptive Card, the format Microsoft Teams Workflows webhooks accept:

{
  "type": "message",
  "attachments": [
    {
      "contentType": "application/vnd.microsoft.card.adaptive",
      "content": {
        "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
        "type": "AdaptiveCard",
        "version": "1.4",
        "body": [{ "type": "TextBlock", "text": "<message>", "wrap": true }]
      }
    }
  ]
}

Without a message, Slack, Discord, and Teams receive {{trigger}}: {{card.reference}} {{card.title}}{{trace.title}} {{card.url}}{{trace.url}}.

Every delivery is a POST with Content-Type: application/json and User-Agent: Laneshot-Automations.

Retries

Each attempt times out after 10 seconds. Laneshot tries up to three times, waiting one then two seconds, when the request fails, times out, or gets a 5xx or 429 answer. Other 4xx answers aren't retried, because they won't succeed later.

Verify signatures

With a signing secret, each delivery carries:

X-Laneshot-Signature: sha256=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd

The value is the HMAC-SHA256 of the raw request body, keyed with your secret, in hex. Compute it over the exact bytes you received, before parsing the JSON, and compare in constant time.

import { createHmac, timingSafeEqual } from "node:crypto";

export function isFromLaneshot(rawBody: string, header: string | null, secret: string) {
  if (!header) return false;
  const expected = `sha256=${createHmac("sha256", secret).update(rawBody).digest("hex")}`;
  const a = Buffer.from(expected);
  const b = Buffer.from(header);
  return a.length === b.length && timingSafeEqual(a, b);
}
import hashlib
import hmac

def is_from_laneshot(raw_body: bytes, header: str | None, secret: str) -> bool:
    if not header:
        return False
    expected = "sha256=" + hmac.new(secret.encode(), raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, header)

Call an MCP tool

Field Description
MCP server address A Streamable HTTP endpoint, such as https://agent.acme.com/mcp.
Headers (JSON, optional) Such as an Authorization header for your server.
Tool name Such as investigate_bug.
Arguments (JSON) A JSON object. Variables are filled in and escaped for JSON, so a title with quotes can't break the payload.
{
  "title": "{{trace.title}}",
  "trace": "{{trace.url}}",
  "errors": "{{trace.summary.consoleErrors}}"
}

The step succeeds when the tool returns without isError, and the run history shows the start of the tool's text answer. Pair it with Laneshot's own MCP server: your agent receives the trace link and reads the capture itself.

Create an issue

Choose a destination in Create in: a linked GitHub repository, or a team, project, list, or database of a connected tracker. The issue body holds the card's description and a link back to the card. After the step, {{issue.reference}} and {{issue.url}} are available to later actions, for example to post the link in Slack.

Variables

Wrap a path in double braces: {{card.reference}}. Missing values become empty text. Objects are written as JSON.

Available on Variables
Every trigger project.name, project.key, actor.name, actor.email, occurredAt, trigger
Card events card.reference, card.title, card.url, card.column, card.priority, card.type, card.assignee.name
A card moves card.previousColumn
Trace events trace.title, trace.url, trace.shareUrl, trace.summary.consoleErrors, trace.summary.failedRequests, trace.environment.url, trace.source
Comments comment.body
Issue events issue.repository, issue.number, issue.url for GitHub; issue.provider, issue.reference, issue.url for other trackers
Incoming webhooks webhook.body, and any path below it, such as webhook.body.title

Incoming webhooks

With the An incoming webhook is called trigger, the automation gets a secret address, shown in the editor under Incoming webhook address once it's saved:

curl -X POST https://laneshot.acme.com/api/automations/hooks/hook_… \
  -H 'content-type: application/json' \
  -d '{"title":"Checkout is down","description":"From our alerting"}'
  • JSON bodies are parsed, so {{webhook.body.title}} reads the title field. Other bodies are passed as text in webhook.body.
  • Bodies over 1 MB are refused with 413.
  • The automation runs immediately. The answer is 202 with {"status": "succeeded"} or {"status": "skipped"}, or 500 with {"status": "failed"}.
  • A disabled automation, or an unknown address, answers 404.

Treat the address as a password: anyone who has it can trigger the flow.

Run automations by hand

Automations with the Someone runs it by hand trigger appear in a card's right-click menu under Run automation. They run with that card as the event's card.

Any automation can also be run from the automations page with Run now, from the editor with Test run, or by an AI agent with the run_automation MCP tool. Runs started without a card fail at the first action that needs one.

Run history

Each automation keeps its last 100 runs. Open an automation to see them: the trigger, the overall status, and every step with its outcome, duration, and detail, such as the HTTP status of a webhook or the issue that was created.

The run history of an automation
Run history: each step with its status, duration, and what it did.

The automations page shows when each flow last ran, how that run ended, and how many runs it has.

Templates

Template What it sets up
Post new bug captures to Slack On A trace is captured with console errors above 0, posts the trace to a Slack channel.
Open a GitHub issue when work starts When a bug moves to In progress, files it as an issue.
Escalate traces from production Captures from app.acme.com become urgent and notify the team lead.
Create cards from another tool An incoming webhook turns support tickets or alerts into cards.
Hand bugs to an AI agent Calls a tool on your agent's MCP server with the trace link.

Templates open in the editor, where you fill in addresses and people before saving.

Safety

No loops

Changes made by automations don't trigger other automations. A flow that moves a card won't start the flows that listen for moved cards, so two automations can't call each other forever.

Private networks

Webhook and MCP actions can only reach public addresses. Laneshot resolves the host name before each call, and again for each redirect, and refuses localhost, cloud metadata host names, and addresses in private, loopback, link-local, and carrier-grade NAT ranges, such as 10.0.0.0/8, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, ::1, and fc00::/7. This keeps a flow from reaching services inside your network, such as a cloud metadata endpoint.

If your Slack proxy, agent, or ticketing system runs on your internal network, set this on the server:

ALLOW_PRIVATE_NETWORK_REQUESTS=true

This applies to every address people enter, not just automations: issue trackers, backend telemetry, and imports. Only do this when everyone who can configure them is trusted with internal network access. The older AUTOMATION_ALLOW_PRIVATE_NETWORKS=true still works.

Secrets

Actions are encrypted at rest, because they can hold signing secrets and authorization headers.

Troubleshooting

Step detail What to do
"… is on a private network, and Laneshot only calls public addresses." Use a public address, or set ALLOW_PRIVATE_NETWORK_REQUESTS=true on a self-hosted server.
"Delivery failed: HTTP 404" Check the address. Client errors aren't retried.
"This trigger has no card. Add a Create a card action first." The action needs a card. Run it from a card, or create one earlier in the flow.
"The tool reported an error: …" The MCP tool rejected the arguments. Check them against the tool's input schema.
Skipped: "card.column didn't match" A condition didn't match. Check its value and spelling.