# Safety by Design: Guidance for AI Bot Builders

### A THiNK AI Safety Resource for Innovators and AI/ML Developers

#### Introduction

AI bots are increasingly shaping how people access information, make decisions, and engage with services. With this GREAT power comes responsibility. Safety by Design (SBD) ensures bots are built with trust, responsibility, quality, inclusivity, and resilience at their core.

This guidance provides practical steps for bot builders to embed safety throughout the entire lifecycle of their projects—from concept to scale.

#### Why Safety by Design Matters

• Unsafe bots can spread misinformation, bias, or harmful content.  
• Users may suffer emotional, social, or privacy harms.  
• Reputational risks to developers and organizations are high.  
• Safe bots build trust, adoption, and long-term impact.  
• Safety is also a competitive differentiator in the AI marketplace.

#### Risks &amp; Harms in AI Bots

##### a) Common Risks

• Misinformation or disinformation.  
• Biased or discriminatory responses.  
• Privacy breaches in conversations.  
• Manipulation, prompt injection, or malicious misuse.

##### b) Potential Harms

• Emotional distress from offensive replies.  
• Exclusion of marginalized users.  
• Reputational harm to creators and organizations.  
• Systemic harms at scale (e.g., misinformation campaigns).

##### c) Features That Strengthen Safety

• Guardrails in Dialogue – Refusal logic, content filters, and safe fallback answers.  
• Bias Detection – Representative datasets and fairness audits.  
• User Controls – Opt-out options, report abuse buttons, and transparency on the bot's scope.  
• Privacy by Design – Minimal data retention, anonymization, and compliance with the Data Protection Act (DPA) and DKS 3007 AI Code of Practice.  
• Accessibility &amp; Inclusivity – Support for multiple languages, voice and screen readers, and plain language modes.  
• Transparency – Clearly explain what the bot can and cannot do.

#### Embedding Safety Across the Bot Lifecycle

##### a) Design Phase

• Map risks and harms early.  
• Involve diverse users in the design process.  
• Define safety goals and standards.

##### b) Development Phase

• Train on diverse, safe datasets.  
• Build safety guardrails into the code.  
• Red-team bots with adversarial prompts.

##### c) Deployment Phase

• Conduct controlled rollouts (pilots).  
• Monitor conversations in real time.  
• Provide clear user onboarding with safety guidance.

##### d) Iteration Phase

• Perform continuous audits and updates.  
• Collect and respond to user feedback.  
• Align with the evolving AI Code of Practice.

#### Privacy-First Compliance

Consider the following insights when creating a compliance checklist.

##### a) Key Items to Consider

• Strong Foundation – PII detection, anonymization, and secure API architecture.  
• Partial Compliance – Privacy disclaimers are present, but the UI banner and data retention policy are still missing.  
• Gaps – Analytics continue to store direct user IDs, and retention scheduling has not been enforced.

##### b) Compliance Checklist Example

**<span style="background-color: rgb(236, 202, 250);">Area</span>**: Privacy Disclaimer  
<span style="background-color: rgb(236, 202, 250);">**Requirement**</span>: Inform users that no PII is collected.  
<span style="background-color: rgb(236, 202, 250);">**Status**</span>: Complete.  
<span style="background-color: rgb(236, 202, 250);">**Notes**</span>: Implemented in the system prompt and footer; UI banner is still pending.

<span style="background-color: rgb(236, 202, 250);">**Area:**</span> Input Filtering  
<span style="background-color: rgb(236, 202, 250);">**Requirement**</span>: Warn users about and filter PII.  
<span style="background-color: rgb(236, 202, 250);">**Status:** </span>Complete.  
<span style="background-color: rgb(236, 202, 250);">**Notes**</span>: Presidio-based detection with event sanitization.

<span style="background-color: rgb(236, 202, 250);">**Area:**</span> Metadata &amp; Logs  
<span style="background-color: rgb(236, 202, 250);">**Requirement:**</span> Minimize and anonymize metadata and logs.  
<span style="background-color: rgb(236, 202, 250);">**Status:**</span> Partial.  
<span style="background-color: rgb(236, 202, 250);">**Notes:**</span> User IDs are still stored directly; event sanitization has been improved.

**<span style="background-color: rgb(236, 202, 250);">Area</span>**: Retention  
<span style="background-color: rgb(236, 202, 250);">**Requirement:**</span> Establish retention and cleanup policies.  
<span style="background-color: rgb(236, 202, 250);">**Status:**</span> Not Complete.  
<span style="background-color: rgb(236, 202, 250);">**Notes:** </span>Tooling exists, but no formal policy or automation has been implemented.

<span style="background-color: rgb(236, 202, 250);">**Area:** </span>Access Control  
<span style="background-color: rgb(236, 202, 250);">**Requirement:**</span> Secure endpoints and logs.  
<span style="background-color: rgb(236, 202, 250);">**Status**</span>: Complete.  
<span style="background-color: rgb(236, 202, 250);">**Notes:** </span>Strong role-based access control (RBAC) and API key security.

<span style="background-color: rgb(236, 202, 250);">**Area:**</span> Audit Trail  
<span style="background-color: rgb(236, 202, 250);">**Requirement:**</span> Document privacy compliance.  
<span style="background-color: rgb(236, 202, 250);">**Status:** </span>Partial.  
<span style="background-color: rgb(236, 202, 250);">**Notes**</span>: Logs exist, but a privacy-focused audit trail is still needed.

<span style="background-color: rgb(236, 202, 250);">**Area**</span>: Public Sector Ethics  
<span style="background-color: rgb(236, 202, 250);">**Requirement:** </span>Align with the Data Protection Act (DPA) and accessibility requirements.  
<span style="background-color: rgb(236, 202, 250);">**Status:**</span> Partial.  
<span style="background-color: rgb(236, 202, 250);">**Notes**</span>: Awareness has been documented, but an accessibility audit is still missing.

##### Recommended Actions for Builders

• Add UI privacy disclaimers and a link to the privacy policy within the chatbot interface.  
• Implement automatic log cleanup and retention policies (for example, retaining logs for 90 days).  
• Anonymize user IDs used in analytics.  
• Conduct formal accessibility audits in line with WCAG 2.1.  
• Establish regular compliance reviews.

### Validating Safety: The Conformity Assessment Process (CAP)

At Tech Innovators Network (THiNK), we use the CAP framework to validate safe bots.

<div class="text-base my-auto mx-auto [--thread-content-margin:var(--thread-content-margin-xs,calc(var(--spacing)*4))] @w-sm/main:[--thread-content-margin:var(--thread-content-margin-sm,calc(var(--spacing)*6))] @w-lg/main:[--thread-content-margin:var(--thread-content-margin-lg,calc(var(--spacing)*16))] px-(--thread-content-margin)" id="bkmrk-ownership-verificati"><div class="[--thread-content-max-width:40rem] @w-lg/main:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn" data-conversation-screenshot-content=""><div class="flex max-w-full flex-col gap-4 grow"><div class="min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal outline-none keyboard-focused:focus-ring [.text-message+&]:mt-1" data-message-author-role="assistant" data-message-id="efbc597e-5e12-43b6-858f-98891d92a4a2" data-message-model-slug="gpt-5-5" dir="auto"><div class="flex w-full flex-col gap-1 empty:hidden"><div class="markdown prose dark:prose-invert wrap-break-word w-full dark markdown-new-styling">1. Ownership Verification – Ensure responsible development.
2. Data Evaluation – Assess data quality, diversity, and bias mitigation.
3. Model Assessment – Test fairness, accuracy, and security.
4. Validation &amp; Testing – Conduct compliance and safety checks.
5. Ongoing Monitoring – Maintain ethical and safe standards over time.

</div></div></div></div></div></div>##### Proactive Risk Prevention

• Conduct red-team testing using harmful queries (e.g., self-harm and hate speech).  
• Use human-in-the-loop escalation for sensitive topics.  
• Perform regular safety updates and audits.  
• Monitor misuse patterns while maintaining privacy safeguards.

##### Looking Ahead

• THiNK AI Safety Playbook (coming soon) – Practical tools for bot safety.  
• NMWSO Safety by Design Curriculum (IREX Kenya) – Advanced training content.  
• IREX chatbot on web.think.ke (currently undergoing testing) – Your go-to chatbot for Safety by Design queries. Feel free to engage with the chatbot.  
• Ongoing resources and botathons for builders committed to responsible AI.

> ##### Key Takeaway
> 
> Safety by Design isn't a single feature—it's a mindset.
> 
> By embedding safety at every stage, chatbot builders can engineer AI systems that are not only functional, but also safe, responsible, inclusive, and trusted by users.