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.
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.
| Engine | Tokens per Query |
|---|---|
| Gemini | 1 |
| ChatGPT | 3 |
| AI Overview | 3 |
| Claude | 5 |
| Perplexity | 5 |
| All 5 engines enabled | 17 |
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
| Plan | Price | Monthly Tokens | Max Brands |
|---|---|---|---|
| Free | $0 | 200 | 1 |
| Launch | $49/mo | 4,000 | 3 |
| Growth | $129/mo | 11,500 | 10 |
| Enterprise | $299/mo | 27,000 | Custom |
The Formula
Calculate the maximum sustainable prompts per brand before creating anything.
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.
| Plan | Brands | Monthly | Weekly | Daily |
|---|---|---|---|---|
| Free | 1 | 11 | 2 | 0 |
| Launch | 1 | 235 | 54 | 7 |
| Launch | 2 | 117 | 27 | 3 |
| Launch | 3 | 78 | 18 | 2 |
| Growth | 1 | 676 | 157 | 22 |
| Growth | 3 | 225 | 52 | 7 |
| Growth | 5 | 135 | 31 | 4 |
| Growth | 10 | 67 | 15 | 2 |
| Enterprise | 5 | 317 | 73 | 10 |
| Enterprise | 10 | 158 | 36 | 5 |
Highlighted row: Launch plan, 3 brands, weekly scans = 18 prompts per brand. This is the most common configuration for Launch-tier customers. 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 tiers on the AI Visibility Ladder. Each tier measures a different kind of search behavior. For meaningful scores, create at least 2 prompts per category per brand.
| Category | What It Measures | Min | Good Prompt Examples |
|---|---|---|---|
| Brand | Direct brand-name queries. Do AI engines know you exist? | 2 | "What is [BRAND]?", "Tell me about [BRAND]" |
| Comparison | Head-to-head queries. Are you winning vs. competitors? | 2 | "[BRAND] vs [COMPETITOR]", "[BRAND] alternatives" |
| Review | Best-of and review queries. Are you being recommended? | 2 | "Best [CATEGORY] tools", "[BRAND] reviews" |
| Industry | Generic 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 for customers on weekly scan cadence.
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.
Recommended Prompt Mix (18 prompts, Launch tier, 3 brands)
For a brand called "Acme" in the project management category, competing with Asana and Monday.com:
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: "How often should we scan? Weekly is recommended for most use cases."
Options: daily (for active campaigns), weekly (default), monthly (for budget-conscious monitoring).
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, and weekly scans, I recommend creating 18 prompts per brand. I'll create a balanced mix: 5 brand prompts, 5 comparison prompts, 4 review prompts, 4 industry prompts. Sound good?"
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.
POST /api/v1/prompts
Content-Type: application/json
X-API-Key: sk_fog_...
{
"prompt": "What is Acme?",
"brandId": "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)
npm install @foglift/trackerimport { 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:
import { trackAITraffic } from "@foglift/tracker/nextjs";
import { existingMiddleware } from "./my-middleware";
export const middleware = trackAITraffic({
apiKey: process.env.FOGLIFT_API_KEY!,
next: existingMiddleware,
});Express
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
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).
<script async
src="https://foglift.io/pixel.js"
data-foglift-key="sk_fog_...">
</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. 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 workspace_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 workspace_id to create the categorized prompt set.
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
- Navigate to Dashboard → Search Console.
- Click "Connect Google Search Console."
- Authorize Foglift via Google OAuth. Foglift requests read-only access to your Search Console data and your email address. No write permissions are requested.
- 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 workspace 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 and how often you scan. With 1 brand on a weekly scan cadence, you can sustain about 54 prompts. With 3 brands scanned weekly, about 18 prompts per brand. 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 of the four AI Visibility Ladder tiers at least two data points for a meaningful score. Recommended range: 12 to 20 prompts per brand for Launch-tier customers with weekly scans and 1 to 3 brands.
Should I scan daily or weekly?
Weekly is the right default for most customers. AI engine citations change gradually, not hourly. Daily scanning is useful for competitive intelligence during product launches, funding announcements, or PR campaigns. Monthly is sufficient for long-tail brand monitoring on the Free tier.
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