ArchitecturePublic Sector

A reference architecture for a citizen-facing government AI assistant

A citizen-facing assistant earns trust by answering only from official guidance, saying when it does not know, and passing people to a caseworker or an existing online service once a question becomes personal. This reference design covers the scope rules, the content and retrieval layers, handover, model hosting, accessibility and records, and how to test the assistant before and after launch.

Reviewed 8 min read

On this page
  1. What a government assistant should and should not do
  2. Reference architecture for a citizen-facing assistant
  3. Treating published guidance as the assistant's source of truth
  4. Handing a conversation over to a caseworker
  5. Model hosting options for a public-facing assistant
  6. Accessibility and inclusion requirements for a public chatbot
  7. Logging, retention and information requests for chatbot transcripts
  8. Testing a government assistant before and after launch
  9. Questions and answers
  10. Sources

What a government assistant should and should not do

Settle scope before choosing any technology. Each rule removes a class of failure that prompt tuning cannot fix.

  • If

    The question is about published rules, deadlines or how a service works.

    Then

    Answer from official guidance, quote the relevant passage and link to the page.

    Grounded, cited answers can be checked by the user and tested by the service team.

  • If

    The person wants to apply, pay, book or report something.

    Then

    Hand off to the existing online transaction rather than rebuilding it inside the chat.

    Transactions already have validation, identity checks and records that a chat would duplicate badly.

  • If

    The answer depends on the person's own circumstances, such as eligibility or the progress of their case.

    Then

    Explain the general rule, then route to the official eligibility checker or a caseworker with the conversation attached.

    The assistant has no authority to decide entitlement, and implying otherwise creates false expectations.

  • If

    A message suggests risk to someone's safety, abuse or a crisis.

    Then

    Show a fixed, pre-approved response with emergency and specialist contacts, and offer an immediate human route.

    Generated text is the wrong tool where wording has been agreed with safeguarding specialists.

Reference architecture for a citizen-facing assistant

Accessible channels01Dialogue and policy rules02Retrieval and citation03Structured lookups04Language model, onshore05Approved content store06Handover to caseworkers07Logs, tests and records08
  1. Accessible channels

    A chat component on the service's own pages that works with screen readers and keyboards, beside phone and in-person routes.

  2. Dialogue and policy rules

    Classifies each message and decides whether to answer, look something up, refuse or hand over.

  3. Retrieval and citation

    Finds passages in approved content and passes only those, with their links, to the model.

  4. Structured lookups

    Facts such as collection days or opening hours fetched from systems of record, never generated.

  5. Language model, onshore

    Writes the answer from retrieved passages, hosted to match the sensitivity of the data it sees.

  6. Approved content store

    Published guidance with owners, review dates and expiry, re-indexed whenever pages change.

  7. Handover to caseworkers

    Creates a case or callback with a conversation summary in the existing case system.

  8. Logs, tests and records

    Redacted transcripts, test results and wrong-answer reports, kept under the retention schedule.

Conceptual layers of a government assistant, from the channel the resident uses down to records. Components can be combined or bought; the responsibilities stay the same.

Treating published guidance as the assistant's source of truth

The assistant can only be as accurate as the content it retrieves. Index pages the organisation publishes and maintains, such as service guidance, policies, fees and forms, and leave out internal drafts, staff notes and forum posts. Each passage should carry its URL, review date and owning team, so a wrong answer can be traced to a page and corrected there.

When retrieval finds two pages that disagree, fix the content rather than telling the model which to prefer. Give seasonal guidance an expiry date, re-index on every publish, and send content owners a regular list of questions the assistant could not answer: those gaps usually show where the website itself is unclear.

Handing a conversation over to a caseworker

Asks about a ruleSearches guidancePassages and linksCited answerAsks about own caseCreates case + summaryQueued by priorityReplies with context01Resident02Assistant03Contentretrieval04Case system05Caseworker
  1. Resident

    Starts with a general question on the council or agency website.

  2. Assistant

    Answers general questions and recognises when one becomes personal.

  3. Content retrieval

    Returns passages and links from approved guidance only.

  4. Case system

    The existing system of record, where the request is logged and prioritised.

  5. Caseworker
  1. Resident to AssistantAsks about a rule
  2. Assistant to Content retrievalSearches guidance
  3. Content retrieval to AssistantPassages and links
  4. Assistant to ResidentCited answer
  5. Resident to AssistantAsks about own case
  6. Assistant to Case systemCreates case + summary
  7. Case system to CaseworkerQueued by priority
  8. Caseworker to ResidentReplies with context
Conceptual sequence for a general question that turns personal. The assistant never reads or changes decisions on the case.

Model hosting options for a public-facing assistant

ConsiderationCommercial model APIManaged model in an in-country cloud regionOpen-weight model on infrastructure you control
Where prompts are processedDepends on the provider's regions and terms; may be abroadIn the chosen national region, under the provider's termsWherever you host it, including onshore sovereign facilities
Who can see promptsThe provider, under its retention and abuse-monitoring termsThe cloud provider under contract; retention is usually configurableYour operators and their contracted suppliers only
Model updatesProvider-controlled; old versions retire on its timetableChosen from a catalogue, still subject to retirement datesYou decide when to change, and must patch and re-test yourself
Operating effortLowestModerateHighest: capacity, monitoring and security are yours
Usually fitsPrototypes over public content onlyMost information assistants that see incidental personal dataServices handling sensitive data or bound by strict sovereignty rules

Check the contract rather than the defaults: retention, training use and data location are negotiable with some providers and fixed with others.

Accessibility and inclusion requirements for a public chatbot

UK public sector websites and apps must meet WCAG 2.2 AA and publish an accessibility statement18; US federal agencies work to Section 5083 and EU public bodies to the Web Accessibility Directive4. A chat interface raises its own issues.

0 of 7 checked

Logging, retention and information requests for chatbot transcripts

Transcripts help with evaluation and complaints, but people type personal details into any text box. Redact identifiers at capture, keep raw transcripts apart from analytics, restrict access, and set retention in the organisation's records schedule rather than the supplier's defaults. Information held by a UK public authority, chat logs included, can be requested under the Freedom of Information Act 2000, so decide in advance how transcripts would be searched and which exemptions might apply6.

Tell people they are talking to an AI system. Article 50 of the EU AI Act requires systems that interact directly with people to make this clear unless it is obvious, and those duties have applied since 2 August 202657. In UK central government a public-facing assistant also needs an algorithmic transparency record9; the transparency and impact assessment guide explains what to publish, and the government's AI Playbook is a useful companion for UK teams2.

Testing a government assistant before and after launch

Evaluation continues after launch; see also LLM evaluation sets.

  1. Build a test set from real demand

    Draw questions from site search, contact-centre categories and complaints, including misspellings and other languages, with the expected answer and source page for each.

    Output
    Labelled test set
    Owner
    Service team
  2. Agree acceptance criteria with the service owner

    Set the share of correct, cited answers required and the categories, such as fees or safeguarding, where any error blocks launch.

    Output
    Acceptance criteria
    Owner
    Service owner
  3. Red-team the edges

    Try out-of-scope requests, attempts to override instructions, requests for advice beyond published policy and abusive messages.

    Output
    Red-team findings
    Owner
    Security and policy leads
  4. Run a private beta with assisted-digital users

    Include screen-reader users, people with limited English and people who rarely go online, observed by user researchers.

    Output
    Beta findings and fixes
    Owner
    User research
  5. Trace every wrong answer in live service

    Offer a simple way to flag a wrong answer, review flags weekly and trace each to content, retrieval or the model.

    Output
    Error log with causes
    Owner
    Content and engineering
  6. Re-test on every change

    Re-run the full test set whenever the model, instructions or content index change, and before updating any published record.

    Output
    Regression report
    Owner
    Engineering

Questions and answers

Should a government assistant use a public LLM API?

It can for prototypes over public content, but check where prompts are processed, how long the provider keeps them and whether they are used for training. A live service will receive personal details, even unprompted, so it usually needs contractual retention controls and in-country processing, or a model on infrastructure you control. Decide by the data the assistant will see, not by the model's benchmark scores.

How do we stop a government chatbot inventing policy?

Restrict answers to passages retrieved from approved content, require a source link for every factual statement, and refuse when retrieval finds nothing relevant. Test refusals as carefully as answers. Much invented policy comes from gaps or contradictions in the content itself, so send unanswered questions to content owners and fix the pages rather than adding more instructions.

What must a public body publish about its AI assistant?

At minimum, tell users they are talking to AI, cover the assistant in the accessibility statement and privacy notice, and explain how to reach a person. UK central government bodies in scope also publish an algorithmic transparency record. Publishing the assistant's scope, its content sources and how to report a wrong answer builds trust even where it is not required.

Can a government assistant answer in languages other than English?

Yes, but be explicit about how. Answers drawn from officially translated pages are the most reliable. Machine-translating answers widens access but can distort legal or financial terms, so label translated answers, link the original page and test the languages your residents use most. Keep phone and interpreter routes visible.

Sources

  1. Understanding accessibility requirements for public sector bodies — GOV.UK · checked 10 October 2026
  2. Artificial Intelligence Playbook for the UK Government — Government Digital Service · checked 10 October 2026
  3. Section508.gov: accessibility requirements for US federal agencies — US General Services Administration · checked 10 October 2026
  4. Directive (EU) 2016/2102 on the accessibility of the websites and mobile applications of public sector bodies — EUR-Lex · checked 10 October 2026
  5. Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 50 — EUR-Lex · checked 10 October 2026
  6. Freedom of Information Act 2000 — legislation.gov.uk · checked 10 October 2026
  7. EU AI Act Omnibus Agreement: postponed high-risk deadlines and other key changes — Gibson Dunn · checked 10 October 2026
  8. Web Content Accessibility Guidelines (WCAG) 2.2 — W3C · checked 10 October 2026
  9. Algorithmic Transparency Recording Standard (ATRS): mandatory scope and exemptions policy — GOV.UK · checked 10 October 2026

More in Public Sector

Back to Public Sector

Next step

Tell us which citizen questions your assistant should answer

Share the service, the content it would draw on and the channels you run. We will reply with a view on scope, hosting and the test set you would need before a private beta.

Plan a public assistant