๐ 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
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:
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
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]

