When every customer needs different fields, let an AI agent propose the database tables from the conversation--but only create them after a person approves, and only allow adding tables and columns, never deletes: AI agent prompt
Working Surface (Nov 5, 2026 issue; summarizing a Japanese LayerX Ai Workforce engineering write-up by suna dated around Nov 4) describes a trial design where an AI agent designs and creates the PostgreSQL tables that store each customer's business data for work such as invoice checks and contract review. Customer field needs often appear only after work starts; the old flexible storage made types hard to enforce and forced the agent to scan every record to match invoices to purchase orders. In the new design the agent proposes real tables, asks clarifying questions, and creates them only after a person approves. The agent may add tables and columns but not delete or rename; every record change is shown first, approved by the user, and reported back with prior values. Working Surface notes there is no release date; treat this as an engineering account of a trial, not a shipped product promise.
The prompt
Help me let an AI agent design storage for a workflow where each customer needs different fields. Workflow: [e.g. invoice check / contract review]. Examples of fields we've seen: [list]. Rules I want: human approves schema; agent may add tables/columns only; no deletes or renames; every row change needs approval and must show old values. 1) Interview me with up to 8 questions to learn entities, keys, and which fields must be typed vs free text. 2) Propose a first schema (tables, columns, types, indexes) in plain language and as SQL CREATE statements. 3) List what you are unsure about and will not create until I answer. 4) Write the approval card text I should see before any CREATE runs. 5) Give a safe migration plan from a flexible/EAV store to these tables, including how matching [e.g. invoice to PO] gets faster with real columns. Do not run DDL or change data yourself.
Fill in the blanks, then copy
This prompt has 3 [bracket]s to fill in. Type your details below and the prompt updates as you go. Your answers stay in this browser and are reused on other prompts with the same blanks. Nothing is sent to us.
Example values are fictional, just to show how a filled-in prompt reads. Replace them with your real details.How to use it
- Copy the prompt above.
- Replace every [bracket] with your own details (use the fill-in-the-blanks box above, which remembers your answers for the next prompt).
- Paste it into LayerX Ai Workforce (trial pattern), ChatGPT, Claude and review the answer before you use it.
Works with: LayerX Ai Workforce (trial pattern), ChatGPT, Claude, PostgreSQL
Real-world example: workingsurface.ai/links/2026-11-05-02/
Featured in: AI prompts to summarize meetings, notes, documents and reports
Before you use it: what to check
Already built into this prompt
- Rules I want: human approves schema; agent may add tables/columns only; no deletes or renames; every row change needs approval and must show old values.
- Do not run DDL or change data yourself.
Check yourself
- Check every figure, price and total against your own records before anything is sent, posted or booked. A person approves refunds, discounts, payments and price changes.
- Don't let AI make the final call on hiring, pay, performance or discipline. Use it to organise information, and have a person decide using criteria you can explain.
- Anything legal, tax or compliance-related is a first draft for a qualified person to check. It is not professional advice, and clause references and deadlines must be checked against the source.
- Remove names, contact details, account numbers and other personal data the task doesn't need before you paste, and check your AI tool's data and training settings.
Using an AI agent? Download this prompt as a SKILL.md agent skill with these checks built in, or get the .zip for Claude.ai. How to install skills.
Want to make this prompt even better? Grade it with the free prompt grader or build your own with the AI prompt generator.
32 copy-paste agent prompts (PDF) plus 5 new prompts every week.
Get it free