On this page

The AI Context Debugger, under Settings, lets you paste a system prompt and a test question, then shows whether the prompt fits the limit of the place it will run, how many tokens it costs, how much of the model's context window it uses, and what the model actually replies. It is a token and prompt-testing tool, not a live replay of a real customer conversation.
AI debugger: first 5 of 7 steps
- 1Open Settings, then Automation & AI, then
- 2Choose what you are testing for
- 3Paste your full system prompt
- 4Enter a test question
- 5Choose the AI connection to test with
Before you start
- The debugger is on Growth and above, and each question costs 10 AI credits. No key is needed: it tests with your workspace's default AI connection, which is VGraple AI unless you added your own key under Settings, then AI.
- It does not automatically pull in your knowledge base content or a real conversation's history; you paste in exactly what you want tested, nothing more.
- Use it before shipping a long or complex system prompt for an AI Agent step, an AI Reply step or the website chat widget, to catch a prompt that is over that place's limit or unexpectedly large before customers ever see it.
- Only Owner and Admin roles typically reach Settings pages that touch AI configuration; if you cannot see the debugger, check your role's access.
- The tool tests the prompt in isolation, on a single question with no conversation history behind it, so it will not reproduce every nuance of a multi-turn conversation exactly. Treat its numbers as a strong signal, not a guarantee of identical behavior in production.
Steps
- Open Settings, then Automation & AI, then AI Debugger. The page is titled AI Context Debugger. It shows a "No AI connection available" warning, with an Open AI settings button, if the workspace has no usable AI connection.

- Choose what you are testing for: AI Agent step, AI Reply step or Website chat widget. Each place keeps a different amount of the prompt, and the line under the buttons says how much.
- Paste your full system prompt into the System Prompt field. Under it, a counter shows the length against that place's limit (for example "1,240 of 8,000 characters") and turns red with the reason when the prompt is over it, next to a live estimated token count.
- Enter a test question, or use the default "Hello, what can you help me with?" if you just want a general check.
- Choose the AI connection to test with. Each usable connection is a button showing its name, provider and model: VGraple AI, plus any key of your own added under Settings, then AI.
- Click Run Context Test. The tool sends your prompt, the platform's business-scope rules and your question to the real provider and reports back actual, not estimated, token usage. For an AI Agent step over 8,000 characters it sends only the first 8,000, as the step would.
- Read the verdict banner and stats. The banner says whether the prompt fits the limit of the place you chose and how many characters were sent, then the stats report the percentage of the model's context window used, the exact prompt and completion token counts, and the model's actual reply text.
A real-estate agency that has been adding rules to its AI Reply node's system prompt for months, one edge case at a time, is a good example of when this tool earns its place: what started as 200 words describing the business can quietly grow into several thousand words of accumulated instructions. Pasting the current prompt into the debugger before adding one more rule shows whether it is still comfortably small, or whether it is time to trim before the next customer conversation pays for it in latency and cost.
What you will see
A short, focused prompt tested for the website chat widget returns a verdict like "Within the website chat widget limit: 1,200 of 3,000 characters. It fits well within this model's context window," with a low percentage bar. A Goal and persona that grew past 8,000 characters, tested for an AI Agent step, returns a red verdict saying the step reads only the first 8,000 characters and how many are ignored. An AI Reply prompt that fills most of the model's context window asks you to trim it. Either way, you get the model's actual reply to your test question underneath the stats, so you can judge the prompt's quality at the same time as its size.
The stats grid breaks the total down into four figures: the estimated system prompt tokens and question tokens (calculated before the API call, from a rough character count), and the actual prompt tokens and response tokens (reported back by the provider itself after the call completes). Comparing the estimated and actual prompt figures is a useful sanity check on its own, since a large gap between them usually means the character-based estimate undercounted something, most often a prompt with a lot of non-English text or unusual formatting.
Settings and options
| Setting or field | What it does | Default |
|---|---|---|
| Testing for | Where the prompt will run: AI Agent step (reads the first 8,000 characters), AI Reply step (no character limit of its own) or Website chat widget (saves at most 3,000 characters) | AI Agent step |
| System Prompt | The full prompt text to test; shows its length against the chosen limit and a live estimated token count as you type | Empty |
| Test Question | The question sent alongside the system prompt | "Hello, what can you help me with?" |
| AI connection to test with | Which connection answers the test question; its model sets the context window | The first connection in the list |
| Context used percentage | Actual prompt tokens divided by the selected model's context window | Calculated per test run |
| Verdict message | A plain-language read of whether the prompt fits the chosen limit, then whether it fits comfortably in the model's context window, is large, or should be trimmed | Calculated per test run |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| No connection buttons appear and the page says "No AI connection available" | The workspace has no usable AI connection | Click Open AI settings and add or repair a connection under Settings, then AI |
| Run Context Test is greyed out and the counter is red | Testing for is set to Website chat widget and the prompt is over 3,000 characters, which the widget will not save | Shorten the prompt, or move reference material into the widget's knowledge base |
| The verdict says the last characters are ignored | Testing for is set to AI Agent step and the Goal and persona is over 8,000 characters | Shorten it, or move reference facts into the knowledge base; the flow builder shows the same counter under Goal and persona and warns when you save the flow |
| Run Context Test shows "Paste your system prompt first." | No system prompt was entered, since a blank prompt has nothing to measure | Paste your system prompt into the field before running the test |
| The debugger's reply does not match what a real flow's AI Reply node said for the same prompt | The debugger does not include your knowledge base content or conversation history; a real flow turn includes retrieved chunks the debugger never sees | Paste the retrieved knowledge base content into the System Prompt field alongside your instructions to approximate a real turn more closely |
| The page says AI is not available | The workspace has no AI credits left | Wait for the free credits to renew on the 1st, or buy a credit pack; see AI credits |
| The token count feels too high for a short-looking prompt | Estimated counts use a rough character-to-token ratio before the real test runs; the actual count reported after Run Context Test is provider-measured and more accurate | Trust the post-run "actual" figures over the pre-run estimate shown while typing |
Related reading
If a bot's system prompt seems too large or is producing inconsistent answers, use this tool before assuming a deeper problem; if the bot is not answering at all, the cause is more likely one of the gates covered in AI on but not replying than a prompt-size issue.