Read the visits that came from AI assistants
get_ai_trafficMeasure AI-referred sessions from Google Analytics, including engagement and key events, to determine if AI assistant visibility converts into site visits.
Instructions
The sessions Google Analytics attributes to AI assistants for the active project's site: how many arrived, how engaged they were, and how many key events they triggered. This is the tool for 'is any of this visibility turning into visits'.
Pass by to rank the period instead of totalling it: source for the assistants that sent the visitors, page for the pages they land on. assistant narrows any of the three to one assistant. A ranking answers with the strongest entries rather than a list to walk to the end of.
Google's figures answer a different question from everything else here: visibility counts the answers that named the brand, and this counts the people who then arrived. Search Console covers ordinary Google results — ctr is a rate between 0 and 1, and position counts from 1, so lower is better. AI traffic is Google Analytics sessions whose referrer was recognised as an assistant, which undercounts by design: an assistant that names the brand without linking it sends nobody, and somebody who reads an answer and then types the domain arrives as direct traffic. Read a rise here as people acting on the answers, never as how often the brand is named. Mind the two senses of the phrase: the aiTraffic field on a prompt is the demand behind that question, while get_ai_traffic counts sessions that reached the site.
Both integrations are bound to the project in the PromptEye app. A project with nothing bound answers with zeros and empty lists, which reads exactly like a site nobody visits — so call get_google_status before reporting a zero as a finding, and say which of the two it was.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Rank the period along this axis instead of reporting its totals. | |
| limit | No | How many entries to return, at most 200. Ignored without `by`. | |
| endDate | No | Last day to report on, inclusive. Defaults to today, and must be within 366 days of startDate. | |
| assistant | No | Only sessions from this AI assistant, matched without regard to case against the referrer: `openai` also matches chatgpt, `anthropic` matches claude, `google` matches gemini, and `microsoft` matches copilot and bing. | |
| startDate | No | First day to report on, inclusive. Defaults to 30 days before today. |