
A visitor asks a website assistant, ‘Is my appointment confirmed for Thursday?’ If the assistant can only explain how to book, a confident ‘yes’ may leave someone waiting for a meeting that does not exist. Decide what the assistant can explain, which information it can use and where a person or booking system must take over.
A useful conversation may last only two messages: the visitor finds the right service and knows what to prepare for the team. Design for that outcome. Make the use of AI clear, use approved information, and reserve receipts and confirmations for the system that actually records a request.
Start with a narrow, useful job description
List the questions the assistant should help answer. A digital studio might include service scope, preparation of a website project description, portfolio requirements and directions to an enquiry form. Define the exclusions with equal care. The assistant should not invent prices, vacancies, salary levels, legal eligibility or delivery commitments that have not been approved. If the business offers several services, the assistant can explain their differences without pretending to provide specialist advice on every related subject.
Write down what a successful interaction looks like. It might help a visitor identify the relevant service and prepare three useful pieces of information for the team. That is a different objective from maximising chat length or keeping everyone engaged indefinitely. Identify when the assistant should acknowledge uncertainty or direct the person to a human contact. A narrow role is not a weakness. It gives the system a clearer basis for answering responsibly and makes testing more meaningful than asking whether the chatbot seems generally intelligent.
Prepare company knowledge as an approved source
Gather the public facts the assistant may use: service descriptions, published contact information, process explanations and reviewed conditions. Distinguish those facts from marketing aspirations and outdated pages. Do not assume that every sentence on an old website is suitable for automatic repetition. Inconsistent addresses, unsupported testimonials and obsolete packages should be resolved before they become part of the assistant’s knowledge. Assign someone to approve and maintain the material.
Keep the source bounded and relevant. Sending the entire website, private database or application archive to a model is rarely necessary for a simple service assistant. Use only the information needed for the question and the agreed conversation context. Record where important facts came from so that an editor can correct them. If the assistant relies on public website content, explain that this is not independent verification of company registration, employment availability or regulatory approval. A knowledge source can be useful without being authoritative for every possible claim.
Distinguish explanations from business actions
A sentence in a chat should not create a contract, submit a form or change someone’s record. If the site supports a real transaction, show the proposed action, check it on the server and ask the visitor to confirm. The assistant may explain what a field means, but the receipt should come from the system that saved the request. Do not display an acceptance message for a form that was merely discussed.
For a simple informational assistant, the safest boundary may be to provide no write-capable tools at all. The person moves from conversation to a normal, reviewable form. If tools are introduced later, authorise each operation independently and restrict the arguments the model can supply. Do not give a model broad administrative access because it can describe an action convincingly. Consequential workflows need deliberate product design, permission checks, auditability and recovery, not only a prompt asking the model to be careful.
Explain data use before the first message
Before the first message, tell the visitor that the replies come from AI. Explain what text, including any recent conversation, may go to an outside provider. Link to the privacy notice for the service you actually run. If consent is required, obtain it before transmitting the message, not after a generic ‘continue’ button has already sent it.
Warn against sending passwords, payment-card details, identity documents or unnecessary sensitive information. The interface should not actively request such material for a general service conversation. Recognise that a warning does not prevent someone from typing private information voluntarily. Define how support and deletion requests will be handled in that situation. Review provider terms, account settings and applicable obligations rather than assuming all paid and free service tiers process data in the same way. A generated privacy paragraph cannot substitute for that review.
Keep credentials and private records outside the browser
Call the model provider from the server and store credentials through an appropriate secret-management mechanism. A key placed in JavaScript or a public configuration file can be copied by visitors. An obscured value is not protected merely because it is difficult to notice. Use separate credentials for different environments and restrict them through the provider’s available controls. Do not include secrets in installation archives, screenshots, support messages or ordinary source-control history.
If a credential has been exposed, revoke or rotate it through the provider. Deleting the visible message does not make the old key safe again. Keep private account data out of prompts unless the product has an explicit, necessary and reviewed reason to include it. A visitor asking about recruitment services does not require the model to receive another person’s CV or an internal employer note. Data minimisation is more reliable than relying on a prompt to tell the model not to reveal information it should never have received.
Treat prompts and retrieved text as untrusted input
Visitors may ask the assistant to ignore its instructions, reveal hidden information or claim authority it does not have. Retrieved website text can also contain material that should not become an instruction. A system prompt can establish boundaries, but it is not a complete security mechanism. Design the surrounding application so that a misleading model response cannot automatically expose private data or execute an administrative action.
Escape or safely render output in the browser. Do not execute HTML, scripts or arbitrary links simply because the provider returned them. Apply sensible limits to input length, output size and request duration. Keep tool access absent or narrowly constrained. Test adversarial requests as part of the review, but do not turn a few successful tests into a claim that prompt injection has been eliminated. The most important protection is often architectural: the assistant cannot disclose or change a resource that the application never makes available to it.
Who can read or delete a conversation?
Decide how a conversation belongs to a visitor. An authenticated account can provide a stable owner across devices, while a guest session typically depends on a browser identifier. These are different experiences and should be explained. A guest who clears cookies or changes browsers may lose access to the previous history. Do not imply that a browser-based history is automatically recoverable through an email address if no such recovery mechanism exists.
Enforce ownership on the server for every history read, message and deletion request. Do not trust a client-supplied user identifier as proof of access. Test with two accounts and two independent guest sessions. Decide whether languages have separate histories and whether deleting history removes one language or all languages for the owner. Account transitions need consideration too: logging in should not silently expose a previous visitor’s guest conversation on a shared device. These are ordinary access-control requirements, not optional enhancements to the chat interface.
Give retention a precise meaning
A statement such as “history is kept for thirty days” is incomplete without a starting point. The policy might measure from each message, from the last activity or from account closure. Choose the rule and implement it consistently. If each turn expires after thirty days, a new message should not silently extend the lifetime of every earlier message. Explain the behaviour in both the interface and the operational documentation.
Separate access expiry from physical deletion. The application can exclude expired records immediately while a scheduled task deletes them in batches. Monitor that task so that operational failure does not become indefinite retention. Backups and provider logs may follow different rules; do not claim that deleting the local conversation erases every copy elsewhere. Encryption at rest can help protect stored messages, but a server that holds the decryption material is not providing end-to-end encryption. Accurate terminology is part of a trustworthy privacy explanation.
Make waiting and failure understandable
Show a clear waiting state when a message is being processed and prevent accidental repeated submission while the request is active. The status should communicate progress without pretending to reveal the model’s internal reasoning. A phrase such as “thinking” is an interface convention, not a promise that the answer is being independently verified. Keep focus usable and allow the dialog to close without trapping the visitor. Respect both text direction and accessibility requirements.
Handle timeouts, provider errors and blocked responses explicitly. Do not replace an unavailable response with a fabricated successful answer. Preserve enough of the visitor’s input to allow a sensible retry, while explaining when the result is uncertain. If a request is retried after a network interruption, use an appropriate request identifier to reduce duplicate processing. Test the difference between a failed connection, a completed provider response and a completed local storage operation. Those events are not interchangeable, and the interface should not report them as though they were.
Limit usage and monitor the bill separately
Set sensible limits per request, owner and time period. Consider both accidental repeated use and deliberate abuse. A global daily cap can reduce exposure, but it should be coordinated with account-level limits so that rejected requests do not unnecessarily consume the whole site’s allowance. Implement concurrency controls where the storage and hosting environment support them, and test the failure paths. Browser-only limits are not sufficient because a client can bypass them.
Review provider-side budgets, quotas and billing alerts separately. A limit on request count is not a guarantee of a particular cost, because model pricing and request size can vary. Define whether failed requests consume local allowance and explain the operational implications to administrators. Rate limits based on IP can affect several legitimate visitors behind one shared connection, so they are not a perfect identity mechanism. Monitor usage without collecting unnecessary message content in general-purpose logs or analytics systems.
Test languages and the full request journey
Evaluate the assistant in the languages the website actually supports. Check direction, mixed-script identifiers, long labels, timestamps and error messages. A technically valid response can still contain awkward or misleading terminology. Review the model’s handling of uncertainty and company facts, not only its grammar. Where a language is less reliable, provide a clear route to human assistance rather than hiding the problem behind fluent presentation.
Test the complete journey from consent through conversation, history retrieval, explicit request confirmation and deletion. Include unavailable-provider scenarios and disabled-feature states. Separate simulated integration tests from real provider tests in the report. A local adapter can verify the application’s behaviour around a controlled response, but it cannot prove that a production key, model, account or billing arrangement works. Document that distinction so that a polished demonstration is not mistaken for a completed live integration.
Operate the assistant as a maintained service
Assign ownership for knowledge updates, provider changes, incident response and user support. Review representative interactions through a privacy-conscious process and look for recurring misunderstandings. Correct the underlying content or interface rather than assuming every problem can be solved by adding another sentence to the prompt. Keep a straightforward way to disable new messages while preserving appropriate access to existing records and handling outstanding requests.
Give the assistant a job it can do reliably: explain a service, help someone prepare their brief and point them towards the team. Keep private records out of its reach, make the retention period clear, and say when a reply could not be obtained. A plain admission that no booking has been made is better service than a convincing but invented confirmation.
Turn your questions into a clear project brief.
Tell us your goals and constraints. We can discuss scope and possible next steps.




Join the discussion