๐Ÿ“š Complete Tutorial: Configuring a Medical Chatbot with AI Engine

*This is the fourth part of the complete configuration guide. If you missed the first three parts, you can find them [here]*, [here]*** and [here]***

In the first three parts we covered:
โœ… **Technical Foundation** – Token system, cost optimization, Dashboard modules
โœ… **Chatbot Configuration** – AI Model, Embeddings, Thresholds, Knowledge Base
โœ… **User Interface** – Appearance, Popup, UI Builder, Advanced
โœ… **Advanced Integrations** – Cross-Site, Shortcodes, Actions
โœ… **Monitoring** – Discussions, Insights
โœ… **Partial Global Settings** – Settings AI

## ๐ŸŽ›๏ธ NOW WE WILL FINALIZE THE GLOBAL SETTINGS:

In this final part, we will complete the configuration of all system settings:

๐Ÿ”น **Settings – Chatbot** – Global chatbot configurations
๐Ÿ”น **Settings – Knowledge** – Knowledge base settings
๐Ÿ”น **Settings – Orchestration** – Advanced automations
๐Ÿ”น **Settings – Files & Media** – File management
๐Ÿ”น **Settings – Remote Access** – API and MCP
๐Ÿ”น **Settings – Others** – Security, languages, maintenance


 

โš™๏ธ “SETTINGS” – GLOBAL CONFIGURATIONS

2. “CHATBOT” TAB – GLOBAL SYSTEM SETTINGS

๐Ÿ“ AI Engine โ†’ Settings โ†’ “Chatbot” Tab


๐Ÿ”น “CHATBOT” SECTION – BASIC FUNCTIONALITIES

๐Ÿ“ DISCUSSIONS – ARCHIVING CONVERSATIONS

Status: โŒ Disable (disabled)
Function: Saves and archives all user conversations
Access: "Discussions" Tab for history viewing

๐Ÿฅ MEDICAL STRATEGY:

โœ… DISABLED - Security Rationale:
ย  - Protection of sensitive medical data
ย  - Strict GDPR compliance
ย  - Patient history is not stored
ย  - Maximum privacy for users

๐ŸŒ CROSS-SITE – EXTERNAL EMBED

Status: โœ… Enable (activated)
Function: Allows chatbot embed on external sites
Control: Access based on authorized domains

๐Ÿš€ IMPLEMENTATION BENEFITS:

Portability: Chatbot can be integrated on multiple platforms
Control: Only authorized domains can use the system
Scalability: Ready for medical partnerships

๐Ÿ’ป SYNTAX HIGHLIGHT – CODE DISPLAY

Status: โŒ Disable (disabled)
Function: Syntax highlight for code blocks
Usage: For technical/developer examples

๐ŸŽฏ MEDICAL DECISION:

โŒ NOT RELEVANT - Our system:
ย  - Does not display code or technical examples
ย  - Purely conversational medical interaction
ย  - No need for code formatting

๐ŸŽค WEB SPEECH API – VOICE RECOGNITION

Speech Recognition: โŒ Disable (disabled)
Function: Speech-to-text conversion
Dependencies: Browser and user OS

๐Ÿ”Š SPEECH SYNTHESIS – TEXT-TO-SPEECH

Status: โŒ Disable (disabled)
Function: Text-to-speech conversion
GDPR: Users must accept the terms

๐Ÿฅ ACCESSIBILITY ANALYSIS:

โœ… DISABLED - Medical Considerations:
ย  - Critical precision in medical terminology
ย  - Risks of vocal misunderstanding
ย  - GDPR complexity for voice data
ย  - Focus on 100% textual accuracy

๐Ÿ”น “DISCUSSIONS” SECTION – CONVERSATION MANAGEMENT

๐Ÿ“Š SUMMARIZE – AUTOMATIC SUMMARY

Status: โŒ Disable (disabled)
Function: Automatically generates title for discussions
Model: Uses the "fast" model for summaries

๐ŸŽฏ TITLE STRATEGY:

โœ… DISABLED - Rationale:
ย  - Automatic titles can distort medical context
ย  - We prefer clear titles based on the subject
ย  - Reduction of unnecessary processing costs

๐Ÿ“„ PAGING – RESULT PAGINATION

Value: 10 per Page
Function: Number of discussions displayed per page

โšก PERFORMANCE OPTIMIZATION:

10 per Page - Perfect Balance:
ย  - Fast list loading
ย  - Easy navigation for administrators
ย  - Optimized for large data volumes

๐Ÿ”„ REFRESH INTERVAL – AUTOMATIC UPDATE

Value: 5 seconds
Function: Automatically updates the list of discussions

๐Ÿ“ˆ REAL-TIME MONITORING:

5 seconds - Optimized for:
ย  - Live monitoring of conversations
ย  - Rapid problem detection
ย  - Prompt intervention if necessary

๐Ÿ“‹ METADATA BAR – ADDITIONAL INFORMATION

Status: โŒ Disable (disabled)
Available Options:
ย  - Start Date: discussion creation date
ย  - Last Update: last modification date
ย  - Message Count: number of messages

๐ŸŽฏ INTERFACE DECISION:

โœ… CLEAN INTERFACE - Priorities:
ย  - Focus on medical content, not metadata
ย  - Reduction of visual complexity
ย  - Simplified user experience

๐Ÿ”น “USER INTERFACE” SECTION – CHATBOT SELECTION

๐ŸŽ›๏ธ CHATBOT SELECT – SELECTION METHOD

yaml
Available Options:
ย  - [ ] Tabs (default)
ย  - [โœ…] Dropdown (selected)
Function: How multiple chatbots are displayed

๐Ÿ—๏ธ SELECTION ARCHITECTURE:

DROPDOWN SELECTED - Advantages:
ย  - Scalable for many chatbots
ย  - Compact and organized interface
ย  - Easy search and filtering
ย  - Ideal for future expansions

๐Ÿฅ GLOBAL CHATBOT SETTINGS STRATEGY

๐Ÿ”’ MEDICAL SECURITY AND COMPLIANCE

๐Ÿ“œ DATA POLICY:

Discussions Disabled:
ย  - No medical conversations stored
ย  - Maximum patient privacy protection
ย  - Zero risk of sensitive data breach

Speech APIs Disabled:
ย  - Eliminates risks of vocal interpretation
ย  - Strict GDPR compliance
ย  - Focus on textual accuracy

๐ŸŒ SCALABILITY AND PORTABILITY

๐Ÿš€ MULTI-SITE ARCHITECTURE:

yaml
Cross-Site Enabled:
ย  - Ready for integration on multiple platforms
ย  - Granular control over authorized domains
ย  - Expansion without reconfiguration

Dropdown Interface:
ย  - Support for future specialized chatbots
ย  - Clear organization of multiple medical services

โšก PERFORMANCE AND EXPERIENCE

๐ŸŽจ OPTIMIZED INTERFACE:

Clean Interface:
ย  - No unnecessary elements for the medical use-case
ย  - Focus on essential functionalities
ย  - Fast and responsive loading

Rapid Refresh:
ย  - Real-time activity monitoring
ย  - Immediate intervention if necessary

โœ… FINAL RECOMMENDED CONFIGURATION

๐ŸŽ›๏ธ OPTIMAL SETTINGS FOR MEDICAL SYSTEM:

# CHATBOT SECTION
Discussions: โŒ Disable (data security)
Cross-Site: โœ… Enable (scalability)
Syntax Highlight: โŒ Disable (not relevant)
Speech Recognition: โŒ Disable (GDPR)
Speech Synthesis: โŒ Disable (precision)

# DISCUSSIONS SECTION
Summarize: โŒ Disable (accuracy)
Paging: 10 per Page (performance)
Refresh: 5 seconds (monitoring)
Metadata Bar: โŒ Disable (simplicity)

# USER INTERFACE SECTION
Chatbot Select: โœ… Dropdown (scalability)


3. “KNOWLEDGE” TAB – KNOWLEDGE BASE CONFIGURATION

๐Ÿ“ AI Engine โ†’ Settings โ†’ “KNOWLEDGE” Tab


๐Ÿ”น PANEL 1: “ENVIRONMENT FOR EMBEDDINGS” – CREATING CONNECTIONS

This panel allows creating new connections to vector databases.

๐Ÿ“ NAME – CUSTOM NAME:

Value: "Quadrant" (custom example)
Function: Descriptive name for your connection
Usage: Easy identification in the list
Examples: "MedicalBase", "PrimaryEmbeddings", etc.

๐Ÿ”ง TYPE – VECTOR DATABASE PROVIDER TYPE:

Available Options:
โ”œโ”€ Qdrant (โœ… Selected in example)
โ”œโ”€ Pinecone
โ”œโ”€ OpenAI Vector Store
โ””โ”€ Chroma

๐Ÿ“Š PROVIDER COMPARISON:

| Provider | Cost | Performance | Ease of Use | Use-case |
|------------|------|---------------|------------|---------------|
| Qdrant | ๐ŸŸข Free 1GB | ๐ŸŸข Excellent | ๐ŸŸข Easy | Small-medium projects |
| Pinecone | ๐Ÿ”ต Pay-per-use | ๐ŸŸข Very Good | ๐ŸŸข Easy | Enterprise projects |
| OpenAI | ๐Ÿ”ต Integrated | ๐ŸŸก Average | ๐ŸŸข Simple | OpenAI only |
| Chroma | ๐ŸŸข Open-source | ๐ŸŸก Good | ๐ŸŸก Medium | Self-hosted |

๐ŸŒ SERVER – CONNECTION URL:

Example: "https://a4c16481-67f9-4932-9166-ef4055ed00c2.europe-west3-0.gcp.cloud.qdrant.io"
Source: Obtained from the Qdrant Cloud platform
Structure: [unique-ID].[region].[provider].cloud.qdrant.io

๐Ÿ—‚๏ธ COLLECTION – DATA COLLECTION:

Value: "1536" (default)
Function: Separates data into logical "compartments"
Analogous: Like folders on a hard drive
Usage: You can have multiple collections for different projects

๐Ÿ“ DIMENSIONS – VECTOR DIMENSIONS:

Value: 1536 (default for Ada-002)
Significance: The number of characteristics of each vector
Compatibility: Must match the embeddings model

๐Ÿ†” ENV ID – AUTOMATIC IDENTIFIER:

Example: "unynjwo1" (automatically generated)
Function: Unique ID for the connection
Usage: Technical references in the backend

๐ŸŽฏ SCORE – ADVANCED SEARCH SETTINGS:

Min Score: 70 (default)
Significance: The minimum similarity threshold for results
Example: Only vectors with >70% similarity are returned

Max Results: 5 (default)
Significance: The maximum number of results returned
Interval: 1-100 (10 is general default)

โš™๏ธ AI ENVIRONMENT – MODEL CONFIGURATION:

Override Defaults: โŒ Disable (unchecked)
Function: Allows custom settings different from global ones
Usage: Only if you need a different model for this environment

๐Ÿ”ง ACTIONS – PRACTICAL ACTIONS:

Quick Test: โœ… Connection test button
Function: Checks if the connection is working
Delete: ๐Ÿ—‘๏ธ Environment deletion button
Caution: Permanently deletes the connection and all data

๐Ÿ—๏ธ QDRANT CONNECTION ARCHITECTURE

๐Ÿ”— COMPLETE INTEGRATION FLOW:

AI Engine โ†’ Qdrant Cloud โ†’ Collection 1536 โ†’ Medical Vectors
ย  ย  โ†“ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  โ†“
Connectionย  ย GCP Clusterย  ย Data Separationย  ย  Medicine Embeddings
API Keyย  ย Server URLย  ย  1536 Dimensionsย  ย  Cosine Similarity

๐Ÿ’Š BENEFITS FOR THE MEDICAL SYSTEM:

โœ… Performance: Ultra-fast vector search in the medical database
โœ… Scalability: Qdrant Cloud supports large volumes of medicines
โœ… Security: Secure connection via HTTPS with API Key authentication
โœ… Cost: Optimized with free plan (1GB) and 5% discount with #AIENGINES

๐Ÿ” COMPATIBILITY WITH EMBEDDING ADA-002:

Dimensions: 1536 โ†โ†’ 1536 (perfect match)
Similarity: Cosine โ†โ†’ Cosine (optimal for medical text)
Collection: Auto-creation โ†โ†’ Native dimensions

๐Ÿ”น PANEL 2: “DEFAULT EMBEDDINGS ENVIRONMENT” – SELECTING ACTIVE CONNECTION

Here you choose which environment should be used by default.

Options: List of all created environments
Selection: "Quadrant" (our created environment)
Impact: All searches use this connection by default

๐Ÿ”น PANEL 3: “DEFAULTS” – GLOBAL CONFIGURATION

Global settings for all environments (if not overridden).

AI Environment: OpenAI (the main provider)
Embeddings Model: text-embedding-ada-002 (the optimal model)
Dimensions: 1536 (Ada-002 native dimensions)

Note: "If a particular embeddings environment needs different settings,
use the 'Override Defaults' option in the AI Environment section
of each embeddings environment."

๐Ÿ”น PANEL 4: “EMBEDDINGS SEARCH” – SEARCH STRATEGY

Configuring how the system searches the database.

๐Ÿ” METHOD – SEARCH METHOD:

Available Options:
โ”œโ”€ Simple (โœ… Selected)
โ”œโ”€ Context-Aware
โ””โ”€ Smart Search

๐Ÿ“Š METHOD ANALYSIS:

Methodย  ย  ย  ย  ย  Speedย  ย  ย  ย  ย  Accuracyย  ย  ย  ย  Costย  ย  ย  ย  ย  Usage
โ”€โ”€โ”€โ”€โ”€โ”€โ”€ย  ย  ย  ย  ย โ”€โ”€โ”€โ”€โ”€โ”€โ”€ย  ย  ย  ย  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ย  ย  ย  ย  โ”€โ”€โ”€โ”€โ”€โ”€โ”€ย  ย  ย  ย  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Simpleย  ย  ย  ย  ย  ๐ŸŸข Fastย  ย  ย  ย  ๐ŸŸก Averageย  ย  ย  ๐ŸŸข Freeย  ย  ย  ย  Simple questions

Context-Awareย  ย ๐ŸŸก Averageย  ย  ย  ๐ŸŸข Goodย  ย  ย  ย  ย ๐ŸŸข Freeย  ย  ย  ย  Medical conversations

Smart Searchย  ย  ๐Ÿ”ต Slowย  ย  ย  ย  ๐ŸŸข Excellentย  ย  ย ๐Ÿ”ต Added Costย  Complex searches

๐Ÿ’ฌ MESSAGES – NUMBER OF CONTEXT MESSAGES:

Value: 10 (default)
Function: How many messages from history are used for context
Impact: The more messages, the richer the context
Recommendation: 5-10 for a balance between context and performance

๐Ÿ”น PANEL 5: “INFORMATION” – THEORETICAL EXPLANATIONS

Informational panel explaining the technical concepts.

๐ŸŽ“ WHAT EMBEDDINGS ARE:

Definition: "Textual data converted into vectors that enable similarity search"
Function: "Allow AI to find relevant context from your knowledge base"
Storage: "Synchronized with vector databases like Pinecone or Qdrant"

๐Ÿ› ๏ธ WORKING WITH EMBEDDINGS – PRACTICAL FLOW:

Knowledge Tab: "Manage your embeddings"
Available Actions:
โ”œโ”€ EDIT: "Create, edit, and search embeddings"
โ”œโ”€ AI SEARCH: "Query your knowledge base directly"
โ””โ”€ SYNC: "Process posts and create/update embeddings"

๐Ÿš€ MEDICAL CONFIGURATION RECOMMENDATIONS:

โœ… Environment Type: Qdrant (zero cost, good performance)
โœ… Search Method: Context-Aware ( ideal for medical conversations)
โœ… Min Score: 70 (balance between precision and coverage)
โœ… Max Results: 5-10 (sufficient for medical recommendations)
โœ… Messages: 10 (adequate context for medical history)

 


4. “ORCHESTRATION” TAB – MODEL CONTEXT PROTOCOL (MCP)

๐Ÿ“ AI Engine โ†’ Settings โ†’ Orchestration


๐Ÿ”น WHAT IS MCP (MODEL CONTEXT PROTOCOL)?

๐ŸŽฏ TECHNICAL DEFINITION:

MCP: "Model Context Protocol" - open-source standard created by Anthropic
Purpose: Allows AI models to access external tools and data in real time
Analogous: "Plugin system" for AI - like browser extensions

**MCP ARCHITECTURE IN AI ENGINE:**

AI Engineย  ย  ย  ย โ†’ย  ย  ย  ย MCP Clientย  ย  ย  ย โ†’ย  ย  ย  ย External MCP Serverย  ย  ย  ย โ†’ย  ย  ย  ย Specialized Tools
ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“
Medical Chatbotย  ย  ย  Standard Protocolย  ย  ย  ย  External Servicesย  ย  ย  ย  ย  ย  ย  Functions Available for AI
ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย (communication)ย  ย  ย  ย  ย  ย  (APIs, databases)ย  ย  ย  ย  ย  ย  ย  (search, calculations, etc.)

๐Ÿ”น WHAT DO MCP SERVERS DO?

๐Ÿ› ๏ธ PRACTICAL FUNCTIONALITIES:

MCP Servers offer:
- Web Search - real-time information retrieval
- Calculator - complex mathematical calculations
- Weather - current weather data
- Calendar - calendar interaction
- Database Query - database querying
- File System - file reading/writing
- Custom Tools - personalized business functions

๐Ÿ’Š CONCRETE MEDICAL EXAMPLE:

Userย  ย  ย  ย  ย  ย  ย  โ†’ย  ย  ย  ย Chatbotย  ย  ย  ย  ย  โ†’ย  ย  ย  ย MCP Serverย  ย  ย  ย  ย  โ†’ย  ย  ย  ย Medical Database
ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“
"Drug Interactionย  ย  Detects the needย  ย  ย  ย  Calls the DrugInteractionsย  ย  Queries the medical
ย Warfarin +ย  ย  ย  ย  ย  ย  for external medicalย  ย  ย  ย  ย  ย  ย  APIย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย database
ย Amoxicillin?"ย  ย  ย  ย  ย  information
yaml
Response: "Warfarin + Amoxicillin can increase the risk of bleeding"

๐Ÿ”น CONFIGURING THE MCP SERVER

**๐Ÿ‘ค USER NAME – UNIQUE NAME:**

Example: "DrugInteractionsAPI"
Requirement: "The name must be unique across all MCP servers"
Usage: Visual identification in the list

**๐ŸŒ URL – MCP SERVER ENDPOINT:**

Structure: "https://example.com/mcp-server"
Protocol: "Must start with https://" (mandatory security)
Requirements: Must implement the standard MCP protocol

**๐Ÿ” TOKEN – AUTHENTICATION:**

Type: "Bearer token for authentication"
Function: Access token for the MCP server
Security: Ensures only authorized users

**๐Ÿ†” SERVER ID – IDENTIFIER:**

Example: "7x86fkqk" (automatically generated)
Purpose: Unique identification in the system

**๐Ÿ”ง ACTIONS – AVAILABLE ACTIONS:**

Delete: Deletes the MCP server
Caution: Deletion is permanent and irreversible

๐Ÿ”น WHY “ORCHESTRATION”?

**THE ORCHESTRA ANALOGY:**

Orchestratorย  ย  ย  ย  โ†’ย  ย  ย  ย Instrumentsย  ย  ย  ย โ†’ย  ย  ย  ย Scoreย  ย  ย  ย โ†’ย  ย  ย  ย Result
ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“
AI Engineย  ย  ย  ย  ย  ย MCP Serversย  ย  ย  ย  ย  ย  ย  User Conversationย  ย  ย  ย  ย  ย Coordinated Harmonious
(the conductor)ย  ย  ย  ย  ย  ย (the musicalย  ย  ย  ย  ย  ย  ย  (the music)ย  ย  ย  ย  ย  ย  ย  ย  ย Response (the symphony)
ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  instruments)

**COMPLETE ORCHESTRATION FLOW:**

1. Userย  ย  ย  ย  ย  ย โ†’ย  ย  ย  ย 2. AI Engineย  ย  ย  ย โ†’ย  ย  ย  ย 3. Orchestrationย  ย  ย  ย โ†’ย  ย  ย  ย 4. MCP Server
ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“
"What's the weatherย  ย  ย  Detects the needย  ย  ย  ย  Calls the "Weather"ย  ย  ย  ย  ย  Queries the weather
ย like in Bucharest?"ย  ย  ย  for weather dataย  ย  ย  ย  ย  ย  ย MCP Serverย  ย  ย  ย  ย  ย  ย  ย  ย  ย API
5. AI Engineย  ย  ย  ย  โ†’ย  ย  ย  ย 6. User
ย  ย  ย โ†“ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย โ†“
Integrates the responseย  ย  ย Receives "In Bucharest
into the conversationย  ย  ย  ย it's 22ยฐC, sunny"

๐Ÿฅ SPECIFIC MEDICAL APPLICATIONS

**MCP SERVERS FOR MEDICINE:**

- Drug Databases: Updated drug databases
- Medical Calculators: Dosage calculators, BMI, etc.
- Clinical Guidelines: Current medical guidelines
- Lab Reference: Normal analysis values
- Symptom Checkers: Symptom triage systems

**LIMITATIONS AND MEDICAL CONSIDERATIONS:**

- Does not replace medical consultation
- No access to patients' personal data
- Only general medical information
- Mandatory verification of credible sources
- Mention "General information, consult a doctor"

๐Ÿ”’ SECURITY AND COMPLIANCE

**PROTECTION MEASURES:**

- Mandatory HTTPS: All connections encrypted
- Token Authentication: Controlled access
- Server Validation: Verification of secure sources
- Data Minimization: Only necessary data

**โœ… CONFIGURATION RECOMMENDATIONS:**

Current Status: Empty panel (no MCP servers configured)
Recommendation: Kept this way for maximum security
Reason: The medical system functions perfectly with its own database


5. “FILES & MEDIA” TAB – FILE AND MEDIA MANAGEMENT

๐Ÿ“ AI Engine โ†’ Settings โ†’ Files & Media


๐Ÿ“ค UPLOADED BY USERS – FILES UPLOADED BY USERS

**๐Ÿ”น LOCAL UPLOAD – Configuration:**

Storage: Filesystem (โœ… Selected)
Options:
ย  โ”œโ”€ Filesystem
ย  โ””โ”€ Media Library

**๐Ÿ”น REMOTE UPLOAD – Configuration:**

Storage: Filesystem (โœ… Selected)
Options:
ย  โ”œโ”€ Filesystem
ย  โ””โ”€ Media Library
Note: "Files can be stored either in the filesystem or the Media Library"

**๐Ÿ”น EXPIRATION – Expiration Policy:**

Setting: 1 hour (โœ… Selected)
Options available:
ย  โ”œโ”€ 5 minutes
ย  โ”œโ”€ 1 hour
ย  โ”œโ”€ 6 hours
ย  โ”œโ”€ 1 day
ย  โ”œโ”€ 1 week
ย  โ”œโ”€ 1 month
ย  โ””โ”€ Never

**๐Ÿ“ EXPLANATORY NOTE:**

"Uploaded files will be deleted after a certain amount of time.
This also affects files uploaded to OpenAI via the Assistants."

๐Ÿค– GENERATED BY AI – FILES GENERATED BY AI

**๐Ÿ”น LOCAL DOWNLOAD – Configuration:**

Storage: None (โœ… Selected)
Options:
ย  โ”œโ”€ None
ย  โ”œโ”€ Filesystem
ย  โ””โ”€ Media Library

**๐Ÿ”น EXPIRATION – Expiration Policy:**

Setting: Never (โœ… Selected)
Note: "Downloaded files will be deleted after a certain amount of time"

๐Ÿ—๏ธ TECHNICAL CHOICE ARCHITECTURE

**๐ŸŽฏ SELECTED STORAGE STRATEGY:**

**โœ… UPLOADED FILES โ†’ Filesystem:**

Motivation:
ย  - Clear separation from the WordPress Media Library
ย  - Granular control over temporary files
ย  - Ease of automatic cleanup

**โœ… GENERATED FILES โ†’ None:**

Motivation:
ย  - The medical chatbot does not generate files
ย  - Eliminates unnecessary storage overhead
ย  - Focus on pure text conversation

**โœ… EXPIRATION โ†’ 1 hour / Never:**

Uploaded: 1 hour โ†’
ย  - User files are temporary
ย  - Automatic cleanup for space saving
ย  - Alignment with the episodic nature of medical consultations

Generated: Never โ†’
ย  - Not applicable (storage set to None)
ย  - Consistency with the decision not to store generated files

๐Ÿ”’ IMPLICATIONS FOR MEDICAL SECURITY

**๐Ÿ›ก๏ธ PATIENT DATA PROTECTION:**

Rapid expiration (1 hour):
ย  - Minimizes the risk of sensitive data exposure
ย  - Files are not stored long-term
ย  - Compliance with data protection regulations

Separate Storage:
ย  - Isolation from the public WordPress Media Library
ย  - Better control over file access

โš ๏ธ IMPORTANT! CRITICAL CONNECTION WITH CHATBOT CONFIGURATION

MANDATORY CONDITION:
โ”œโ”€ For "Files & Media" settings to have any effect
โ”œโ”€ "File Upload" must be enabled in the chatbot configuration
โ”œโ”€ Tab: AI Engine โ†’ Chatbots โ†’ [Chatbot Name] โ†’ "AI Model" Tab
โ””โ”€ Setting: Uploads โ†’ File Upload โœ… ENABLED

โš ๏ธ CONFIGURATION ALERT:
"Without enabling File Upload in the AI Model tab,
all settings in Files & Media are INACTIVE!"

๐Ÿ’Š IMPACT ON THE MEDICAL SYSTEM

**โœ… BENEFITS OF OUR CONFIGURATION:**

Security:
ย  - User files expire quickly (1 hour)
ย  - Zero generated files permanently stored
ย  - Separation from public WordPress content

Performance:
ย  - Optimized storage space
ย  - Automatic cleanup of temporary resources
ย  - No overhead for generated files

Compliance:
ย  - Minimization of sensitive data stored
ย  - Alignment with data minimization principles
ย  - Protection against personal data accumulation

**๐ŸŽฏ CONCLUSION OF FILES & MEDIA CONFIGURATION:**

The chosen settings create a perfect balance between:

  • **Security** (rapid expiration + separate storage)

  • **Performance** (no unnecessary storage)

  • **Compliance** (data minimization)

But everything depends on enabling **File Upload** in the chatbot configuration!



6. “REMOTE ACCESS” TAB – REMOTE ACCESS AND INTEGRATIONS

๐Ÿ“ AI Engine โ†’ Settings โ†’ Remote Access


๐Ÿ”น “MODEL CONTEXT PROTOCOL (MCP)” PANEL – WORDPRESS AS MCP SERVER

**๐ŸŽฏ TRANSFORMING WORDPRESS INTO AN MCP SERVER:**

Function: "Create a Model Context Protocol (MCP) server that provides various tools"
Purpose: Makes the WordPress site accessible as a service for external AI agents
Direction: โ† AS (WordPress becomes the server for others)

**โš™๏ธ SSE ENDPOINT CONFIGURATION:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Enable the App.json/msg/v1/spe endpoint"
Note: "Claude works well with MCP servers but cannot handle SSE directly, so a relay is needed"

**๐Ÿ” BEARER TOKEN – SECURITY:**

Setting: [Empty]
Function: "MCP will be usable by using this Bearer Token"
Security: If not set, it requires personalized authentication filters

**๐ŸŒ NO-AUTH URL – SIMPLIFIED ACCESS:**

Setting: [ ] Enable (โŒ Disabled)
Condition: "Only works when SSE Endpoint is enabled and Bearer Token is set"
Function: Creates a special URL with authentication in the path

๐Ÿ”น “REST API” PANEL – AUTOMATIONS AND INTEGRATIONS

**๐ŸŽฏ API FOR EXTERNAL AUTOMATIONS:**

Definition: "The REST API enables integration with automation platforms and external applications"
Usage: "Use it with Make.com, n8n, Zapier, or any platform that supports REST APIs"

**โš™๏ธ PUBLIC API – ACTIVATION:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Enable the Public REST API"

**๐Ÿ” BEARER TOKEN – API SECURITY:**

Setting: [Empty]
Function: "The Public API will be usable by using this Bearer Token"
Note: "If not set, you will need to build your own authentication"

๐Ÿ”น “INFORMATION” PANEL – TECHNICAL EXPLANATIONS

**๐Ÿ”„ INTEGRATION COMPARISON:**

REST API:
โ”œโ”€ Purpose: "Ideal for automation platforms like Make.com, Zapier, or n8n"
โ”œโ”€ Usage: "Trigger AI operations from external services"
โ””โ”€ Cases: Integration into existing workflows

MCP (Model Context Protocol):
โ”œโ”€ Purpose: Makes WordPress accessible for AI agents
โ”œโ”€ Compatibility:
โ”‚ย  โ”œโ”€ โœ… Claude Desktop: "Use the mcp.js relay"
โ”‚ย  โ”œโ”€ โš ๏ธ OpenAI/ChatGPT: "Limited to Deep Research mode"
โ”‚ย  โ””โ”€ โŒ Claude.ai: "Currently not supported"
โ””โ”€ Available Tools:
ย  ย โ”œโ”€ Full access: WordPress management, SEO Engine, Code Engine
ย  ย โ””โ”€ Limited access: Only search and fetch WordPress posts

**โšก CRITICAL DIRECTION NOTE:**

"Note: This makes WordPress an MCP server.
For connecting TO external MCP servers, use the Orchestration module."

๐Ÿ“‹ FINAL COMPARISON:

| Direction | Purpose | Module | Location |
|------------|------------------------|---------|------------------------|
| โ†’ TO | Chatbot calls external services | MCP Client | Settings โ†’ Orchestration |
| โ† AS | WordPress becomes a server for AI agents | MCP Server | Settings โ†’ Remote Access |

๐Ÿ—๏ธ TECHNICAL DECISION ARCHITECTURE

**๐ŸŽฏ SELECTED SECURITY STRATEGY:**

**โœ… SSE ENDPOINT โ†’ DISABLED:**

Medical Motivation:
ย  - The medical system does not require external access to WordPress
ย  - Reduces the attack surface and vulnerabilities
ย  - Keeps medical data isolated and secured

**โœ… REST API โ†’ DISABLED:**

Medical Motivation:
ย  - The medical chatbot operates autonomously, without external integration
ย  - Eliminates the risk of data exposure via API
ย  - Simplifies the architecture and reduces points of failure

**โœ… BEARER TOKENS โ†’ UNSET:**

Medical Motivation:
ย  - No API keys = no external access
ย  - Maximum protection against unauthorized access
ย  - Alignment with medical security principles

๐Ÿ”’ IMPLICATIONS FOR MEDICAL SECURITY

**๐Ÿ›ก๏ธ BENEFITS OF COMPLETE ISOLATION:**

Data Protection:
ย  - Zero external access to the medical system
ย  - Patient data remains completely internal
ย  - No exposed public endpoints

Compliance:
ย  - Maximized GDPR/HIPAA compliance
ย  - Total control over data flow
ย  - Simplified and secured audit trail

Stability:
ย  - System independent of external services
ย  - No dependencies on external connections
ย  - Consistent and predictable performance

โš ๏ธ **IMPORTANT! RELATIONSHIP WITH ORCHESTRATION**

CRITICAL DISTINCTION:

ORCHESTRATION (Tab 4):ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  REMOTE ACCESS (Tab 6):
โ”œโ”€ Direction: โ†’ TOย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  โ”œโ”€ Direction: โ† AS
โ”œโ”€ WordPress = Clientย  ย  ย  ย  ย  ย  ย  ย  ย  ย  โ”œโ”€ WordPress = Server
โ”œโ”€ Calls external servicesย  ย  ย  ย  ย  ย  ย  โ”œโ”€ Is called by external agents
โ”œโ”€ Extends capabilitiesย  ย  ย  ย  ย  ย  ย  ย  ย  ย  โ”œโ”€ Exposes capabilities
โ””โ”€ Used for MCP Serversย  ย  ย  ย  ย  ย  โ””โ”€ Used to become an MCP Server

๐Ÿšจ CONSCIOUS DECISION:
"Both modules are DISABLED to keep
the medical system completely isolated and secured!"

**๐ŸŽฏ CONCLUSION OF REMOTE ACCESS CONFIGURATION:**

The chosen configuration ensures **complete isolation** of the medical system:

  • **No inbound access** (Remote Access disabled)

  • **No outbound access** (Orchestration empty)

  • **Closed and secured ecosystem** for sensitive medical data

The system functions perfectly with its internal database, without external dependencies! ๐Ÿ”’


7. “OTHERS” TAB – ADVANCED AND MISCELLANEOUS SETTINGS

๐Ÿ“ AI Engine โ†’ Settings โ†’ Others


๐Ÿ”น PANEL 1 – “USER INTERFACE” – USER INTERFACE

**๐ŸŽฏ USER EXPERIENCE CONFIGURATION:**

**๐Ÿ“ INTRO MESSAGE:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Enable introduction messages on some modules"
Medical Motivation:
ย  - The medical chatbot is direct and professional
ย  - Eliminates unnecessary introductory messages for consultations
ย  - Fast focus on the user's medical issue

**๐Ÿ“‹ FORMS EDITOR:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Enable the Forms module to use the Forms Editor"
Medical Motivation:
ย  - The medical system does not require complex forms
ย  - Pure conversational interaction is sufficient
ย  Simplifies: the interface and reduces overhead

๐Ÿ”น PANEL 2 – “INSIGHTS” – ANALYTICS AND MONITORING

**๐ŸŽฏ ACTIVITY MONITORING POLICY:**

**๐Ÿ“Š QUERIES DATA:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Record the queries and their replies"
Note: "Contextual data is excluded unless you activate the options below"
Medical Motivation:
ย  - Maximum protection of patient confidentiality
ย  - Compliance with GDPR - minimization of stored data
ย  - Eliminates the risk of exposure of medical consultations

**๐Ÿ“ QUERIES FORM DATA:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Capture form data neatly for simple reuse"
Medical Motivation:
ย  - Medical data should not be captured for reuse
ย  - Each consultation is unique and personal
ย  - Respects the principle of medical confidentiality

**โš ๏ธ AWARENESS NOTE:**

"Make sure your users are aware of this"
Decision: Users are automatically protected by disabling

๐Ÿ”น PANEL 3 – “ADMIN BAR” – ADMINISTRATION BAR

**๐ŸŽฏ QUICK ACCESS FOR ADMINS:**

**๐Ÿค– AI ENGINE:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Medical Motivation:
ย  - Reduces clutter in the administration interface
ย  - Access to settings is done directly from the plugin
ย  - Keeps the interface clean and professional

**๐ŸŽฎ PLAYGROUND:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Medical Motivation:
ย  - The medical system is not a "playground"
ย  - Eliminates the temptation to experiment in production
ย  - Maintains focus on serious medical functionalities

**๐Ÿ“ GENERATE CONTENT:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Medical Motivation:
ย  - The medical chatbot does not generate generic content
ย  - Exclusive specialization in medical consultations
ย  - Prevents improper use of resources

**๐Ÿ–ผ๏ธ GENERATE IMAGES:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Medical Motivation:
ย  - The medical system does not require image generation
ย  - Exclusive focus on text-based interaction
ย  - Saves processing resources

๐Ÿ”น PANEL 4 – “ADVANCED” – ADVANCED SETTINGS

**๐ŸŽฏ ADVANCED TECHNICAL CONFIGURATIONS:**

**๐Ÿ”ฃ SHORTCODES:**

Setting: [ ] Resolve (โŒ Disabled - RECOMMENDED)
Function: "Will resolve the shortcode in your content when needed"
Medical Motivation:
ย  - The medical chatbot does not process shortcodes
ย  - Direct interaction with the drug database
ย  - Eliminates unnecessary complexity

**๐Ÿ“ CONTEXT MAX LENGTH:**

Setting: 16384 (โœ… Kept default)
Medical Motivation:
ย  - Perfect balance between context and performance
ย  - Sufficient for detailed medical conversations
ย  - Optimized for cost and response speed

**๐Ÿ”ง DEV TOOLS:**

Setting: [ ] Enable (โŒ Disabled - RECOMMENDED)
Function: "Enable a new tab with debugging tools. For developers only"
Medical Motivation:
ย  - The medical system in production does not require debugging
ย  - Increased security by disabling the tools
ย  - Reduces the risk of unauthorized interventions

**๐Ÿ—‘๏ธ PLUGIN DATA:**

Setting: [ ] Delete All (โŒ Disabled - NORMAL)
Function: "The database and all the options will be removed on uninstall"
Medical Motivation:
ย  - Safety setting - not activated preemptively
ย  - Retains important configuration data
ย  - Conscious decision at the time of uninstallation

๐Ÿ”น PANEL 5 – “LANGUAGES” – FOREIGN LANGUAGE SUPPORT

**๐ŸŽฏ MULTILINGUAL CONFIGURATION:**

**๐ŸŒ AVAILABLE LANGUAGES:**

Setting: English (en) (โœ… Kept default)
List: English (en), German (de), French (fr), Spanish (es), Italian (it), Chinese (zh), Japanese (ja), Po
Medical Motivation:
ย  - The Romanian medical chatbot works in English
ย  - The drug database is in Romanian/English
ย  - Eliminates the complexity of multi-language support

๐Ÿ”น PANEL 6 – “SECURITY” – ADVANCED SECURITY

**๐ŸŽฏ ADVANCED PROTECTION MEASURES:**

**๐Ÿ”’ PRIVACY FIRST:**

Setting: [โœ“] Enable (โœ… ENABLED - CRITICAL)
Function: "Only essential data is stored. IPs, conversations, and other private details are minimized"
Medical Motivation:
ย  - Maximum protection of patient confidentiality
ย  - Compliance with medical regulations (GDPR/HIPAA)
ย  - Minimization of sensitive data stored

**๐Ÿšซ BANNED WORDS:**

Setting: [Empty Field] (โœ… Kept empty - RECOMMENDED)
Function: "Reject queries containing these words; separate with commas"
Medical Motivation:
ย  - The medical chatbot must respond to any medical question
ย  - Overly aggressive filters can block legitimate medical questions
ย  - The system relies on strict prompts, not word filters

**๐Ÿ›ก๏ธ BANNED IPS:**

Setting: [Empty Field] (โœ… Kept empty - NORMAL)
Function: "Block access from specified IP addresses or ranges using CIDR notation"
Medical Motivation:
ย  - The medical system is public and accessible to everyone
ย  - IP restrictions are not necessary at this time
ย  - Can be configured later if the need arises

๐Ÿ”น PANEL 7 – “MAINTENANCE” – MAINTENANCE AND BACKUP

**๐ŸŽฏ CONFIGURATION MANAGEMENT:**

**๐Ÿ’พ SETTINGS BACKUP:**

Export Settings: (โœ… Available - IMPORTANT)
Import Settings: (โœ… Available - IMPORTANT)
Reset Settings: (โœ… Available - CAUTIOUS)
Reset Usage: (โœ… Available - USEFUL)

Medical Strategy:
ย  - Periodic export of configuration for backup
ย  - Rapid import in case of need
ย  - Reset usage for current monitoring

**๐Ÿ“ MAINTENANCE NOTE:**

"Important to keep regular backups of your settings"
Recommended Practice: Weekly export of the complete configuration

๐Ÿ—๏ธ GENERAL STRATEGY FOR “OTHERS”

**๐ŸŽฏ CONFIGURATION PHILOSOPHY:**

Functional Minimalism:
ย  - Only strictly necessary settings are enabled
ย  - Maximized security and privacy
ย  - Complete elimination of unnecessary functionalities

Medical Focus:
ย  - All decisions justified by medical necessity
ย  - Patient data protection is prioritized
ย  Simplification: for maximum reliability

**๐Ÿ”’ GLOBAL SECURITY ENSURED:**

Privacy First: โœ… ENABLED - Maximum data protection
Insights: โŒ DISABLED - Zero conversation tracking
Admin Features: โŒ DISABLED - Minimal interface
Banned Words: โŒ DISABLED - Unlimited medical access

**โœ… FINAL CONCLUSION OF “OTHERS” TAB:**

All 7 panels are configured for:

  • **Maximum security** (Privacy First enabled, Insights disabled)

  • **Operational simplicity** (unnecessary features disabled)

  • **Exclusive medical focus** (only relevant functionalities)

  • **Complete compliance** with medical standards

The system is now optimized for its specific medical mission! ๐Ÿฅ

**๐Ÿ“š CONTINUING IN PART 5 (FINAL)**

We have finalized the configuration of all global system settings.
In the last article of the series, we will explore the crucial **KNOWLEDGE** tab:

๐Ÿ”น **Knowledge** – Centralized management of medical databases

  • Configuration and synchronization of knowledge bases

  • Optimizations for efficient semantic search

  • Maintenance and update strategies

[๐Ÿ‘‰ Read Part 5: Knowledge Base Management here]