Guide / Building a better chatbot
Which chatbot feature should you build next?
Choose an improvement that helps someone finish a real task. Compare seven features for an existing chat app, from composing a message to checking the answer.
We build inline autocomplete for chatbot message boxes, so this guide reflects that product perspective. Autocomplete is one option among several. A document assistant, writing copilot and general chatbot can need different improvements even when their interfaces look similar.
Start with the moment that feels difficult
Watch a person attempt a representative task in your chatbot. Notice where they stop: deciding what to ask, writing the request, supplying context, correcting a mistake or judging the response. Choose a feature that addresses that specific moment.
Someone staring at an empty composer may need a useful starting example. Someone already writing a detailed request may benefit from inline completion. Someone checking a claim needs traceable evidence. Adding all three at once makes it harder to learn which change helped.
First check the existing essentials: a draft should survive an error, the user should understand whether a response is still arriving, and sending or stopping a message should behave predictably. A new feature cannot compensate for losing the user's work.
Seven chatbot features, compared
Effort below describes the kind of work involved, not a delivery estimate. Your authentication, editor, model service and data access determine the actual scope.
| Feature | Who it helps and why | Effort and prerequisites | Tradeoff to check |
|---|---|---|---|
| Inline autocomplete | People composing detailed messages who already know their intent. Optional continuations can reduce typing. | Composer integration, authenticated backend and a prediction service; test keyboard and account changes. | Unwanted suggestions can distract. Preserve ordinary typing and assess whether the editor fits. |
| Suggested prompts | New users unsure what the chatbot can do. Concrete examples offer a starting point. | A relatively contained UI/content change for fixed examples; contextual suggestions add generation and evaluation work. | Generic examples can steer people toward the wrong tasks. Let users edit before sending. |
| Edit and retry | Users correcting instructions or recovering from an unsatisfactory response without starting over. | Conversation-state work: decide what happens to later messages, branches and in-flight responses. | Retries consume resources; unclear branching can make the visible history misleading. |
| Attachments | People whose task depends on a document or image that would be awkward to describe. | Upload, access control, extraction and model-context work; show what was successfully included. | A file being uploaded does not mean the model understood it. Explain unsupported formats and size limits. |
| Voice input | Users for whom speaking is easier than typing, when their surroundings permit it. | Microphone permissions, recording state and transcription; provide text review and a keyboard alternative. | Noise and transcription mistakes can change intent. Make recording and submission separate, visible actions. |
| Citations | Users who need to inspect the evidence behind an answer, especially in research or document tasks. | Retrieval and provenance work: associate claims with accessible source passages. | A source link alone does not establish support. Check whether it actually backs the adjacent claim. |
| Feedback | Users who need to flag a problem, and teams deciding what to improve. | Small controls plus a review process, useful categories and an intentional data-retention policy. | A thumbs-down leaves the cause unclear. Collect an optional reason without interrupting the task. |
Suggested prompts and inline autocomplete solve different problems
Suggested prompts are complete starting ideas displayed outside the draft. Inline autocomplete proposes a continuation after the user begins writing. Follow-up suggestions appear after an answer and help choose a next step. These interactions can coexist, but they need distinct labels and behavior.
Suggested prompts · before writing
What would you like to work on?
An example gives the user an idea to edit.
Inline autocomplete · while writing
Typed text continues into a gray suggestion. In Autocomplete, Tab accepts one word.
For a blank-state problem, begin with a few examples of tasks your product handles well. For a composition problem, evaluate predictive text using realistic unfinished messages and relevant conversation context. Avoid treating a search dropdown, code completion or assistant-generated reply as the same interaction.
Keep the user in control of wording. Accepting a suggestion should change the draft, not send it. Keyboard users must still be able to navigate, submit and edit; a suggestion service being unavailable should not prevent a normal conversation.
Match the feature to your product
A research or document assistant
If people cannot tell which files informed an answer, make attachment state and source passages clear first. If they understand the evidence but struggle to express a detailed question, test autocomplete in the composer. Do not make a completion appear to quote a document unless it actually does.
A writing or work copilot
Users may know the outcome but need to describe audience, tone and constraints. Editable task starters can introduce those details; autocomplete may help continue the request once writing begins. Keep edit-and-retry straightforward so users can correct an instruction without reconstructing the conversation.
A general-purpose chatbot
Start with a task your users repeatedly attempt rather than an exhaustive feature menu. If the main obstacle is an unclear answer, inspect answer quality and feedback before adding input assistance. If users compose long follow-ups, a supported textarea and existing login provide a practical place to evaluate autocomplete.
When Autocomplete by HyperWrite fits
Our service predicts continuations for the human user's draft. Your existing assistant model still produces replies. The SDK displays inline suggestions in an existing textarea, with one-word Tab acceptance.
The supported starting point is desktop English with React 18.2 or 19, or a native DOM textarea. Next.js requires a client-side composer and an authenticated server route. Rich-text/contenteditable editors, mobile keyboards and other languages need separate evaluation; do not replace a working editor simply to claim compatibility.
This is a hosted prediction service. It requires your app's verified login, a server-only key and approved frontend origins. Draft text and supplied conversation context leave the app for prediction. Review data handling and current pricing and eligibility before choosing it.
For implementation, use the existing agent integration guide or SDK documentation. The docs cover backend sessions, connecting the composer and checking the integration. Package installation prepares the work; it does not establish that suggestions are visible in your app.
Decide what success would look like before building
Write a short hypothesis tied to a task: “Users can explain a project update with less composition effort while preserving their intended meaning.” Choose a completion outcome and a few failure checks. More messages or accepted suggestions alone do not establish a better experience.
- Check the interaction. With synthetic text, confirm the visible feature works. For autocomplete, accept a word, keep typing, edit, send and switch conversations. Confirm failures leave normal input usable.
- Observe task completion. Ask whether people finish the intended task, correct unwanted text or abandon the draft. Record useful aggregate events; avoid retaining message content just to measure adoption.
- Compare fairly. For an experiment, define eligibility, assignment, follow-up and a stopping point in advance. Compare assigned groups, not only people who chose to accept suggestions.
- Review continued use. Separate initial curiosity from use on later days. Treat small samples as early evidence, and investigate friction before expanding the rollout.
Give your coding agent the user problem, actual composer, existing authentication and success checks. Ask it to assess fit before editing. If autocomplete fits, start with the maintained setup instructions and require a working interaction, not merely a successful install.