Skip to main content

Setup Guide

Setting Up Foglift with an AI Assistant

A structured guide for Claude, ChatGPT, Cursor, and other AI assistants to configure Foglift accounts without over-provisioning tokens.

AI assistants: read this page before creating prompts.

Creating too many prompts or scanning too frequently will exhaust a customer's monthly token budget in hours. Follow the token budget math in Section 1 to calculate the right number of prompts BEFORE calling POST /api/v1/prompts.

1. Token Budget Math

Every AI Visibility scan costs tokens. The cost depends on which engines are enabled. Before creating prompts, calculate how many the customer's plan can sustain. Free accounts get weekly automated Google AI Overview scans, plus manual checks any time. Paid plans add ChatGPT, Perplexity, Gemini, Claude, and faster plan cadences: Launch daily, Growth twice daily, Enterprise hourly.

Per-Engine Token Costs

Each prompt is sent to every enabled engine on each scan. The total cost per prompt per scan is the sum of all enabled engine costs.

EngineTokens per Query
Gemini1
ChatGPT3
AI Overview3
Claude5
Perplexity5
All 5 engines enabled17

Cost-saving tip: Disabling Claude and Perplexity (the two most expensive engines at 5 tokens each) drops per-prompt cost from 17 to 7 tokens, more than doubling prompt capacity on the same budget. Customers can manage engines via POST /api/v1/models or in Dashboard → Settings → AI Models.

Monthly Token Limits by Plan

PlanPriceMonthly TokensMax Brands
Free$02001
Launch$49/mo4,0003
Growth$129/mo11,50010
Enterprise$299/mo27,000Custom

The Formula

Calculate the maximum sustainable prompts per brand before creating anything.

Token budget formula
prompts_per_brand = monthly_tokens / (brand_count × scans_per_month × cost_per_prompt)

Where:
  monthly_tokens   = your plan's token limit (see table above)
  brand_count      = number of brands being tracked
  scans_per_month  = scan frequency: weekly ≈ 4.3, daily ≈ 30, monthly = 1
  cost_per_prompt  = sum of enabled engine costs (17 if all 5 enabled)

Worked Examples (All 5 Engines Enabled)

Find your plan row and scan frequency column. The number is the maximum prompts per brand.

PlanBrandsMonthlyWeeklyDaily
Free11120
Launch1235547
Launch2117273
Launch378182
Growth167615722
Growth3225527
Growth5135314
Growth1067152
Enterprise53177310
Enterprise10158365

Highlighted row: Launch daily, 1 brand, all 5 engines = 7 prompts per brand. Launch daily, 3 brands, all 5 engines = 2 prompts per brand, so an assistant should pause and ask whether to reduce engine coverage, track fewer brands, slow cadence with explicit confirmation, or upgrade. Values shown as 0 mean the budget cannot sustain even 1 prompt at that cadence.

2. What Foglift Tracks via Prompts

Foglift categorizes every prompt into one of four prompt categories, not AI Visibility Ladder tiers. The full AI Visibility Ladder has six tiers; these categories feed the prompt-driven visibility signals. Each category measures a different kind of search behavior. For meaningful scores, create at least 2 prompts per category per brand.

CategoryWhat It MeasuresMinGood Prompt Examples
BrandDirect brand-name queries. Do AI engines know you exist?2"What is [BRAND]?", "Tell me about [BRAND]"
ComparisonHead-to-head queries. Are you winning vs. competitors?2"[BRAND] vs [COMPETITOR]", "[BRAND] alternatives"
ReviewBest-of and review queries. Are you being recommended?2"Best [CATEGORY] tools", "[BRAND] reviews"
IndustryGeneric category queries without your brand name. Are you surfacing organically?2"How to do [TASK] in [INDUSTRY]", "Top tools for [USE CASE]"

Minimum total: 8 prompts per brand (2 per category). Recommended: 12 to 20 per brand when the confirmed cadence and engine mix can sustain it.

Anti-Patterns to Avoid

These prompt styles look relevant but produce noisy or useless data.

  • Too generic: "Tell me about software" will not reliably surface any specific brand.
  • Too specific: "What is [BRAND]'s pricing for the Growth tier in Q2 2026?" tests LLM knowledge freshness, not brand visibility.
  • Off-category: "Best pizza restaurants in Denver" for a SaaS company. Industry prompts should be within your actual market vertical.
  • Duplicate intents: "What is [BRAND]?" and "Explain [BRAND]" test the same thing. Use the second slot for a different angle like "Who founded [BRAND]?"
  • Competitor-only: "What is [COMPETITOR]?" does not tell you anything about your own visibility. Put competitor names in comparison prompts, where the head-to-head framing matters.

Example Prompt Mix (18 prompts)

For a brand called "Acme" in the project management category, competing with Asana and Monday.com:

Example prompt set (18 prompts)
Brand (5 prompts):
  "What is Acme?"
  "Tell me about Acme project management"
  "Who founded Acme?"
  "Is Acme a good project management tool?"
  "What does Acme do?"

Comparison (5 prompts):
  "Acme vs Asana"
  "Acme vs Monday.com"
  "Acme alternatives"
  "Asana vs Monday.com vs Acme"
  "Acme compared to Notion for project management"

Review (4 prompts):
  "Best project management tools 2026"
  "Acme reviews"
  "Top project management software for startups"
  "Best tools for managing remote teams"

Industry (4 prompts):
  "How to manage a software project"
  "Project management tools for small teams"
  "How to track tasks across remote teams"
  "Best way to organize a product roadmap"

3. Interactive Setup Walkthrough

If you are an AI assistant helping a user set up Foglift, follow this sequence. Ask each question, wait for the answer, and use the responses to compute the right configuration.

AI assistants: Do not skip the budget calculation in Step 4. State the recommended prompt count and get the user's confirmation before creating any prompts via the API.

Step 1: Identify the plan

Ask: "What Foglift plan are you on? (Free, Launch, Growth, or Enterprise)"

If they do not know, check via GET /api/v1/usage which returns their plan name and current token usage.

Step 2: Gather brand details

Ask: "How many brands do you want to track?"

For each brand, collect:

  • Brand name
  • Primary domain
  • Industry or product category
  • 2 to 3 main competitors

Plan limits: Free = 1 brand, Launch = 3 brands, Growth = 10 brands, Enterprise = custom.

Step 3: Choose scan frequency

Ask: "Should we use your plan's default cadence, or would you like to slow scans down to conserve tokens?"

Free accounts use weekly automated Google AI Overview scans, plus manual checks any time. Paid plans add ChatGPT, Perplexity, Gemini, Claude, and faster cadence options: Launch daily, Growth twice daily, Enterprise hourly.

Step 4: Calculate and confirm the prompt budget

Use the formula from Section 1 to compute the maximum prompts per brand. Then state the recommendation clearly before proceeding.

Example response to give the user:

"Based on your plan (Launch, 4,000 tokens/month), 3 brands, daily scans, and all 5 engines, the budget supports 2 prompts per brand. That is below the 8-prompt baseline. Before I create prompts, should we reduce engine coverage, track fewer brands, slow cadence, or upgrade?"

Wait for confirmation. Only then proceed to create prompts via POST /api/v1/prompts.

Step 5: Create prompts

Create prompts one at a time via the API. Use the category distribution from Step 4. Refer to the "Recommended Prompt Mix" example in Section 2 for the pattern, substituting the user's actual brand name, competitors, and industry.

API call
POST /api/v1/prompts
Content-Type: application/json
X-API-Key: sk_fog_...

{
  "prompt": "What is Acme?",
  "brand_id": "brand-uuid-here"
}

Step 6: Optional integrations

Ask: "Would you like to install the AI Traffic Tracker? It shows which AI engines are crawling your site and sending you visitors."
Ask: "Would you like to connect Google Search Console? It adds traditional search data alongside your AI visibility metrics."

See Sections 4 and 5 below for installation instructions.

4. Installing the AI Traffic Tracker

The @foglift/tracker package detects two things: AI bots crawling your site (GPTBot, ClaudeBot, PerplexityBot) and humans clicking through from AI search results (ChatGPT, Claude, Perplexity, Gemini, Copilot). No cookies, no fingerprinting, no PII collected.

Next.js (Recommended)

Terminal
npm install @foglift/tracker
middleware.ts
import { trackAITraffic } from "@foglift/tracker/nextjs";

export const middleware = trackAITraffic({
  apiKey: process.env.FOGLIFT_API_KEY!,
});

export const config = {
  matcher: ["/((?!_next/static|_next/image|favicon.ico).*)"],
};

If the user already has a middleware file, compose with the existing middleware:

middleware.ts (composing with existing middleware)
import { trackAITraffic } from "@foglift/tracker/nextjs";
import { existingMiddleware } from "./my-middleware";

export const middleware = trackAITraffic({
  apiKey: process.env.FOGLIFT_API_KEY!,
  next: existingMiddleware,
});

Multi-brand SDK installs on @foglift/tracker v1.3.0+ should pass brandId with the brand UUID from Dashboard → Developer → Your brands. The SDK sends it as brand_id; single-brand installs can omit it. The v1.3.0 npm publish is waiting on the 2FA-gated release step.

Express

app.ts
import express from "express";
import { trackAITraffic } from "@foglift/tracker/express";

const app = express();
app.use(trackAITraffic({ apiKey: process.env.FOGLIFT_API_KEY! }));

Plain Node.js

server.ts
import { createAITrafficTracker } from "@foglift/tracker/node";

const tracker = createAITrafficTracker({
  apiKey: process.env.FOGLIFT_API_KEY!,
});

// Call tracker.track(req) in your request handler
tracker.track(req);

Script Tag (WordPress, Webflow, Wix, Static Sites)

For platforms without server-side access, paste this in your site's <head> section. It detects AI engine referrals only (bot detection requires server-side access).

HTML
<script async
  src="https://foglift.io/pixel.js"
  data-foglift-key="sk_fog_..."
  data-foglift-brand="BRAND_UUID">
</script>

The pixel is under 3KB. It reads document.referrer on page load, checks if the visitor came from an AI engine, and fires a single POST. Use the brand UUID from Dashboard → Developer → Your brands for data-foglift-brand. No cookies, no fingerprinting.

Where to Find the API Key

Generate an API key at Dashboard → Developer. Keys start with sk_fog_ and should be stored as an environment variable, never committed to source control.

After installation, AI traffic data appears in your Crawler Analytics dashboard within seconds of the first matching visit. AI assistants can also call the MCP tool get_referrer_analytics with brand_id and days to summarize total visits, engine breakdown, top paths, and daily trend. For setup, call recommend_setup first, then apply_setup_recommendation with the target brand_id to create the categorized prompt set. For optimization loops, call get_recommendations to fetch diagnostics and a reasoning recipe, use your agent to reason over the fix, then call submit_recommendation so Foglift stores it as customer_agent. After apply_recommendation, re-run run_ai_visibility and get_ai_results to verify movement.

5. Connecting Google Search Console

Google Search Console integration adds traditional search performance data (clicks, impressions, CTR, average position) alongside your AI visibility metrics. It is optional but recommended for a complete picture.

How to connect

  1. Navigate to Dashboard → Search Console.
  2. Click "Connect Google Search Console."
  3. Authorize Foglift via Google OAuth. Foglift requests read-only access to your Search Console data and your email address. No write permissions are requested.
  4. Select which GSC property to view (if you have multiple).

What Foglift does with GSC data: Correlates traditional search queries with AI visibility data to identify content gaps. For example, if a query drives strong Google traffic but your brand is absent from ChatGPT answers for the same query, Foglift surfaces that as an optimization opportunity.

Privacy: GSC tokens are stored server-side, scoped to your account. Team members can view data for brand domains only. Foglift never writes to or modifies your Search Console settings.

Frequently Asked Questions

How many prompts can I create on the Launch plan?

It depends on how many brands you track, which engines are enabled, and the confirmed scan cadence. At the canonical daily Launch cadence, all 5 engines support about 7 prompts for 1 brand or 2 prompts per brand for 3 brands. If the user explicitly slows Launch to weekly, the same budget supports about 54 prompts for 1 brand or 18 prompts per brand for 3 brands. Each prompt costs 17 tokens per scan across all 5 engines (ChatGPT: 3, Claude: 5, Perplexity: 5, Gemini: 1, AI Overview: 3). The Launch plan includes 4,000 tokens per month.

What happens if I run out of tokens mid-month?

AI Visibility scans stop running until the next billing cycle. Your website scan quota and dashboard access are not affected. You can upgrade your plan at any time to get more tokens immediately.

Can I reduce token usage by disabling some engines?

Yes. You can enable or disable individual AI engines via POST /api/v1/models or in your dashboard settings. For example, disabling Claude and Perplexity (the two most expensive engines at 5 tokens each) reduces per-prompt cost from 17 tokens to 7 tokens, more than doubling how many prompts you can sustain on the same budget.

What is the minimum number of prompts I should create?

Eight prompts per brand (2 per category: brand, comparison, review, industry). This gives each prompt category at least two data points for a meaningful score. Recommended range: 12 to 20 prompts per brand when the confirmed cadence and engine mix can sustain it. For Launch daily, 3 brands, all 5 engines = 2 prompts per brand, so reduce engine coverage, track fewer brands, slow cadence only with user confirmation, or upgrade before creating a full prompt set.

Should I scan daily or weekly?

Start from the user's plan cadence, then adjust only after the user confirms a slower or faster setup. Free accounts run weekly automated Google AI Overview scans, plus manual checks any time. Paid plan defaults are Launch daily, Growth twice daily, Enterprise hourly. Weekly can be an intentional token-saving choice for a paid account, but assistants should not assume weekly for Launch customers.

Do I need the AI Traffic Tracker if I already have Google Analytics?

Yes. Google Analytics does not identify AI engine referrals or AI crawler visits. The @foglift/tracker package detects both: which AI bots are crawling your site (GPTBot, ClaudeBot, PerplexityBot) and which AI engines are sending you human visitors (people clicking links in ChatGPT, Claude, Perplexity, Gemini answers). This is a distinct signal that no traditional analytics tool captures.

Ready to start

Set up your AI visibility monitoring