Your preferences
Stored in this browser. Server secrets stay in /opt/adbuyer/.env.
Pipeline AI keys (Anthropic, OpenAI, Gemini, Ollama) →
Active provider
Loading…
Provider
—
Model
—
Pipeline
—
Use cases
AdIntel task model routing
Each AdIntel task picks its own Ollama Cloud model (copy, compliance, creative, video, and insights are benchmarked separately). Price is not used to rank models; only measured quality, schema reliability, and safety gates can activate a route.
Strategy
Performance first
Routing
Loading…
Last benchmark
—
Choose a primary model and one fallback per task. Benchmark compares those two only.
| Task | Primary / fallback | Best model | Evidence | Gate |
|---|
AdIntel routing status is unavailable.
“Provisional” is a candidate recommendation, not a performance claim. “Benchmarked” means the model passed AdIntel’s labelled task suite; compliance routes also require zero dangerous misses.
Configuration
Admin only. Keys are stored on the server in ai_runtime_config (override .env). Leave key fields blank to keep the current value.
Providers
Status after save. Pipeline uses the active provider for briefings and queue reasoning.
Onboard clients
Client must exist in Trinity clients (AdIntel Meta sync) first.
Available to enable
All Trinity clients are already enabled.
Enabled for AdBuyer
No clients enabled yet.
Client rules & mode
Thresholds drive the rule engine. Operating mode controls whether actions execute automatically.
BA ↔ Trinity mapping
Links Trinity UUID to BA integer clients.id for ETL.
| Trinity client | BA client id | Meta account | Notes |
|---|
Connection status
Loading…
Meta Ads integration
Per-client tokens stored encrypted in AdIntel — powers spend sync in client workspace.
Connect each clinic’s Meta ad account so AdIntel can sync performance_daily
(spend, Meta leads). The agency META_SYSTEM_USER_TOKEN in server env is still used for AdBuyer live reads and writes.
Connected accounts
Loading…
Claude MCP (ad buyer agent)
Connect Claude Code or Claude Desktop to AdBuyer’s MCP server so the ad buyer can read pipeline status,
funnel metrics, and the approval queue — and approve/reject in semi_auto mode.
This is not shown in the browser UI; it runs in your local Claude client.
—
Claude Code
—
Replace <ADBUYER_API_KEY> with the team key from
/opt/adbuyer/.env on the server (Firebase users: ask an admin).
MCP uses X-AdBuyer-API-Key — not your Google sign-in token.
Endpoint: /mcp ·
9 tools
Meta Ad Library (competitor ads)
Competitor intelligence in AdIntel uses Meta’s Ad Library API — not the same permission as your
OSH campaign token. Both use the same Meta Developer app (META_APP_ID on the server).
- Register that app at facebook.com/ads/library/api (identity verification required).
- Keep using
META_SYSTEM_USER_TOKENin/opt/adbuyer/.env— no separate token type once approved. - Per-client Meta tokens: use Meta Ads integration above (or AdIntel client settings). Used for AdIntel spend sync when env tokens are unset.
AdIntel links
Server secrets stay in /opt/adbuyer/.env. UI link can be overridden in Account.
AdIntel data depth
Row counts per enabled client from shared adintel_db. HTTP recommendations probe uses the first client.
| Client | Ads | Insights | Predictions | Copy | Visual | Last insight | Action |
|---|
No enabled clients with thresholds.
BA funnel (lead_outcome)
Rows synced from BusinessAnalytics via ETL. Mapping lives under Clients.
| Client | BA id | Mapping | lead_outcome rows | ETL watermark |
|---|
No enabled clients or funnel data yet.
Scheduler
Loading…
Scheduler enabled
—
APScheduler running
—
Client stagger
—
Default mode (new clients)
—
Scheduled jobs
No jobs scheduled (scheduler disabled or not started).
Last pipeline run
Finished
—
Ads evaluated
—
Queue items created
—
Last scheduler tick
—
Run evaluation now
Admin only — same job as the morning cron. Results appear in Morning Review.