You can picture it already: a box inside your app where people ask a question in their own words and get a useful reply. Before anyone builds that box, you need to decide what it is for, what it may say and do, and what happens when it’s wrong. Those choices matter more than which AI provider you pick.
Adding a chat feature comes down to eight decisions, roughly in this order: confirm chat beats buttons, forms or search for the job; give it one job with a written scope; write its standing instructions; connect it to your app’s own content; design the chat screen, with a clear AI label; decide what it remembers; plan the handoff to a person; and plan its failures. Put those on one page and you have a chat plan that a no-code platform or a developer can build from.
If you’re comfortable with chat assistants but have never made software yourself, this is written for you. It fits into how an AI app comes together from idea to prototype and follows deciding what your app should do automatically. It covers design decisions only; the technical mechanics belong to BuildAIQ’s planned APIs and Developer Foundations guides. For a chat widget on a site-builder website, see putting an AI feature on a website without coding; BuildAIQ’s guide on building a basic AI chatbot without coding covers no-code bot builders.
A few terms first. A chat feature is the part of an app where a user types (or speaks) a message and gets a reply, turn by turn. Replies come from an AI model, software that produces text, usually run by an AI provider, the company operating it. Standing instructions (often called a system prompt) are text you write once that shapes every reply. Grounding means giving the model relevant information from your own content when it answers. Tokens are the units providers use to meter and bill the text a model reads and writes, and a model’s context window is the most tokens it can handle in one request, input and output combined [1].
TL;DR
- Use chat for open-ended questions that existing screens answer poorly; keep buttons, forms, search and filters for tasks where you already know what the user needs to provide.
- Give the chat one job and a written list of what it won’t do, and keep anything that changes data or spends money behind a user’s explicit approval.
- Instructions steer the model but don’t enforce rules; permissions and secrets belong outside the model.
- Answering from your own content reduces wrong answers without preventing them, so show sources and plan for misses.
- Say plainly that it’s AI, decide what conversation history you keep, and give people a working route to a person and a useful next step whenever the chat fails.
Step 1: Check That Chat Is the Right Interface
Nielsen Norman Group (NN/g), a user-experience research firm, published a qualitative study in March 2026 in which 9 people, all users of general-purpose AI chatbots, each tried the chat features on two or three websites [2]. Participants said they rarely used site chatbots, often didn’t notice them, and struggled to see what they added beyond search, filters or AI tools they already used [2]. For finding products or information, chatting was often slower and more effortful than the site’s ordinary features, and replies carried less information and were harder to compare [2]. Chat was most valuable when it behaved like a knowledgeable assistant, asking clarifying questions and tailoring advice [2]. NN/g’s advice: start from problems users can’t already solve, and don’t rebuild search or browsing as a conversation [2].
A larger study in a very different setting agrees only that chat’s benefits depend on the task. In a May 2026 preprint (not yet peer reviewed), Figliè and colleagues had 134 managers from manufacturing and related industries complete decision tasks with either an AI chat interface or a dashboard [3]. Unlike in NN/g’s study, chat was faster on the simpler tasks, and it lowered perceived mental effort, but those advantages faded as tasks grew more complex, and neither interface was consistently more accurate [3]. The authors suggest combining chat with visual overviews and checkable evidence rather than replacing one with the other [3]. Both studies are small or narrow: signals, not rules.
From that evidence, a practical test (BuildAIQ’s guidance, not a finding from either study):
- Buttons or a form when you know in advance what the user must provide: a date, a plant type, a yes or no.
- Search, filters or a list when people need to browse or compare many options.
- Chat for open-ended questions specific to the user’s situation, with answers spread across several pages.
- Both when chat narrows a question and a regular screen shows the result.
If nothing needs open-ended language, see when an app doesn't need AI; otherwise add chat to your feature list.
The running example (hypothetical, describing no real product or result). Picture a gardening-advice app with plant-care guides, a watering calendar and each user’s list of saved plants. Its pages answer “How do I care for basil?” well, but not “My basil sits on a north-facing windowsill and its lower leaves are yellowing; what should I check first?”, because that answer is spread across several guides. That second kind of question is the chat’s job.
Step 2: Give the Chat One Job and a Written Scope
Write three short lists: what the chat answers, what it declines (and where it sends people instead), and what it never does. They become your instructions and, later, your test questions.
Separate answering from acting. A chat that only replies carries less risk than one that can change data, send messages or spend money. OWASP, a security community, publishes a Top 10 for LLM Applications, a community guide to the main risks in apps built on language models; its 2026 edition, the latest, came out in August 2026 [4]. Under Excessive Agency, that edition warns against giving a model more functions or permissions than it needs and recommends that a person approve high-impact actions first [4]. For deciding which actions to automate, suggest or leave to the user, return to what your app should do automatically; chat that plans and carries out multi-step tasks on its own is agent territory, covered in BuildAIQ’s Building AI Agents area.
For the hypothetical gardening app:
- Answers: plant care drawn from the app’s guides, questions about the user’s own saved plants, and how to use the app’s features.
- Declines and redirects: diagnosing a problem from a photo, product recommendations, and anything about whether a plant or garden chemical is safe for children, pets or eating, where it points to the relevant guide page and suggests a qualified local source.
- Never does on its own: edits the watering calendar. It can propose a reminder, which the user confirms with a button.
Step 3: Write the Standing Instructions
OpenAI’s documentation says instructions set the model’s behavior, tone and goals and take priority over what users type, and suggests they cover the assistant’s purpose, its rules (including what it must never do), examples and supporting context [5]. Google’s Gemini documentation likewise describes system instructions as a way to guide model behavior [6]. A plain-language sketch for the gardening chat:
- You help users of a gardening app with plant care, their saved plants and the app’s features.
- Base answers on the plant-care guides provided with each question, and name the guide you used.
- If the guides don’t cover the question, say so and suggest the closest guide or the “Ask the team” form.
- For questions about safety for children, pets or eating, don’t give a verdict; point to the safety section and suggest a qualified local source.
- Keep replies short and practical, and ask one clarifying question when the plant or conditions aren’t clear.
- If asked, say you are an AI assistant, not a person.
That list steers the model; it doesn’t lock it. OWASP’s 2026 edition, which now covers this under “Hidden Context Exposure,” says nothing in the instructions should be considered secret and credentials shouldn’t be embedded there [4]. It adds that critical controls, such as checks on who may see or do what, must not be delegated to the model, through the instructions or any other way, and should be enforced in a predictable, auditable way outside it [4]. When someone’s text pushes the model to act against your design, that’s prompt injection: direct when a user types it, indirect when it arrives hidden in content the model reads, such as a web page or document [4]. The same edition says no reliable way to prevent it exists today [4]. Defenses belong in protecting user information in an AI app.
Because the same message can get different replies, OpenAI recommends tests that measure how instructions perform, rerun whenever the instructions or model version change [5]. Your scope lists are a ready-made start.
Step 4: Connect It to Your App’s Own Content
A model doesn’t know your app’s guides or your users’ data unless the app supplies them. Google Cloud’s documentation describes grounding as connecting a model’s output to verifiable sources, which it says reduces the chances of invented content and can supply links to those sources [7]. Microsoft’s documentation on retrieval-augmented generation (RAG), a common grounding method, notes practical hurdles such as vague conversational questions and limits on how much text a model accepts [8]. How content reaches the model is explained in what makes an app AI-powered.
Two rules follow:
- Limit what each user’s chat can see. Microsoft notes that opening private content to a model requires access control, so that users only retrieve content they’re authorized to see [8]. In the gardening app, one person’s chat may read the public guides and that person’s own saved plants, never anyone else’s.
- Show where answers come from. The 2025 edition of OWASP’s list recommended grounding, encouraging users to cross-check, and labeling AI-generated content with its limits [9]. Linking the guide behind each answer lets users check.
Grounding is not a guarantee. OWASP’s 2026 edition describes misinformation as incorrect or misleading output that appears credible enough to influence a decision, and says the core risk is that it’s trusted and acted on [4]. Plan for wrong answers using handling incorrect or unreliable AI outputs.
Step 5: Design the Chat Screen and Say It’s AI
Opening message. NN/g recommends that a chatbot say clearly and briefly what it can help with when it opens, because vague greetings leave users guessing [10]. Google’s People + AI Guidebook advises explaining what an AI product can do, what it can’t, how it may change and how to improve it [11].
The AI label. Google’s guidebook notes that people who mistake an AI for a human may share more than they otherwise would or rely on it more than they should [11]. It also cautions that a chat calling itself “I” invites expectations of near-perfect understanding [11]. In the European Union, the AI Act’s Article 50(1) obliges providers to design AI systems that interact directly with people so those people are told they’re dealing with an AI system, unless that’s obvious [12]. It has applied since August 2, 2026, and the information must be clear and given at the first interaction at the latest [12]. The July 2026 amending regulation changed other parts of Article 50 but, on our reading of EUR-Lex on November 22, 2026, left paragraph 1 as it was [13]. Whether it applies to you depends on your role and whether you serve people in the EU; take qualified advice before a real launch.
Help people start. NN/g recommends offering suggested questions as tappable buttons rather than text, which saves typing and shows what the chat is for [10]. If the chat knows which page or item the user is viewing, say so; NN/g observed that users don’t assume it does [10]. On a gardening app’s basil page, buttons such as “Why are the lower leaves yellow?” do both jobs.
Readable replies. When replies appear word by word as they’re generated (streaming), NN/g advises keeping the reader at the start of a long reply rather than jumping to its end, and letting people save or share useful answers [10].
Accessibility. The W3C’s ARIA specification, which describes page elements to assistive technology such as screen readers, names chat logs as an example of a “log” region, where new messages are added in order at the end [14]. The W3C’s explanation of the status-message rule in the Web Content Accessibility Guidelines (WCAG) 2.2 says brief updates such as “Searching…” should reach screen-reader users without moving their focus [15]; a “thinking” indicator in a chat is that kind of update. NN/g adds that voice input matters for people who can’t type easily [10]. Ask your builder to confirm each.
Step 6: Decide What the Chat Remembers
The model does not remember a conversation by itself. OpenAI’s documentation says each request is independent and stateless, and that multi-turn chat works by sending the earlier messages along with each new one, or by using its tools that keep the thread for you [1]. Google’s Gemini documentation describes the same choice: its service can manage the conversation history, or the app can keep the history and resend it [6].
Three consequences matter for your plan:
- Length limits. OpenAI warns that adding more turns or context pushes against the model’s context window, which can cut replies short [1]. Decide what happens in very long conversations, such as summarizing older turns or offering a fresh start.
- Cost. OpenAI says earlier messages in a chained conversation are billed again as input [1], so long histories cost more per reply. Estimating that is covered in the running costs of an AI app.
- Storage. Providers may keep conversation data unless you change a setting. As of November 22, 2026, OpenAI’s conversation guide said individual responses are saved for 30 days by default unless storage is switched off, while threads kept with its conversation tool aren’t subject to that 30-day limit [1]. Google’s said its service keeps conversation state when the app chains turns through it, unless the app opts out of server-side storage [6]. Read your own provider’s current terms.
Then decide on purpose whether history lasts for the session or is saved, who can see it, how long you keep it and how users delete it. The gardening app keeps a session’s history so follow-ups make sense, and saves nothing else unless the user asks. Retention, consent and deletion are covered in protecting user information in an AI app.
Step 7: Plan the Handoff to a Person
In a June 2023 report on US consumer finance, the Consumer Financial Protection Bureau described chatbots that led customers into loops of repetitive, unhelpful answers with no route to a human representative [16]. NN/g recommends a single chat entry point that clearly identifies itself, handles what it can and passes questions to humans when it can’t [10].
Decide three things:
- Triggers: the user asks for a person, repeats a question, seems upset, or raises something on the “declines” list.
- What goes along: a short summary. Google’s guidebook makes a related point about users taking over from a failed AI feature: they need the information to pick up where it left off [17]; applying that to staff is our extension.
- Who answers, and when: a named role and a response time you can keep, shown to the user.
In the gardening app, the handoff is an “Ask the team” form pre-filled with the question and a short summary, with the reply time stated on the form.
Step 8: Plan What Happens When It Fails
Google’s guidebook advises against dead ends when an AI feature fails, recommends giving users a way forward, including taking over themselves, and says to design knowing some people will deliberately misuse the product [11, 17]. It also notes that the same error matters more in some situations than others, listing health, safety and financial decisions among the higher-stakes ones [17]. Write a response for each kind of failure:
| What goes wrong | What the chat does (gardening example) |
|---|---|
| The guides don’t cover the question | Says so, suggests the nearest guide, offers “Ask the team” |
| The answer may be wrong | Shows the source guide and a one-tap “This didn’t help” button |
| An off-topic or manipulative message | Declines briefly and restates what it can help with |
| A higher-stakes safety question | Gives no verdict; points to the safety section and a qualified source |
| The AI service is busy or unavailable | Shows a plain message, keeps the user’s text, links the guides |
OpenAI’s error documentation lists limits on request rate and spending, and a temporarily overloaded model, among the errors an app can receive [18]. Google’s Gemini troubleshooting guide names similar rate-limit and unavailability errors and recommends retrying after increasing waits [19]. You decide what the user sees during retries. Encourage users to check important answers, using a routine like the one in checking whether an AI answer is correct.
What You Have Now
You now have a chat plan: for the hypothetical gardening app, that is the reason for chat in Step 1, the scope lists in Step 2, the six rules in Step 3, the content limits, screen, memory and handoff choices in Steps 4 to 7, and the failure table in Step 8, plus test questions drawn from the scope lists. Before anyone outside your team uses the built feature, check that:
- the opening message says what the chat does and that it’s AI;
- out-of-scope questions get a polite decline and a useful next step;
- each answer links to the content it came from;
- one user’s chat can’t reach another user’s data;
- asking for a person reaches someone who replies in the stated time;
- a provider outage shows a plain message and loses nothing the user typed.
The full pre-launch list, including provider usage policies, is in what to check before publishing an AI app. The next step is to watch real people use it: testing an AI app with real users shows how.
Where the Evidence Is Thin
Our research turned up no study of chat features in small or first-time builders’ apps, and nothing on how often handoffs to a person actually succeed. The evidence here is one 9-person qualitative study of retail and information websites [2], one preprint on industrial decision tasks [3], design guidance from NN/g and Google [10, 11], and security, accessibility and vendor documentation [4, 14, 1]. The eight-step order, the instruction sketch, the failure table and the checklist are BuildAIQ’s editorial guidance, not findings from those sources.
Practical Takeaways
- Name a question your current screens answer poorly; if you can’t, improve search, filters or forms instead.
- Write the answers, declines and never-does lists first, and reuse them as test questions.
- Keep secrets and permission checks out of the instructions and enforce them in the app.
- Restrict the chat to content each user may see, and link the source of every answer.
- Choose session-only or saved history deliberately, and tell users how to delete it.
- Give every failure, including a provider outage, a next step that doesn’t depend on the chat.
Sources
- Conversation state | OpenAI API. OpenAI, accessed 2026-11-22.
- What Is Your Site's AI Chatbot for? Users Can't Tell. Nielsen Norman Group, 2026-03-20, accessed 2026-11-22.
- Neither Replacement nor Panacea: Comparing LLM-Based Conversational and Graphical Decision Support in Industrial Tasks. arXiv (University of Pisa authors), 2026-05-29, accessed 2026-11-22.
- OWASP GenAI LLM Top 10 2026 (OWASP Top 10 for LLM Applications 2026). OWASP Gen AI Security Project, 2026-08-03, accessed 2026-11-22.
- Prompt engineering | OpenAI API. OpenAI, accessed 2026-11-22.
- Text generation (Gemini API documentation). Google, accessed 2026-11-22.
- Grounding overview | Gemini Enterprise Agent Platform. Google Cloud, 2026-11-20, accessed 2026-11-22.
- Retrieval-augmented generation (RAG) in Foundry IQ (Azure AI Search). Microsoft Learn, 2026-11-09, accessed 2026-11-22.
- LLM09:2025 Misinformation. OWASP Gen AI Security Project, accessed 2026-11-22.
- 10 Guidelines for Designing Your Site’s AI Chatbots. Nielsen Norman Group, 2026-04-24, accessed 2026-11-22.
- Mental Models (People + AI Guidebook). Google People + AI Research (PAIR), accessed 2026-11-22.
- Regulation (EU) 2024/1689 of the European Parliament and of the Council (Artificial Intelligence Act). EUR-Lex (Publications Office of the European Union), 2024-07-12, accessed 2026-11-22.
- Regulation (EU) 2026/1744 of the European Parliament and of the Council of 8 July 2026 amending Regulations (EU) 2024/1689, (EU) 2018/1139 and (EU) 2023/1230 as regards the simplification of the implementation of harmonised rules on artificial intelligence (Digital Omnibus on AI). EUR-Lex (Publications Office of the European Union), 2026-07-24, accessed 2026-11-22.
- Accessible Rich Internet Applications (WAI-ARIA) 1.2. W3C, 2023-06-06, accessed 2026-11-22.
- Understanding Success Criterion 4.1.3: Status Messages. W3C Web Accessibility Initiative, 2026-10-04, accessed 2026-11-22.
- Chatbots in consumer finance (Issue spotlight). Consumer Financial Protection Bureau (US), 2023-06, accessed 2026-11-22.
- Errors + Graceful Failure (People + AI Guidebook). Google People + AI Research (PAIR), accessed 2026-11-22.
- Error codes | OpenAI API. OpenAI, accessed 2026-11-22.
- Troubleshooting guide (Gemini API documentation). Google, accessed 2026-11-22.
