Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GuidesNovember 22, 20266 min read

How to Build an AI Writing Tool

Anyone can wrap a text box around a language model. A writing tool worth paying for owns one kind of document, asks for the right inputs and makes editing the draft easy.

Startbase Team
Editorial ink illustration of a fountain pen on a page of crossed-out lines beside scissors and a glue pot, the pen nib in ember orange

Key takeaways

  • Pick one document type for one audience. Templates with specific input fields beat an open prompt box on quality every time.
  • The editing experience is the product: rewrite a selection, shorten, change tone, keep versions. The first draft is only the start.
  • Measure tokens per document from day one. Long inputs and repeated regeneration decide your margins.

To build an AI writing tool, choose one kind of document for one audience, turn it into a template with specific input fields, generate the draft on the server from a prompt you write, and spend most of your effort on the editor where people revise it: rewrite a selection, adjust tone, shorten, and keep earlier versions. Add saved brand voice settings, usage limits and cost tracking, and you have a tool rather than a thin wrapper around a model.

Own one kind of document

General writing assistants are everywhere. Specialized tools survive because they know the shape of one document better: grant applications for small nonprofits, property descriptions for real estate agents, Etsy listings for handmade sellers, cover letters for career changers, discharge summaries in plain language, podcast show notes from a transcript. Each has a known structure, known mistakes and a known reader, and you can write that knowledge into the template.

Templates are prompts with a form on top

A template is two things: the form the user fills in and the prompt your server assembles from it. For a property description:

  • Inputs: property type, bedrooms and bathrooms, area, neighborhood, three standout features, target buyer, tone (warm, premium, plain), length (short listing, full brochure) and any facts to avoid.
  • Prompt: the role ("you write property descriptions for estate agents"), the structure (a hook sentence, the space, the location, a closing line), house rules (no unverifiable claims like "best in the city", no words some markets disallow in housing ads, units in square meters), the inputs, and the output format.

Ask for structured output when the document has parts. A JSON object with a headline, body paragraphs and bullet features is easier to display, edit and export than one blob of text. The App AI gateway's invokeLLM returns structured JSON when you pass a schema, which makes this direct.

The data model

  • templates: name, description, the input fields (name, label, type, required, help text), the prompt text, the output schema, and a version number.
  • documents: owner, workspace, template id and version used, title, the inputs as submitted, current content, status (draft, final), created and updated dates.
  • document_versions: document id, content, what produced it (generated, rewrite, manual edit), and created date. Keep the last 20 or so.
  • voice_profiles: workspace id, name, a description of the voice, words to prefer and avoid, and two or three example passages.
  • usage: user, day, generations, tokens in and out, for limits and margins.

The editor is where users live

People rarely publish a first draft. What makes a writing tool sticky is how quickly a user gets from the draft to something they would sign:

  1. 01Inline actions on a selection: rewrite, shorten, expand, make friendlier, make more formal, fix grammar. Send only the selection and a little surrounding context, which is faster and cheaper than regenerating everything.
  2. 02Show the change before applying it: the suggested text with Accept and Try again, so nothing is lost by accident.
  3. 03Versions: every generation and accepted rewrite saves a version; a history panel restores any of them.
  4. 04Regenerate a section, not the whole document, when the structure is right but one part is weak.
  5. 05Plain editing that feels like a normal text editor, with undo, word count and character limits for formats that have them (meta descriptions, marketplace titles).
  6. 06Export: copy as plain text or formatted text, and download.

Tip

Save inputs with every document. "Generate again with these changes" from the original form is the most-used button in most writing tools.

Brand voice without magic

Teams want drafts that sound like them. A voice profile does that plainly: a few sentences describing the voice, a list of words to use and avoid, and two or three example passages, all added to the prompt for every generation in that workspace. It is not training a model; it is a better prompt, and that is usually enough. Let users test a profile on a sample paragraph before saving it.

Costs, limits and pricing

Writing tools look cheap per call and add up per user. Each generation pays for the prompt, the voice profile, the inputs (sometimes a whole pasted transcript) and the output. Users who regenerate ten times per document cost ten times as much as those who edit. Track tokens per document from day one and price around the heaviest realistic user, not the average:

  • A monthly allowance of generations or words per plan, checked on the server before calling the model.
  • A maximum input length, especially on templates that accept pasted material.
  • Selection rewrites priced lower than full generations, because they are smaller.

On Startbase, text generation through the App AI gateway is billed as runtime usage from Cloud Credits, and you can set a runtime cap for each app in Settings under Usage, so a spike cannot run unbounded. The AI section of the Backend tab shows calls, tokens and credits over time, which is how you will learn real costs per document. Subscriptions run through your own Stripe account. See AI and Payments.

Accuracy, privacy and honesty

  • Models invent facts with confidence. Tell users plainly to check names, numbers and claims, and design templates that write only from provided inputs.
  • Users paste confidential material (client details, unreleased products). Say in your privacy policy what you store and for how long, and let users delete documents completely.
  • Keep workspace documents private with row-level security: a document is readable only by members of its workspace.
  • If your tool writes text that ends up in regulated places (housing ads, health information, financial promotions), put the rules in the template and remind users that responsibility for the final text is theirs.

What to leave out of version one

  • Dozens of templates. Ship three excellent ones for one audience.
  • Real-time collaborative editing with multiple cursors.
  • Plagiarism and AI-detection checks; they are unreliable and set false expectations.
  • Browser extensions and integrations with every publishing platform. Copy and export first.

A brief you can paste

Build an AI writing tool for Etsy sellers of handmade jewelry. Templates: Listing (inputs: item type, materials, size, colors, style, who it is for, care instructions, three keywords; output JSON with title under 140 characters, description paragraphs, and 13 tags), Shop announcement, and Thank-you note. Users sign in with Google or email and belong to a shop workspace. Each workspace has a voice profile (description, words to use and avoid, two example listings) added to every prompt. Generation runs on the server with structured output. The editor shows title, description and tags as separate editable fields with character counts, inline actions on selected text (rewrite, shorten, warmer, fix grammar) shown as a suggestion with Accept or Try again, a version history panel, Regenerate section, and copy buttons. Save the inputs with each document and offer Generate again with edited inputs. Free plan: 20 generations a month, Pro: 300, through Stripe; check limits on the server and log tokens per generation. Documents are private to the workspace.

Give the tool to five sellers and watch them use it. If they regenerate whole listings to fix one sentence, the inline actions need to be more visible. For the bigger picture of building a paid product on top of models, see how to build a SaaS without developers, and the AI use case for more examples. Budget ranges are in what an AI app costs, and how to price your app helps set plans around token costs.

Frequently asked questions

How do AI writing tools work?

They collect structured inputs through a form, combine them with a carefully written prompt and style rules on the server, call a language model, and show the draft in an editor with tools to rewrite, shorten or change tone.

How do I make an AI writing tool match a brand voice?

Store a voice profile with a description, preferred and banned words and a few example passages, and include it in every prompt for that workspace. That usually works well without training a custom model.

How much does it cost to run an AI writing tool?

You pay per token for every generation, including the prompt, voice profile and inputs. Costs scale with document length and how often users regenerate, so track tokens per document and set allowances per plan.

Should my writing tool have many templates?

Start with a few excellent templates for one audience. Specific inputs and a well-tested prompt per document type produce much better drafts than a long list of generic templates.

On this page

  • Own one kind of document
  • Templates are prompts with a form on top
  • The data model
  • The editor is where users live
  • Brand voice without magic
  • Costs, limits and pricing
  • Accuracy, privacy and honesty
  • What to leave out of version one
  • A brief you can paste

Keep reading

More in Guides
Editorial ink illustration of a kitchen scale with an apple on its pan beside a notepad and a spoon, the apple in ember orange
GuidesNovember 22, 2026

How to Build a Calorie Tracker App

Calorie tracking fails when logging is slow or the numbers are wrong. Get reliable food data, make repeat meals one tap, and be honest that every number is an estimate.

6 min read
Editorial ink illustration of two tin-can telephones joined by a string across a garden fence, the knot in the string in ember orange
GuidesNovember 22, 2026

How to Build a Chat App

Chat looks simple and hides four hard problems: delivering messages live, knowing who is online, tracking who has read what, and keeping strangers from abusing it.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.