Skip to content

[ GUIDE ]

From prompts to working tools: a developer guide for small businesses

For developers and technical operators: turn a prompt into a reliable AI tool for a small business. Test set, checks, handover, capped costs.

bntvllnt
Lire ce guide en français

How do you turn a prompt into a reliable AI tool?

A prompt that works once is a demo. A tool is a prompt with fixed inputs, a structured output, checks that catch its mistakes, a place in the team’s week, and an owner. This guide covers the conversion in six steps, for a company with no IT department: a shop, a restaurant, a workshop, a local service business.

It is written for developers, automation specialists and technical people on the operations side. The business side of the same approach is in the method for bringing AI into a small business.

Three levels: prompt, workflow, tool

  1. A prompt. Someone pastes data into a chat and reads the answer. Useful for exploring. Nothing is repeatable or checked.
  2. A workflow. The same prompt, saved as text, applied to the same kind of input on a schedule, by a person. Repeatable, checked by eye.
  3. A tool. The workflow runs without copy and paste, validates its result in code, and drops it where the team already looks. Repeatable, checked by code and by a person.

A small company often needs level 2 for months before level 3 is worth it. Ship level 2 first.

Step 1: start from the task

Sit with the person who does the task. Watch them do it once. Note every file opened, every copy and paste, every check done from memory. Time it.

Then write the task as one sentence with an input and a result: read the week’s supplier invoices, compare each line with the purchase order, list the mismatches with the amount at stake. To pick the task, the 16 AI use cases by sector give candidates with their input and check.

Step 2: collect twenty real examples

Collect twenty real inputs and, for each, the correct result written by the person who does the task. Mask names and sensitive figures first, and keep every red document out of the set (payroll, HR, health, bank credentials, secrets).

These twenty examples are the test set. Every change to the prompt or the model runs against them. Without them, the owner finds the mistakes in production.

Step 3: write the prompt and the output contract

Keep the prompt in a text file, under version control, next to the code. Number the version and note the model it was tested with. If you code with an assistant such as Claude Code, see also Claude for small businesses.

A good operational prompt states the input format, the output format, what to do when unsure, and what never to do. It requires a structured output. Here is a contract for an invoice-line comparison:

Output contract: one JSON object per invoice line, with these fields.
line            integer, line number on the invoice
ref             string, part number as written on the invoice
qty_ordered     number, quantity on the purchase order
qty_invoiced    number, quantity invoiced
price_ordered   number, unit price excluding VAT on the purchase order
price_invoiced  number, unit price excluding VAT invoiced
gap_eur         number, total gap in euros, positive if the invoice costs more
unsure          boolean, true as soon as a field could not be read with certainty

The rule to write in the prompt: when unsure, set unsure to true and invent nothing. The main model APIs can constrain the answer to a JSON schema (structured outputs, or tool calling), which removes most parsing errors.

Step 4: add checks that do not depend on the model

Every result is validated by simple code before anyone sees it.

  • Shape: the JSON matches the schema and every field is present.
  • Arithmetic: the line totals add up to the invoice total.
  • References: every part number exists in the catalog.
  • Thresholds: any gap above the owner’s limit is flagged to a person.

When a check fails, the tool says so in plain words and stops. A silent wrong answer costs more than a visible failure.

Step 5: deliver the result where the team looks

A tool the team never opens is a dead tool. Deliver the result where the team works: a tab in the spreadsheet they already open, an email at 8 a.m. on Monday, a page on the shared screen in the back office. Avoid a new login if you can.

Two operating rules:

  • Secrets. API keys live in a secrets vault or environment variables, never in the shared spreadsheet or the repository.
  • Logs. Keep inputs and outputs for a short, defined period, for example 30 days, so you can explain an error, with personal data masked.

Step 6: measure and hand over

Run the tool alongside the old method for two weeks, then measure the task duration after 30 days. The owner will trust two numbers: before and after.

The handover fits on one page: what the tool does, inputs, checks, owner, monthly cost cap, and how to switch it off. To teach the team to adjust prompts themselves, run the two-hour AI workshop.

Making the case to a small business owner

An owner judges a developer on two questions: does the task go faster, and does the tool still work a month later? Four skills answer them:

  • Code: reading exports, joining files, writing validations, deploying a small service.
  • Automation: scheduling, retrying, alerting when something fails.
  • Operations: knowing how purchasing, stock and invoicing work in a small company.
  • Handover: training, writing the handover, and coming back after 30 days.

Show the owner the one-page scope described in when to build a custom internal tool: the task, the check, the owner, the off switch and the cost cap. Three tasks solved this way, with numbers, weigh more than three demos.

Building blocks the company keeps

This is the technical side of the vendor independence plan: choose building blocks the company can keep if you disappear.

  • Packages: oss.vllnt.com lists the vllnt libraries published on npm under @vllnt, including Convex components, with install lines and examples.
  • Interface: ui.vllnt.com for the React components of an internal assistant: chat, streaming, tool calls.
  • Hosting: Console is the vllnt PaaS, hosted in France. Deploy your code, get a URL. It is in early access, free during early access.
  • Coding agents: Maia OS coordinates agents such as Claude Code and Codex on machines you control, with your own AI accounts. It is in private alpha, by invitation, and Maia Cloud is planned.

Keep the repository, prompts and data in accounts the company owns. Give the owner admin access from day one.

The most common mistakes

  • Building the platform first. The owner needed a table. Ship the table.
  • No test set. The tool works on the demo file and fails on the first real invoice.
  • Hidden costs. A model call on every keystroke. Run on a schedule and set a spending cap.
  • No owner. The developer leaves and nobody knows the tool exists.

Frequently asked questions

What is the difference between a prompt, a workflow and a tool?

A prompt is pasted by hand and nothing is checked. A workflow is a saved prompt, applied on a schedule and checked by eye. A tool runs without copy and paste, validates its result in code and drops it where the team looks.

How many examples do you need to test a prompt?

About twenty real inputs, each with the correct result written by the person who does the task. Every change of prompt or model runs against this test set again.

How do you avoid hidden costs in an AI tool?

Run the tool on a schedule instead of on every keystroke, cache what does not change, and set a spending cap with the model provider.

Where should API keys live?

In a secrets vault or the server’s environment variables. Never in the code, the repository or a shared spreadsheet.

Going further

More free guides live on Blueprint, the vllnt knowledge base.

Theme