---
title: "AI Dev Trace"
description: "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."
url: "https://wpwebhooks.org/docs/ai-dev-trace/"
---

[WP Webhooks](/) / [Docs](/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 AI Builder 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, off by default

Settings → AI Builder → "Enable AI Dev Trace" makes the panel visible on the Build with AI screen; the panel's own Logging switch controls whether calls are recorded (`fswa_ai_debug`). Both are off by default — leave them off unless you are troubleshooting a build.

## 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

[Build with AI](/docs/build-with-ai/)[Activity History](/docs/activity-history/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](/wordpress-webhook-plugin/)

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

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"AI Dev Trace — Feature — Webhook Actions Docs","description":"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.","url":"https://wpwebhooks.org/docs/ai-dev-trace/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
