API Request Variable Builder
Turns a reusable API request prompt into a clean variable set covering endpoint, method, auth, payload, response format, and error handling.
Extracts and documents variables from SQL query prompt templates — table names, columns, filter conditions, joins, sort order, and result limits.
SQL query prompts pick up variables piecemeal. A filter condition is added in one copy, a table name in another, a sort order appended later. When the same template is reused across datasets or passed to an automation layer, variables like {{table}}, {{tableName}}, and {{table_name}} often appear across different copies even though they refer to the same value. The Prompt Variable Builder detects these similar names and mixed naming conventions — camelCase in one version, snake_case in another — so you can consolidate them before the inconsistency causes a silent substitution failure downstream.
Open in Prompt Variable Builder
Load this template into the tool. The textarea will show the SQL query template with its variables.
Check for similar and inconsistently named variables
If your existing template uses {{table}}, {{tableName}}, or {{table_name}} across different copies, the similarity check will flag them. Use the rename field to consolidate to one consistent name — camelCase or snake_case, but not both.
Set types and add format descriptions
Set recordLimit as number. Add a description to filterConditions and joins specifying the expected format — SQL syntax, plain English conditions, or structured JSON. This is where most substitution errors originate.
Export the schema
Use the JSON export in the pipeline layer that substitutes values before the query is executed. Use the Markdown doc as the variable reference for teammates.
The Prompt Variable Builder's similarity check flags near-duplicate names and mixed camelCase/snake_case conventions across your copies, then the rename field lets you consolidate them to one name. It's naming-drift detection on the template text — it doesn't run the SQL, so it catches the silent substitution failure before your automation layer can't find the expected variable.
In your pipeline's substitution layer, not here. Step four exports JSON for the code that fills values before the query is executed, plus a Markdown doc as the teammate reference, and it can emit a TypeScript interface for a typed data access layer. The builder documents the placeholders like {{filterConditions}} and {{joins}}; the actual substitution and execution happen downstream in your own stack.
Those two are the most error-prone substitution targets in SQL templates. Step three has you set recordLimit as a number and describe the expected format for {{filterConditions}} and {{joins}} — SQL syntax, plain-English conditions, or structured JSON — because that ambiguity is where most substitution errors originate when the value-filler and template-author are different people.
Turns a reusable API request prompt into a clean variable set covering endpoint, method, auth, payload, response format, and error handling.
Cleans up variables in landing page prompt templates — headline, audience, pain point, offer, social proof, CTA, and objections.
Documents and exports variables from user story and acceptance criteria prompt templates — persona, goal, outcome, constraints, and definition of done.
A reusable AI agent task template with variables for objective, context, available tools, constraints, success criteria, failure handling, and output format.
Formats fuzzy agent instructions into a structured prompt with objective, available tools, constraints, success criteria, and failure handling.
Turn any plain prompt into a reusable, variable-based template — auto-detect values and export.