All skills

Run your business

Visitor Journey Follow-Through

Finds one inquiry, reads the recorded visitor journey behind it, and explains in the owner’s words where the inquiry came from, which page it landed on, and which pages it visited.

What it can touch: Reads the owner’s inquiries, visitor journeys, and visitor activity through Second Shift only inside the owner’s granted Agent Access permissions. It is read-only by default and changes nothing; any follow-up action runs only as a separate step the owner approves on its own. It never invents a journey or a source.

Plugs into Second ShiftMITSecond Shift

About this skill

A first-party Second Shift skill for owners who ask where an inquiry came from. It finds the inquiry the owner means, reads that visitor’s recorded journey in time order (the landing source, the landing page, every page, click, and tap the record shows, and the form submission that ended it), and cross-checks the story against the period’s visitor activity. When no journey was recorded it says which kind of no record it is: journey collection was off, or the source was not recorded, and it never invents a journey, a source, or a cause. The routine is read-only: it moves no stage, sends nothing, and marks nothing read.

First-party: written and maintained by Second Shift.

Get this skill

Install
npx skills add https://secondshiftos.com/skills/visitor-journey-follow-through.md

Uses the open skills CLI (npx skills, by Vercel Labs). No Second Shift account is involved. Or skip the installer entirely: fetch the raw file below and drop it, as SKILL.md, into your agent’s skills folder.

Raw SKILL.md — stable URL
https://secondshiftos.com/skills/visitor-journey-follow-through.md

The full skill

The exact text served at the raw URL above. What you read is what your agent gets.

SKILL.md
---
name: visitor-journey-follow-through
description: Follow one Second Shift inquiry back to its source: find the inquiry, read its recorded visitor journey with visitor_journey, cross-check the period picture with event_summary, and explain in the owner’s words where the inquiry came from, which page it landed on, and which pages it visited, without ever inventing a journey or a source. Use when a business owner on Second Shift asks “where did this inquiry come from”, “what did this person look at before they sent the form”, “did this visitor click the call button”, or wants the story behind one inquiry.
license: MIT
metadata:
  author: Second Shift
---

# Visitor Journey Follow-Through

This skill produces one thing: a plain answer to the
question “where did this inquiry come from”, built only from
what the account recorded. The answer names the source the
visitor arrived from, the page they landed on, and the pages
and actions the record shows after that, in order, in the
owner’s words. When the record holds no journey for an
inquiry, the answer says exactly that, and says which kind
of no record it is. An honest “not recorded” is a finished
result here, not a gap to fill in with a guess.

The routine is read-only by default. It reads the inquiry,
reads its journey, and explains. It moves no stage, sends
nothing, and marks nothing read. Any follow-up action the
owner wants after hearing the story, such as a stage move, a
note, or a reply, is a separate step the owner approves on
its own before it happens.

## What runs where

- Through Second Shift (tenant accounts only, and only inside
  the permissions the owner granted their connection):
  `list_leads` to find the inquiry the owner means,
  `get_lead` to read that inquiry in full with its timeline,
  `visitor_journey` to read the one visitor’s recorded
  journey in time order, `event_summary` to cross-check the
  period picture (totals by event type, the top buttons and
  calls to action, and the most recently active visitors),
  and `analytics_summary` when the owner also wants the
  period totals beside the one story.
- The tool names above are the names the live Second Shift
  server publishes. If a read the routine wants is not
  granted, the report says so in one line and carries on
  with what it could read. Never work around a missing
  grant, and never fill a gap with a guess.

## Step 1: Find the inquiry

Start with `list_leads`, newest first. The owner may name
the inquiry by the person’s name, by when it arrived, or by
what it asked for; match on what the cards show and confirm
the match with `get_lead`, which returns the full record and
its timeline, oldest first.

If more than one inquiry could be the one the owner means,
name the candidates in the owner’s words and ask which one,
before reading any journey. If no inquiry matches, say so
plainly; a journey read needs a real inquiry to start from,
and guessing which inquiry the owner meant would attach the
wrong story to the wrong person.

Set the expectation at this step: the next step reads the
visit that this inquiry’s own submission recorded, and when
a submission carried no visitor record, the honest answer
is that no journey was recorded for it.

## Step 2: Read the journey

Call `visitor_journey` for the inquiry found in Step 1. The
read takes the inquiry’s id, or a visitor id when the owner
starts from a visitor they saw in `event_summary` instead.
It returns every recorded event in time order: each event’s
timestamp, its type (a page view, a click, a tap, a form
start, a form submission), the page it happened on, the
button or call to action it names where the record carries
one, any tap target, and the landing source the visit
arrived from.

The journey is paged: it returns up to 100 events at a time
by default (500 at most), and a long visit continues with
the cursor the answer returns. Follow the cursor until the
answer holds no more events, so the story is complete
before it is explained. The range bounds the window: 7d,
30d (the default), or 12m. If the owner asks about an older
inquiry, widen the range to cover when it arrived rather
than reporting a partial story as the whole story.

A visitor in this record is a pseudonymous tracker id,
never an identified person. The inquiry joins a journey
only at the moment its own submission carried a visitor
id; that join is the one link this routine may claim.

## Step 3: Cross-check with the period picture

Use `event_summary` for the same period to place the one
story inside the whole picture: how many page views, clicks,
taps, form starts, and form submissions the period holds,
which buttons and calls to action earned clicks, and how
many of the visitors who clicked went on to submit a form.
Its recent view lists the most recently active visitors
with each one’s first and last activity, event and click
counts, last page and action, landing source, and whether
that visitor submitted, which is the way in when the owner
starts from “the person who was just on the site” rather
than from an inquiry.

One discipline from that answer matters in every report: a
visitor who clicked a button and later submitted counts as
converted for that button as a same-visitor sequence. It is
not proof the click caused the inquiry, and the report
never says it is.

## Step 4: Explain the story in the owner’s words

Report the story in the order the visitor lived it:

1. Where they came from: the landing source the journey
   records, in plain words (for example, a Google search, a
   Facebook visit, a QR code scan, or a direct arrival when
   the record names no source). Say only what the record
   carries; a source the record does not name is a source
   the report does not name either.
2. Where they landed: the first page the journey shows.
3. What they did next: the pages they visited in order, and
   the clicks and taps the record names, with the button
   labels as recorded, so the owner can answer questions
   like “did this person tap the call button” from the
   record, event by event.
4. How it ended: the form start and the form submission
   when the journey carries them, which is the moment the
   visit became this inquiry.

Keep the telling to what the events show. Timestamps can be
given in the owner’s local time in plain words. Never
invent a page the visitor “must have” seen, a reason they
came, or an identity for an anonymous visitor.

## Step 5: Handle the honest no-record states

Two different states both mean no journey can be told, and
they are never merged into one sentence, because they tell
the owner different things:

- Collection off: the record states that journey collection
  was off for this inquiry. Say it in those words: “Journey
  collection was off for this inquiry, so no story was
  recorded.” Collection off is a setting state. The visit
  may well have happened; the business had the collection
  switch off, so nothing was kept. What happens next is the
  owner’s call: the report can name where the collection
  switch lives, and changes nothing itself.
- Source not recorded: the read answers that no journey was
  found for this inquiry, for example because its submission
  carried no visitor id. Say it in those words: “Source not
  recorded for this inquiry. No visit was matched to this
  submission.” This state is not collection off, and the
  report never presents it as collection off. What happens
  next: the inquiry itself is still real and still sits in
  the owner’s pipeline exactly as `get_lead` shows it; only
  its origin story is missing, and no later read can invent
  it after the fact.

An inquiry with an empty journey, a period with no events,
and a visitor who viewed one page and left are all valid
results. Report each as it is, with the same care as a long
journey.

## The ground rules

- Read-only by default, always. This routine calls no write
  tool: no stage moves, no notes, no sends, and no marking
  an inquiry read. If the owner approves a follow-up action
  after hearing the story, that action runs as its own step
  under its own approval, never as part of this read.
- Never invent a journey. Every page, source, click, and
  time in the report came from a tool result in this run.
  A step the record does not show does not go in.
- Never fabricate attribution. The landing source is the
  one the record carries, a click that precedes a
  submission is a sequence and not a cause, and an
  anonymous visitor is never named as an identified person.
- Collection off and source not recorded are different
  answers. State the one the record gives, in its own
  words, and never swap one for the other.
- Words: say inquiries with humans. The tool names stay as
  they are in calls and in the tool index.
- A skill teaches. It never grants permission. Every read
  above happens only inside the owner’s own Agent Access
  grants, and this skill changes none of that.

Source and license

Source: Second Shift (Written for this library)

License: MIT. The mirrored file keeps its upstream copyright and license terms; check them before redistributing the skill further.