Privacy policy basics
How to generate a privacy policy and terms with your AI coding assistant
Use your coding assistant to inspect the project and prepare factual answers, then generate privacy and terms through the document tools rather than asking the model to improvise legal text. Review the private drafts, confirm missing business decisions, and approve publication explicitly. The assistant helps connect your code to the questionnaire; the repository-owned clause library supplies the generated document wording.
Begin with evidence from the finished app
Ask the assistant to inspect the deployed product's source, dependencies, route handlers, database use, forms, authentication, payment callbacks, uploads, analytics, and email. Have it report the files or settings supporting each factual finding. The original build prompt and a feature summary are not enough to establish current behavior.
Keep inspection within the project and accounts you have authorized. Avoid copying API keys, session credentials, or customer content into its report. The general generation guide provides a useful inventory format. A good first result identifies verified facts, uncertain configuration, and business decisions that require your answer. It should not bury uncertainty under a confident draft full of plausible assumptions.
Confirm the decisions code cannot answer
The legal operator, intended audience, retention schedule, support commitments, target markets, and commercial rules may not be inferable from implementation. Ask the assistant to separate what it found from what it still needs you to confirm. Reuse accurate saved identity information where the authorized account provides it, while checking that it belongs to the current product.
For example, finding a delete function does not establish a company-wide retention policy, and a currency code does not prove where customers live. Review the login and payments guide for concrete checks. Resolve missing facts before generation instead of instructing the assistant to choose standard answers merely to finish the task without questions.
Connect the documented MCP workflow
Open the developer integration page and use its current instructions for your client. It includes a copy-paste prompt and the supported connection workflow for the Legal Policy Generator MCP server. Use the tools already connected to your assistant where available, and complete the documented sign-in rather than pasting secrets into a conversation.
The integration allows an authorized assistant to obtain the questionnaire schema, inspect relevant questions, validate factual answers, and create private document drafts. Connection alone does not authorize publication or prove entitlement. Keep the workflow attached to the intended operator account and review any account or draft identity before continuing. Refer to the maintained developer page for client-specific setup instead of relying on an old command copied from a chat.
Get the schema and validate before creating drafts
The assistant should call get_answer_schema and use its exact field names and allowed values. It can then validate_document_answers, resolve returned issues, and repeat until the facts are complete. This is more reliable than guessing an answer shape from memory or treating a failed request as permission to omit a required field.
Use create_privacy_policy and create_terms_of_service for their respective private drafts. Some product facts overlap, but each document needs its own factual review. The privacy versus terms guide explains the distinction. Ask the assistant to report remaining uncertainty and the draft's actual status. A successful tool call should not be described as a published policy when it only created an editable private draft.
Review the saved drafts and actual purchase state
Open the private review links and inspect the complete generated documents. Compare them with the assistant's evidence report and your confirmed decisions. Check identity, providers, purpose, retention, billing, cancellation, content rules, and contacts as relevant. If you change facts in the browser, make sure the assistant reloads the saved draft before continuing.
Read the exact server-reported price and entitlement. An assistant should not claim a document is paid or available merely because it reached a success-looking screen. If payment is required, use the returned purchase path and wait for verified access. The current pricing section explains the available plans; the actual draft determines which path applies. Publication approval should refer to the concrete draft you reviewed.
Match the existing design and choose delivery
Have the assistant inspect your existing legal layout, theme variables, typography, and light or dark palettes. Choose supported presentation settings that fit the project, then review the result. The integration supports bounded presentation choices rather than arbitrary customer-supplied scripts or styles being injected into hosted documents.
Select a hosted reader when you need a stable external link, standalone HTML for a full self-hosted page, or a supported fragment when your app already owns the page shell. PDF can accompany those formats. The React integration guide explains routing and publication checks. Format and theme choices do not themselves approve publication; confirm content, delivery, and the intended destination before finalizing.
Approve publication and integrate the exact output
After reviewing the saved draft and access state, explicitly approve the finalization you intend. The assistant can then use finalize_document for the owned complete draft subject to server checks. It should report the resulting document version and public or download destinations, rather than treating an earlier preview link as the deliverable.
For project integration, use the exact generated HTML or supported fragment returned by the tools. Do not ask the assistant to summarize sections or rewrite prose to fit a shorter component. Preserve document identity, section structure, and links. Add clear footer and contextual links, then verify the production destination anonymously. For a framework-specific implementation, see adding a policy to Next.js.
Verify the app and preserve future review
Open the published pages from registration, checkout, settings, and the footer as relevant. Test a direct anonymous visit, refresh, keyboard access, mobile reading, and any companion download. Confirm the production site contains the approved version and that private draft links were not exposed as public destinations.
Keep factual inputs and versions available for future releases. When an assistant adds an SDK, model provider, payment flow, or new account behavior, ask it to identify affected answers and prepare a revision through the same workflow. Generated wording is not legal advice or a guarantee of compliance or enforceability. The useful outcome is an accurate reviewed document integrated into a working product, with human decisions and publication approval still explicit.
Common questions
Can I just ask an AI to write a privacy policy?
A model can produce convincing prose without knowing your actual settings or business decisions. Use it to collect evidence and complete the factual workflow instead. The generator's versioned clause library produces the document wording, while you review the facts, output, and any questions needing professional advice.
Does this generate both privacy and terms in one document?
No. Use the privacy and terms tools for their respective documents. They can reuse verified operator and product details, but their questions and purposes differ. Review both drafts and ensure they agree about shared behavior such as account closure, billing, and support before integrating them.
Can the assistant publish without asking me?
The documented workflow requires explicit publication approval after you review the concrete draft. Creating a private draft, choosing a theme, or connecting an account is not that approval. The assistant also needs complete validated answers, ownership, and server-verified entitlement before finalization can succeed.
Will the generator's AI send my app's users to a model?
The document generator does not make runtime model calls to write policy prose. Your coding assistant separately uses its own client and authorized tools to inspect facts and submit answers. Review what you share with that assistant, and keep credentials and actual customer content out of the evidence report.
Official sources checked for this guide
Platform rules and legislation can change. Verify the current text before publishing or making a high-risk decision.