WP Webhooks / Docs / AI Dev Trace
Feature since v2.0.0

AI Dev Trace

A diagnostic panel for Build with AI that records the exact prompts, raw requests, and raw responses exchanged with the AI model — API keys always redacted.

$

AI Dev Trace gives you full visibility into what the Build with AI agent sends and receives. Each model call is recorded as one entry — system prompt, the message transcript sent, the raw HTTP request (endpoint, headers, body, with API keys replaced by [redacted]), the raw response, latency, and whether the reply parsed into a valid plan. Entries are grouped into per-day accordions in the panel, newest first.

Two switches

Settings → AI Builder has two independent switches. "Log AI Dev Trace" (fswa_ai_debug) controls whether calls are recorded — it is on by default so support can diagnose a build you report, and entries older than 30 days are pruned automatically. "Show AI Dev Trace panel" adds the panel to the Build with AI screen and is off by default.

Where traces live

Traces are JSONL files, one per day, in wp-content/uploads/fswa-ai-logs/ — the directory is web-guarded with an index file and deny rules. Secrets never hit disk: provider API keys are redacted before writing, and the payload redaction that protects prompts applies here too. The panel offers one-click clear.

/ Related

Ready

Your next automation is
one sentence away.

$ wp plugin install flowsystems-webhook-actions --activate