AI Commons

Create Bot Technical Documentation

This document provides comprehensive technical documentation for the AI Commons "Create My Bot" configuration page, describing the technical behavior of every field, toggle, and control.

Table of Contents

1. Scope and Evidence Model

This document begins at the Create My Bot configuration page. Its purpose is to describe the technical behavior of every visible field, toggle, radio option, slider, dropdown, source control, and submission control shown in the AI Commons interface.

This includes documentation of what happens when a control is:

  • Left empty
  • Enabled or disabled
  • Set to an extreme value
  • Combined with another control
  • Configured incorrectly

2. System Model

The Create My Bot page controls multiple technical layers:

Identity Metadata

Title and Description fields that identify and describe the bot to users.

Behavioral Prompt

Instructions that define how the bot responds and behaves in conversations.

Tool Integrations

Internet Search and Amazon Bedrock Agent invocation capabilities.

Knowledge Sources

File upload, S3, web crawler, or existing Bedrock Knowledge Base integration.

Citation Behavior

Controls whether retrieved source references are exposed to end users.

Conversation UX

Quick starters and optional pre-stored responses for conversation initiation.

Generation Behavior

Max tokens, temperature, top-k, top-p, stop sequences, reasoning budget.

Knowledge Architecture

Embedding model, parsing method, chunking strategy, and analyzer settings.

Retrieval Behavior

Maximum retrieved results and search mode configuration.

Safety Controls

Harmful-content categories and contextual grounding/relevance checks.

Model Availability

Which foundation models are permitted for the bot.

Lifecycle Controls

Create control initiates resource creation and ingestion processes.

Important: A change in one layer can affect another. For example:
  • Chunking changes which passages retrieval can find
  • Retrieval changes what context the model receives
  • Context affects grounding scores and answer accuracy
  • Model choice changes how generation settings are interpreted

3. Title Field

The Title field is labeled Required and serves as the human-readable identifier for the AI Commons bot.

Technical Purpose

Title appears in owner/admin views and may also appear in discovery, sharing, conversation headers, direct-link views, logs, or usage reports depending on AI Commons implementation.

Note: Title does not itself make the model behave according to the title. Calling a bot "Official Policy Expert" does not grant authority, improve retrieval, or change the model's factual accuracy. Behavioral rules belong in Instructions and authoritative content belongs in Knowledge.

Empty Value Behavior

Because Title is required, an empty value prevents successful creation. Frontend behavior includes a disabled Create button. Server-side validation also rejects empty values even if frontend validation is bypassed.

Invalid and Boundary Values

Test Case Behavior Impact
Whitespace-only titles Not accepted Create button is disabled; bot cannot be created with empty or whitespace-only title
Duplicate titles Allowed Title is not unique identifier; can confuse users
Special characters Allowed Punctuation and symbols accepted
URLs as titles Treated as plain text Not converted to hyperlinks
Official-sounding titles Allowed No authorization verification; requires governance policy

Consequence of Changing Title Later

AI Commons allows the Title to be changed through Update. Renaming changes the display title but does not change the sharing link. The share URL is tied to a persistent internal bot identifier, so previously distributed links continue to work.

4. Description Field

Description is optional user-facing metadata that explains the bot's function. It is not a substitute for Instructions.

Technical Purpose

A description should communicate audience, subject, and major limitations, while Instructions contain operational behavior.

Empty Value Behavior

When left empty, AI Commons displays "No Description" in the My Bots list. The bot still creates normally and remains fully functional.

Best Practice: Always provide a Description to help users and administrators understand the bot's purpose, especially when multiple bots exist or duplicate names are used.

Contradictory Description and Instructions

AI Commons does not compare Description and Instructions fields or warn when they conflict. For example:

Description: "Answers questions about UCSB admissions"
Instructions: "Only answer questions about graduate admissions"

The Description may give users one expectation while the bot behaves differently through its Instructions. Description should accurately reflect the scope defined in Instructions.

Security and Privacy

Security Warning: Description is visible in the My Bots page. Do not enter passwords, API keys, access tokens, or other credentials in this field.

5. Instructions Field

The Instructions field provides custom instructions that the bot follows during conversations. This is the primary behavioral configuration mechanism.

Technical Role

Instructions can define several aspects of bot behavior:

  • Role: What role the bot should perform
  • Task: What kind of questions or tasks it should handle
  • Response Style: How responses should be written
  • Output Format: Numbered steps, categories, code blocks, etc.
  • Scope: Topics within or outside the bot's intended scope
  • Out-of-scope Behavior: What to do with requests outside scope
  • Tone: Professional, casual, encouraging, etc.
  • Audience: Expected user expertise level

Empty Instructions

Instructions is not marked Required. If left empty, the bot will not follow intended behavior—there would be no custom instruction defining role, subject focus, formatting, tone, or special rules.

Important: If a bot is intended to perform a particular task, the Instructions field should be completed to explicitly define expected behavior.

Instruction Priority and Conflict

Instructions should be internally consistent. Language models do not perform deterministic rule arbitration. If one sentence says "Only use the knowledge base" and another says "Always provide a complete answer," a missing-source question creates a conflict.

Better approach:

"Answer only when the configured authoritative sources support the answer.
If the answer is not supported, state that the information was not found
and do not infer or invent policy, dates, contacts, URLs, requirements,
or system status."

Sample Instructions

AI Commons provides three instruction samples:

Python Coding Assistant

Demonstrates detailed task and output instructions with code generation requirements.

Mail Categorizer

Shows classification instructions with predefined categories and justification requirements.

Personal Fitness Coach

Illustrates role, persona, tone, scope, and out-of-scope behavior handling.

Source-Precedence Rules

When multiple information sources are configured (Knowledge Base + Internet Search), Instructions can specify how to use them:

"Use the configured knowledge sources as the primary source for
AI Commons information. Use Internet Search when the requested
information is not available in the configured knowledge or when
current external information is required."

Prompt Injection Considerations

Security Note: Instructions should tell the model to treat retrieved documents and web content as data, not as higher-priority instructions. However, the Instructions field alone should not be documented as a complete prompt-injection security control.

6. Agent Functionality

The Agent section adds tool-based capabilities to the bot. Without enabled Agent capabilities, the selected language model responds using information available directly in its prompt and configured Knowledge.

Available Agent Capabilities

Capability Purpose Default
Internet Search Obtain information from the public web through a configured search provider OFF
Bedrock Agent Invoke an existing Amazon Bedrock Agent identified by Agent ID and Alias ID OFF

These are independent controls. Internet Search can be enabled without Bedrock Agent, Bedrock Agent can be enabled without Internet Search, or both can be enabled for the same bot.

Tool Use Requirements

Model Compatibility: The selected language model must support the tool-use mechanism required by AI Commons. Tool use means the model can determine that answering requires a tool, produce the structured request needed to invoke that tool, receive the result, and use that result in the final response.

Typical Tool-Enabled Flow

User request → model interprets request → model requests tool
→ AI Commons executes tool → tool returns data → model uses returned data
→ final response

When Agent Functionality is Disabled

When both Agent toggles are disabled, neither Internet Search nor the configured Bedrock Agent is available. The bot can still use:

  • Normal conversational capabilities
  • Instructions
  • Conversation history
  • Configured Knowledge Base
  • The selected model's pre-trained knowledge

This configuration is appropriate for narrowly scoped internal bots whose answers should come from controlled Knowledge rather than live external systems.

8. Bedrock Agent Integration

When Bedrock Agent is enabled, the bot can invoke an existing Amazon Bedrock Agent during conversation processing.

Configuration Requirements

Field Description Required
Agent ID The unique identifier of the Amazon Bedrock Agent Yes (when enabled)
Alias ID The specific alias of the Bedrock Agent to invoke Yes (when enabled)
Security Consideration: A Bedrock Agent can introduce external actions with permissions beyond read-only question answering. Ensure appropriate IAM permissions and agent configurations are in place.

Bedrock Agent Capabilities

Bedrock Agents can provide:

  • Action execution (calling APIs, databases, or services)
  • Complex multi-step orchestration
  • Integration with AWS services
  • Custom business logic execution

Implementation Details

When a Bedrock Agent is configured and a user query requires agent capabilities, AI Commons invokes the agent using the following implementation-specific behavior:

Invocation Method

AI Commons calls the invoke_agent API with the configured Agent ID and Alias ID. This initiates the Bedrock Agent's processing pipeline for the user's request.

Trace Collection

Trace collection is enabled during agent invocation. This captures detailed information about the agent's execution, including:

  • Which tools were invoked by the agent
  • Input parameters passed to each tool
  • Responses received from tools
  • Reasoning steps taken by the agent
  • Decision-making process and intermediate states

Response Assembly

AI Commons returns the agent's final output together with trace-derived artifacts. These artifacts include:

  • Tool invocations: Details about which external tools or APIs were called
  • Thinking artifacts: The agent's reasoning process and intermediate conclusions
  • Execution trace: Full trace of the agent's multi-step workflow
Trace Visibility: The availability of trace-derived artifacts in the user interface depends on how the consuming application processes and displays them. By default, traces provide transparency into agent behavior for debugging and auditing purposes.

Bedrock Agent vs. Internet Search

While both are Agent capabilities, they serve different purposes:

Feature Internet Search Bedrock Agent
Purpose Retrieve current web information Execute custom actions and orchestrate workflows
Configuration Provider selection (DuckDuckGo/Firecrawl) Agent ID + Alias ID
Capabilities Read-only web search Custom tools, API calls, write operations
Security Public web access only Requires careful IAM permission management

9. Knowledge Base Configuration

The Knowledge section configures what information the bot can retrieve to answer questions. This is separate from the model's pre-trained knowledge.

Knowledge Source Options

AI Commons supports multiple knowledge source types. When creating a new Knowledge Base-backed bot, you can configure the following sources:

Source Type Description Configuration Limits
File Upload Upload documents directly (PDF, TXT, DOCX, etc.) Select files from local system Size and count depend on UI limits
Amazon S3 Point to documents stored in S3 buckets S3 path prefixes (must end with /) Maximum 4 S3 data sources per bot
Web Crawler Automatically crawl and index web pages URLs, crawler scope, include/exclude regexes Maximum 10 URLs per bot
Existing Knowledge Base Use a pre-configured Bedrock Knowledge Base Existing KB ID only Disables normal knowledge editing

S3 Configuration Details

  • Path Format: S3 paths must follow the pattern s3://bucket/path/.../
  • Trailing Slash: All S3 paths must end with a trailing slash (/)
  • Prefix-Based: Paths act as prefixes; all objects under the prefix are included
  • Validation: Invalid path format will prevent bot creation
  • Maximum Sources: Up to 4 S3 data sources can be configured per bot

Web Crawler Configuration

  • URLs: Specify up to 10 normal URLs as starting points
  • Crawler Scope: Define how deep the crawler should follow links
  • Include Patterns: Regex patterns for URLs to include during crawling
  • Exclude Patterns: Regex patterns for URLs to exclude from crawling
  • Use Case: Best for public documentation sites and knowledge bases

Existing Knowledge Base Mode

When selecting an Existing Knowledge Base, the configuration workflow differs significantly:

  • Configuration Required: Only the existing KB ID is needed
  • No Source Management: You cannot add, modify, or manage sources through this interface
  • Read-Only Knowledge: The knowledge content is managed in the original KB, not through the bot
  • Shared Knowledge: Multiple bots can reference the same existing KB
  • Advanced Settings Disabled: Parsing, chunking, and embedding settings are inherited from the existing KB
Important: Existing KB mode is fundamentally different from creating a new KB. Use existing KB when you want to share a knowledge base across multiple bots or when the KB is managed separately. Create a new KB when you need bot-specific knowledge configuration.

Display Retrieved Chunks / Citation Behavior

The Display Retrieved Chunks control determines whether retrieved source references and citations are surfaced to end users in the chat interface.

Important Clarification: This control does not determine whether retrieval happens. Retrieval can still occur when this setting is OFF. The control determines whether retrieved chunks/citations are surfaced and stored as related documents in the chat experience.

When Enabled (ON):

  • Retrieved chunks are displayed to users
  • Source citations are included with responses
  • Users can see which documents informed the answer
  • Citations are stored as related documents in the conversation
  • Increases transparency and allows source verification

When Disabled (OFF):

  • Retrieval still occurs behind the scenes
  • Retrieved context is used to generate responses
  • Source references are not shown to users
  • Citations are not stored in the conversation
  • Cleaner UI, but less transparency about sources

Knowledge Creation and Update Behavior

When you create or modify knowledge sources, AI Commons triggers a sync and rebuild process rather than an immediate final save. Understanding this behavior is important for timing expectations:

On Initial Creation:

  • Bot is created immediately with configuration saved
  • Knowledge base sync/ingestion begins asynchronously
  • Documents are fetched, parsed, chunked, and indexed
  • The bot is usable immediately but retrieval improves as indexing completes

On Knowledge Updates:

  • Changes trigger a rebuild of affected portions of the knowledge base
  • New documents are added to the index
  • Removed sources are cleaned from the index
  • The process happens asynchronously; the bot remains operational

Existing KB Mode Restrictions:

When using an Existing Knowledge Base, knowledge editing is disabled because the KB is managed separately. You cannot add, remove, or modify sources through the bot's knowledge configuration interface.

Read-Only Settings After Knowledge Base Creation

Critical: Several Knowledge Base configuration settings become permanently read-only after the Knowledge Base is created. These settings fundamentally define the structure of the knowledge base and cannot be changed without recreating it.

Settings That Become Read-Only:

Setting Why It's Read-Only Impact
Existing KB ID Defines which Knowledge Base the bot uses Cannot switch to a different KB after creation
Embedding Model All vectors are computed with this model; changing it would invalidate the index Cannot change embedding model without rebuilding
Parsing Method Determines how documents were initially processed and structured Cannot switch between Foundation Model and Default parsing
Chunking Strategy Defines how content was split; changing would require re-chunking all documents Cannot change Fixed/Hierarchical/Semantic after creation
Analyzer Settings Controls tokenization and indexing for keyword search Cannot modify analyzer configuration after indexing

Settings That Remain Editable:

While the structural settings above are read-only, you can still modify:

  • Knowledge Sources: Add, remove, or update uploaded files, S3 paths, and web crawler URLs (except in Existing KB mode)
  • Citation Display: Toggle Display Retrieved Chunks ON/OFF
  • Retrieval Settings: Adjust max retrieved results and search mode
  • Content: Update document content by re-uploading or syncing from sources
Planning Tip: Because embedding model, parsing method, chunking strategy, and analyzer settings cannot be changed after creation, carefully consider these choices during initial bot configuration. If you need to change any of these settings later, you will need to create a new bot with a new Knowledge Base.

Knowledge Processing Pipeline

1

Document Ingestion

Documents are uploaded or synchronized from the configured source

2

Parsing

Documents are parsed according to the selected parsing method

3

Chunking

Content is split into chunks based on the chunking strategy

4

Embedding

Chunks are converted to vector embeddings using the selected model

5

Indexing

Embeddings are stored in the vector database for retrieval

10. Quick Starters

Quick Starters are pre-configured conversation prompts that appear when users begin a new conversation with the bot. They help users understand what the bot can do and provide easy starting points for common queries.

Field Requirements

Field Required Behavior
Title Yes (if starter is kept) The text displayed on the quick starter button
Response No (optional) Optional pre-seeded assistant reply
Requirement: A Quick Starter needs a title if it is kept in the configuration. Empty Quick Starters can be removed or left unconfigured.

Runtime Behavior

The behavior of a Quick Starter depends on whether a Response is configured:

Quick Starter WITHOUT Response (Response field empty)

  • User clicks the Quick Starter button
  • The starter title is submitted as the user's first message
  • The bot generates a response live, as with any normal user query
  • Generation uses the configured model, Instructions, and knowledge retrieval
  • Use Case: Standard prompts where you want fresh, generated responses

Quick Starter WITH Response (Response field configured)

  • User clicks the Quick Starter button
  • The conversation begins with a pre-seeded assistant reply
  • The pre-configured response is displayed immediately
  • No live generation occurs for that first turn
  • The conversation continues normally from that point
  • Use Case: Fixed welcome messages, disclaimers, or scripted introductions

Example: No Response

Title: "What can you help me with?"

Response: (empty)

Result: Bot generates a fresh answer describing its capabilities

Example: With Response

Title: "Start Here"

Response: "Welcome! I can help you with..."

Result: Pre-written welcome message appears immediately

Best Practices

  • Clear Titles: Use concise, action-oriented titles (e.g., "Check my order status")
  • Representative Examples: Choose starters that represent common use cases
  • Pre-seed Sparingly: Use pre-seeded responses only for fixed content like disclaimers
  • Test Both Modes: Verify that empty-response starters generate appropriate live answers
  • Update Regularly: Review Quick Starters when bot capabilities change

11. Generation Settings

Generation settings control how the model produces responses. These parameters affect response quality, creativity, and behavior.

Key Generation Parameters

Parameter Range Default Effect
Maximum Tokens 1 - 64,000 2,048 Maximum length of generated response
Temperature 0.0 - 1.0 0.6 Higher = more creative, lower = more focused
Top P 0.0 - 1.0 0.999 Nucleus sampling threshold
Top K 0 - 500 128 Number of top tokens to consider
Reasoning Budget 1,024 - maxTokens 1,024 Tokens allocated for extended reasoning (when enabled)

Temperature Guidelines

Low Temperature (0.1-0.3)

Use for: Analytical tasks, factual Q&A, code generation, structured outputs

Medium Temperature (0.4-0.7)

Use for: General conversation, balanced responses, standard support tasks

High Temperature (0.8-1.0)

Use for: Creative writing, brainstorming, diverse idea generation

Stop Sequences

Stop sequences are optional strings that, when generated, cause the model to stop producing output. They are useful for controlling response format and preventing unwanted continuation.

Storage Format

Stop sequences are stored as a comma-split list. When configuring multiple stop sequences, separate them with commas in the UI field.

Example stop sequences:
- "\n\nHuman:"
- "---END---"
- "\n\nSources:"

Multiple sequences: "\n\nHuman:,---END---,\n\nSources:"

Model-Specific Behavior

Important: Not all models use stop sequences in the same way:
  • Claude models: Stop sequences are applied as specified
  • Amazon Nova models: Stop sequences are applied as specified
  • Qwen models: Stop sequences are not used in the current implementation
  • OpenAI GPT-OSS models: Stop sequences are not used in the current implementation

Reasoning Budget

The Reasoning Budget controls how many tokens can be allocated to extended reasoning processes for models that support explicit reasoning steps.

Configuration

  • Range: 1,024 through maxTokens
  • Default: 1,024 tokens
  • Purpose: Allocates computational budget for internal reasoning before generating the final answer

Model-Specific Implementation

The Reasoning Budget maps to different backend parameters depending on the model:

Qwen Models

For Qwen models, the Reasoning Budget maps to reasoning_effort only when reasoning is explicitly enabled. If reasoning mode is not enabled for the request, the budget parameter is not used.

GPT-OSS Models

For GPT-OSS models, reasoning_effort is always derived from the Reasoning Budget, regardless of whether explicit reasoning mode is requested. The budget value influences how much internal processing the model performs.

Budget Overflow Handling
Automatic Adjustment: If budgetTokens is greater than or equal to maxTokens, the backend automatically raises maxTokens to ensure there is still room for the actual answer after reasoning. This prevents scenarios where the entire token budget is consumed by reasoning with no space left for the response.

Model-Specific Generation Quirks

Different model families have specific behaviors and limitations:

Amazon Nova Models

  • Top K Clamping: Nova models effectively clamp Top K values above 128 to 128
  • Effective Range: While the UI accepts 0-500, values above 128 have no additional effect
  • Recommendation: Use Top K values between 0-128 for Nova models

Qwen and GPT-OSS Models

  • Stop Sequences: Not used in the current Qwen/OpenAI GPT-OSS inference paths
  • Alternative: Use Instructions to specify output termination patterns instead

12. Advanced Settings

Advanced Settings control the knowledge-index architecture and retrieval behavior. These settings significantly impact answer quality and system performance.

Embedding Models

The embedding model converts text into vector representations for semantic search. Different embedding models have different strengths:

Model Family Characteristics Best For
Amazon Titan AWS-native, cost-effective General purpose, AWS-integrated workflows
Cohere Multilingual, high-quality Multilingual content, semantic search
OpenAI Ada Industry standard, well-tested English content, broad compatibility

Parsing Methods

How documents are initially processed before chunking:

  • Foundation Model Parsing: Uses AI to understand document structure and extract meaningful content with semantic awareness
  • Default Parsing: Standard text extraction without AI enhancement
Note on Custom Parser: While "Custom Parser" appears in some UI configurations, it is not currently available for selection in the Create Bot workflow. The two active parsing methods are Foundation Model Parsing and Default Parsing.

Analyzer Control

The Analyzer controls how text is tokenized and indexed for keyword search in hybrid retrieval mode.

  • Purpose: Enables keyword matching alongside semantic similarity
  • Default: Standard text analysis (tokenization, stemming, stop word removal)
  • Custom Options: Can be configured to handle domain-specific terminology or language-specific processing
  • Impact: Affects the quality of keyword matches in hybrid search mode
Important: Analyzer settings, like parsing method and chunking strategy, become read-only after Knowledge Base creation. Choose carefully during initial setup.

Chunking Strategy

Determines how documents are split into retrievable chunks. The chunking strategy directly impacts:

  • What information can be retrieved together
  • How precisely the system can answer questions
  • Whether related information stays together
  • Retrieval performance and accuracy

Fixed-Size Chunking

Splits documents into equal-sized chunks with optional overlap between consecutive chunks.

Parameter Range/Options Notes
Max Tokens 1 - 8,192 (Titan v2)
1 - 512 (Cohere)
Depends on selected embedding model
Overlap Percentage 1 - 99% How much adjacent chunks overlap

Best for: Uniform content, predictable structure, when consistent chunk size matters

Hierarchical Chunking

Creates parent-child chunk relationships where child chunks contain detailed content and parent chunks provide broader context.

Parameter Range/Options Notes
Parent Chunk Size Must be ≥ Child Chunk Size Constrained by embedding model ceiling
Child Chunk Size Must be ≤ Parent Chunk Size Constrained by embedding model ceiling
Overlap Percentage 1 - 99% Applied to child chunks
Embedding Model Ceilings 8,192 (Titan v2)
512 (Cohere)
Both parent and child must respect model limits

Best for: Complex documents, nested information structures, when you need both detail and context

Hierarchical Constraint: Parent chunk size must always be greater than or equal to child chunk size, and both must fall within the embedding model's token ceiling (8,192 for Titan v2, 512 for Cohere).

Semantic Chunking

Splits content at natural semantic boundaries (paragraphs, sections, topic shifts) rather than fixed token counts.

Parameter Range/Options Notes
Max Tokens 1 - 8,192 (Titan v2)
1 - 512 (Cohere)
Chunks won't exceed this size
Buffer Size 0 - 1 Controls sensitivity to semantic boundaries
Breakpoint Percentile 50 - 99 Threshold for determining where to split

Best for: Maintaining context, coherent passages, documents with clear semantic structure

Chunking Configuration Summary

Strategy Key Parameters Embedding Model Constraints
Fixed-Size Max Tokens, Overlap % 1-8192 (Titan v2) or 1-512 (Cohere)
Hierarchical Parent Size, Child Size, Overlap % Parent ≥ Child, both ≤ model ceiling
Semantic Max Tokens, Buffer, Breakpoint % 1-8192 (Titan v2) or 1-512 (Cohere)

Retrieval Settings

Setting Description Typical Range
Max Retrieved Results Number of chunks retrieved per query 3-10
Search Mode Hybrid (semantic + keyword) or semantic-only Hybrid recommended
Performance Tip: More retrieved results provide more context but increase latency and token usage. Start with 5 results and adjust based on testing.

13. Guardrails Configuration

Guardrails provide safety and content filtering capabilities to ensure bot responses meet organizational policies and safety standards. They analyze both user inputs and bot outputs to detect and filter harmful or inappropriate content.

Content Filter Categories

AI Commons supports the following harmful content categories for filtering:

Category Description Examples
Hate Hateful content targeting protected groups Discrimination, slurs, hate speech
Insults Insulting, demeaning, or mocking language Personal attacks, derogatory remarks
Sexual Sexually explicit or suggestive content Explicit sexual material, adult content
Violence Violent content or encouragement of harm Graphic violence, self-harm, harm to others
Misconduct Illegal activities or dangerous behavior Illegal activities, dangerous advice, fraud

Grounding and Relevance Checks

In addition to content filters, guardrails can enforce response quality requirements when used with a Knowledge Base:

Check Type Purpose Action
Contextual Grounding Verify answer is supported by retrieved context Block responses not grounded in KB content
Relevance Check Ensure response addresses the user's question Prevent off-topic or irrelevant responses
Knowledge Base Integration: Contextual Grounding and Relevance checks are only meaningful when a Knowledge Base is configured. Without a Knowledge Base, these checks cannot evaluate whether responses are grounded in retrieved content.

Sensitivity Levels and Configuration

Each guardrail can be configured with a sensitivity threshold that determines how aggressively content is filtered or checked.

Content Filter Sensitivity (Hate, Insults, Sexual, Violence, Misconduct)

  • Range: 0 - 3 (integers)
  • Type: Integer values only
  • Meaning:
    • 0: Filter disabled (default)
    • 1: Low sensitivity - only blocks clearly harmful content
    • 2: Medium sensitivity - balanced filtering
    • 3: High sensitivity - aggressive filtering, may have false positives

Grounding Check Sensitivity (Contextual Grounding, Relevance)

  • Range: 0.0 - 0.99 (decimals)
  • Type: Decimal/float values
  • Meaning:
    • 0 or 0.0: Check disabled (default)
    • 0.01 - 0.49: Lower thresholds - more lenient, fewer blocks
    • 0.50 - 0.79: Medium thresholds - balanced checking
    • 0.80 - 0.99: Higher thresholds - stricter checking, more blocks

Guardrail Activation Rule

Important Activation Behavior: A guardrail is active if its sensitivity value is any non-zero number. Setting sensitivity to 0 (or 0.0) disables the guardrail entirely. Any non-zero value, even very small decimals like 0.01 or integers like 1, activates the guardrail.

Activation Examples:

Guardrail Sensitivity Value Status
Violence Filter 0 ❌ Disabled
Violence Filter 1 ✅ Active (Low)
Violence Filter 3 ✅ Active (High)
Contextual Grounding 0.0 ❌ Disabled
Contextual Grounding 0.01 ✅ Active (Very Lenient)
Contextual Grounding 0.75 ✅ Active (Medium-Strict)

Guardrails and Knowledge Base Interaction

The effectiveness and behavior of guardrails can depend on whether a Knowledge Base is configured:

Without Knowledge Base:

  • Content Filters: Work normally - detect harmful content in inputs and outputs
  • Contextual Grounding: Cannot function meaningfully (no retrieved context to check against)
  • Relevance Check: Limited effectiveness (no knowledge base to establish relevance)
  • Recommendation: Focus on content filters only

With Knowledge Base:

  • Content Filters: Work normally - detect harmful content
  • Contextual Grounding: Fully functional - verifies responses are supported by KB content
  • Relevance Check: Fully functional - ensures responses address queries based on KB
  • Recommendation: Can use all guardrail types effectively

Performance and Cost Considerations

Important: Guardrails add processing time and API costs to every request. Each active guardrail requires additional model inference. Configure guardrails based on your actual risk profile and compliance needs rather than enabling all options by default.

Best Practices:

  • Start with content filters at medium sensitivity (2) for public-facing bots
  • Enable grounding checks only when using a Knowledge Base and accuracy is critical
  • Test sensitivity thresholds with real traffic to find the right balance
  • Monitor false positive rates and adjust sensitivity as needed
  • Consider whether all five content categories are necessary for your use case

14. Model Activation

Model Activation determines which foundation models are available for this bot. This functions as an allowlist: multiple models can be activated simultaneously, and users can choose among the activated models when chatting with the bot.

Allowlist Behavior: Model Activation is not a single-selection field. You can enable multiple models at once, giving end users the flexibility to select the most appropriate model for their specific task. This allows a single bot to serve different use cases with different model capabilities.

Available Model Tiers

Model Tier Modality Best Use Case
Claude 4.6 Opus Highest capability Multimodal Complex reasoning, deep analysis
Claude 4.6 Sonnet Balanced Multimodal General enterprise, coding, analysis
Claude 4.5 Haiku Fast/efficient Multimodal High-volume, simple tasks
Amazon Nova Pro High capability Text, image, video Multimodal enterprise
Amazon Nova Lite Cost-effective Text, image, video High-volume multimodal
Amazon Nova Micro Fastest/lowest-cost Text only Classification, simple support
Qwen3 32B Multilingual Text Multilingual reasoning
GPT-OSS 20B Efficient reasoning Text Lower-cost reasoning
GPT-OSS 120B Large reasoning Text Complex analysis

Fallback Behavior When Models Are Removed

Important: If a model that users have selected is later removed from the bot's Active Models list, the system will fall back to the first available model in the updated allowlist.

Fallback Scenarios:

Scenario User's Previous Selection Admin Action Result
Model Removed Claude 4.6 Opus Opus deactivated from bot User automatically switched to first available model in new list
Model Still Available Claude 4.6 Sonnet Opus deactivated (Sonnet remains) User's selection unchanged (Sonnet still works)
Multiple Removed Amazon Nova Pro All Nova models deactivated User switched to first remaining active model

Best Practices for Model Management:

  • Communicate Changes: Notify users before removing models they may be actively using
  • Test Fallback: Ensure the first model in your allowlist is a suitable default for most use cases
  • Maintain Consistency: Avoid frequent changes to the active model list in production bots
  • Monitor Usage: Track which models users select to inform deactivation decisions

Multi-Model Considerations

Flexibility vs Complexity: Activating multiple models provides flexibility for different tasks but requires validation across multiple runtime environments. The same Instructions can be interpreted differently by different models.

When to Enable Multiple Models:

  • Diverse Use Cases: Bot serves both simple and complex tasks
  • Cost Optimization: Let users choose cost-effective models for routine queries
  • Performance Trade-offs: Offer fast models for quick responses, powerful models for deep analysis
  • Modality Requirements: Some users need multimodal (image/video), others need text-only

When to Limit to One Model:

  • Consistent Experience: All users should get identical behavior
  • Specialized Bot: Bot is tuned for one specific model's capabilities
  • Simplified Testing: Easier to validate Instructions with a single model
  • Controlled Costs: Prevent users from selecting expensive models unnecessarily

Model Selection Guidelines

For Analytical Tasks

Use Claude 4.6 Opus or Sonnet with low temperature (0.1-0.3)

For High-Volume Support

Use Nova Micro or Haiku for cost-effective throughput

For Multimodal Tasks

Use Nova Pro or Claude 4.6 models for image/video input

For Multilingual Content

Use Qwen3 32B for strong multilingual support

Relationship to Agent Tools

When Internet Search or Bedrock Agent is enabled, activated models must be compatible with Tool use. A model suitable for conversational generation is not automatically guaranteed to support the specific tool invocation architecture.

Validation Required: If a bot depends on tools, validate that activated models support the required tool workflow. Tool compatibility is a functional requirement, not just a performance preference.

Cost and Latency Considerations

Model selection is both a functional and operational decision. Compare:

  • Answer correctness
  • Instruction following accuracy
  • Retrieval-grounded accuracy
  • Tool performance
  • Response latency
  • Token consumption
  • Cost per successful task

Goal: Choose models whose capability is appropriate to the work users actually perform, not necessarily the most powerful model for every request.

Summary

The Create My Bot configuration page provides comprehensive control over bot behavior, capabilities, and safety. Key takeaways:

  • Instructions define behavioral rules; Knowledge provides factual content
  • Agent tools extend capabilities beyond static knowledge
  • Generation settings control response quality and creativity
  • Advanced settings impact retrieval accuracy and performance
  • Guardrails ensure safety and policy compliance
  • Model selection balances capability, cost, and latency
Best Practice: Test bot configurations thoroughly with representative queries before deploying to production. Changes to chunking, retrieval, or model selection can significantly impact answer quality.