Building with AILesson 49 of 80

Module 5 · Conversation, memory and the interface

AI inside the existing screen: ghost text, drafts and the acceptance rate

In this lesson

  • 8 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 7 of 9 in this chapter

This chapter’s goalBuild the stateful, user-facing half of an AI feature: a conversation store with a trimming and compaction policy, cross-session memory a user can inspect and delete, clarifying questions only where they pay for themselves, a chat or inline interface whose controls match what the model can and cannot do, a voice path with a stated latency budget, an upload pipeline with limits, and feedback capture whose numbers you can interpret rather than merely collect.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
What an inline feature can measure, per 100 suggestionsSuggestions shown100Accepted with Tab27Accepted and left unedited18Thumbs clicked, either way2per 100 suggestions shownAcceptance and edit distance are recorded automatically for every suggestion, so the coverage iscomplete. The buttons cover two in a hundred, clicked by people who are not a sample of anyone.Published acceptance for code completion sits around a fifth to a third; far above that, check peopleare reading before they press Tab.
Acceptance and edit distance are recorded automatically for every suggestion, so the coverage is complete. The buttons cover two in a hundred, clicked by people who are not a sample of anyone. Published acceptance for code completion sits around a fifth to a third; far above that, check people are reading before they press Tab.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Most AI features should not be a chat

The user is writing an email, filling in a form, reading a thread, fixing a bug. A chat box in the corner asks them to leave that context, describe it in words, and carry the answer back. The features people actually adopt at scale are the ones that appear inside the thing they were doing: grey text ahead of the cursor, a proposed reply under a message, a draft that lands in the field, a summary at the top of a long thread, a “fix this” beside a validation error. The model proposes; the person accepts, edits or ignores. That division is the whole design.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘AI inside the existing screen: ghost text, drafts and the acceptance rate’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/ai-inside-the-existing-ui (Accessed: 29 November 2026).