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
Prompt libraryNovember 22, 20266 min read

A Prompt for an AI Writing Assistant

The best writing assistants edit, they do not take over. This brief builds an editor where AI suggests changes to the sentence you picked, in your voice, and you decide.

Startbase Team
Editorial ink illustration of a fountain pen across a page with struck-through words rewritten in the margin, the nib in ember orange

Key takeaways

  • Act on a selection, not the whole document. Small, specific rewrites are cheaper, faster and easier to trust.
  • Show every suggestion as a change to accept or reject. Never let AI overwrite text silently.
  • Put a daily limit per user on the server before you share the app; every AI call costs money.

This prompt builds an AI writing assistant that works like a good editor: you write in a clean document, select a sentence or paragraph, pick an action (shorten, make friendlier, more formal, fix grammar, or your own instruction), and get a suggestion shown as a tracked change you can accept or reject. A saved voice profile keeps suggestions sounding like you. Paste the brief into Startbase, then read on for why it is shaped this way and what to ask next.

The brief

Build an AI writing assistant web app with a calm, distraction-free editor. Use Startbase Cloud for sign-in (email and password), data, and the App AI gateway for text generation. Data: documents (owner, title, content, updated_at), document_versions (document, content, created_at, reason: manual save or accepted suggestion), voice_profiles (owner, name, description of tone, words to avoid, up to three example paragraphs), and ai_requests (user, document, action, input characters, output characters, created_at). Editor: rich text with headings, bold, italics and lists, autosave every few seconds. When I select text, a small toolbar offers: Shorten, Expand, Friendlier, More formal, Fix grammar and spelling, and Custom (I type an instruction). The server sends only the selected text, the paragraph before and after for context, the action, and my active voice profile, and asks for the rewrite only. The suggestion appears inline as a tracked change (old text struck through, new text highlighted) with Accept, Reject and Try again. Accepting saves a version. A sidebar lists versions with restore. Limits: 50 AI actions per user per day, checked on the server before calling the model, with a friendly message when reached; selections over 4,000 characters are refused with a hint to select less. Out of scope: generating whole documents from a topic, real-time co-editing, plagiarism checks, and browser extensions.

Why it is shaped this way

Writing tools that generate whole drafts from a topic produce text that sounds like everyone else's. Tools that improve the writer's own text keep the writer's voice and earn trust one sentence at a time. That choice drives the whole brief.

  • Selection-based actions: a rewrite of one paragraph is a small request, fast to return and cheap. It is also easy to judge: you can see in two seconds whether it is better.
  • Context of one paragraph before and after: without it, rewrites break the flow (repeated words, lost references like "this approach"). With the whole document, every request gets expensive. One paragraph either side is the usual balance.
  • "Asks for the rewrite only": otherwise models reply "Sure! Here is a friendlier version:" and that preamble ends up in your document. Say it in the brief and the server prompt asks for text only.
  • Tracked changes, never silent overwrites: seeing the old text struck through makes the change reviewable and reversible. It is the single feature that makes people comfortable letting AI near their writing.
  • A voice profile with examples: "friendly but direct" means different things to different people. Two or three paragraphs you actually wrote are the clearest instruction you can give a model.
  • ai_requests table and a daily limit: this is your cost control. The App AI gateway in Startbase Cloud lets your app call text models without API keys of its own, and text generation is billed as runtime usage, so the limit and a runtime cap in Settings protect your balance.
  • Versions on every accepted suggestion: undo inside the editor is not enough when you notice a bad change an hour later.

Three follow-ups, in this order

  1. 01"Add a Review document action: send the document in chunks and return a list of up to ten specific issues (unclear sentence, repeated word, passive voice where active is clearer), each linked to its location, with a Fix button that opens the normal suggestion flow for that passage."
  2. 02"Let me save my own custom actions with a name and an instruction, like 'Make this sound like a product update email', and show them in the toolbar."
  3. 03"Add a usage page showing my AI actions today and this month, and for me as admin, total actions per day across all users."

The review action is the first feature that looks at the whole document, and it does so by listing problems rather than rewriting, which keeps you in charge. Custom actions turn the tool into your tool: people repeat the same instructions daily. The usage page is the one you will need the first time a bill surprises you.

Two variations

  • A team version with a shared style guide: workspaces with members; one voice profile per workspace edited by admins, plus a banned words list (product names written wrong, phrases legal does not allow) checked without AI on every save and highlighted inline. Free, instant checks for the rules you can write down; AI for the rest.
  • A focused assistant for one kind of writing: for example, replies to customer reviews. The input is the review and a star rating; actions are Thank, Apologize and fix, and Invite back; the voice profile includes your business details. Narrow tools like this are easier to explain and sell than a general editor.

What goes wrong, and the prompt to fix it

  • Suggestions lose formatting. Bold words and links vanish after a rewrite. Ask: "Send the selection with its formatting marked up, ask for the rewrite in the same markup, and keep links and bold intact in the suggestion."
  • The suggestion includes chatter. "Here is a shorter version:" appears in the text. Ask: "Instruct the model to return only the rewritten text, and strip any leading line that introduces the answer before showing it."
  • Rewrites change the meaning. Shorten drops a key number or condition. Ask: "In the prompt for every action, require that facts, numbers, names and conditions are kept unless the action is Custom and says otherwise."
  • Accepting a suggestion jumps the cursor or scrolls away. Ask: "After Accept or Reject, keep the scroll position and put the cursor at the end of the changed text."
  • Someone burns through the budget. If the limit is checked in the browser, it can be skipped. Ask: "Check the daily limit inside the server function before calling the model, count failed calls too, and return a clear limit-reached error."

Tip

Keep a test document of ten tricky paragraphs (a list, a quote, a sentence with numbers, a paragraph with a link) and run every action on it after each change to the prompts. Writing quality regressions are easy to miss without a fixed test set.

Privacy and cost notes

People paste private things into writing tools: contracts, performance reviews, medical letters. Say in your privacy policy that text is sent to an AI provider to generate suggestions and that documents are stored in your database. Startbase Cloud has a switch to share your app's AI logs with the agent while debugging; those logs can include what your users wrote, so leave it off unless you need it.

For costs, the ai_requests table tells you average characters per action, which is the number you need to price a paid tier. For a broader look at templates, editing patterns and pricing, read how to build an AI writing tool. Why the model call must happen on the server is explained in serverless and edge functions explained, the AI docs cover the gateway and its billing, and what an AI app costs helps you plan.

Frequently asked questions

How do AI writing assistants work?

The app sends your selected text, some surrounding context and an instruction to a language model from its server, and shows the result as a suggestion. Good ones keep you in control with accept and reject, and limit how much text each request sends.

Do I need my own AI API key to build one?

Not on Startbase Cloud. The App AI gateway lets your app call text models without its own keys, billed as runtime usage. You can still set per-user limits and a runtime cap to control costs.

How do I make AI suggestions sound like me?

Give the assistant a voice profile: a short description of your tone, words to avoid, and two or three paragraphs you actually wrote. Examples steer style far better than adjectives.

On this page

  • The brief
  • Why it is shaped this way
  • Three follow-ups, in this order
  • Two variations
  • What goes wrong, and the prompt to fix it
  • Privacy and cost notes

Keep reading

More in Prompt library
Editorial ink illustration of an open seed packet beside a wooden hoe and a watering can, one sprouted seed in ember orange
Prompt libraryNovember 22, 2026

A Prompt for a Cozy Farming Game

Paste this brief to get a calm, playable farm on the first build: four crops with real numbers, an eight-minute day, two seasons and controls that work under a thumb.

7 min read
Editorial ink illustration of an iron dungeon key, a die and a skull candle holder, the candle flame in ember orange
Prompt libraryNovember 22, 2026

A Prompt for a Roguelite Dungeon Crawler

One brief for a top-down roguelite that is fun on the first build: a dodge with real frame values, enemies that telegraph, relics that change runs and a hub that keeps progress after death.

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.