Ctrl K
ring2all.com

AI Profiles Module Documentation

Table of Contents

  1. Module Overview (Technical)
  2. Module Overview (Commercial/Business)
  3. Module Overview (End User/Administrator)
  4. Configuration Sections
  5. Settings Reference
  6. Common Scenarios & Examples
  7. Limitations & Important Notes
  8. Troubleshooting Tips
  9. Glossary

---

1. Module Overview (Technical)

What Are AI Profiles?

AI Profiles is an AI configuration module that defines how AI services behave in the PBX system. Each profile configures the AI provider, model settings, voice parameters, and behavior for features like TTS, transcription, and intelligent assistants.

Architecture

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              AI Profiles Architecture                          │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  AI Profile: Customer Service                                   │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                                                          │   │
│  │  API Connection:                                         │   │
│  │  ├─ Provider: OpenAI                                     │   │
│  │  └─ Model: GPT-4o                                        │   │
│  │                                                          │   │
│  │  Model Behavior:                                         │   │
│  │  ├─ Temperature: 0.7 (creative)                         │   │
│  │  ├─ Max Tokens: 2000                                     │   │
│  │  └─ Embeddings: text-embedding-3-small                  │   │
│  │                                                          │   │
│  │  Voice Settings:                                         │   │
│  │  ├─ Voice Engine: OpenAI TTS                            │   │
│  │  ├─ Voice: Alloy                                         │   │
│  │  ├─ Pitch: Medium                                        │   │
│  │  ├─ Volume: Medium                                       │   │
│  │  └─ Speech Rate: Normal                                  │   │
│  │                                                          │   │
│  │  System Prompt: "You are a helpful customer service..."  │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│       │                                                         │
│       ▼ Referenced by AI Features                              │
│  ┌──────────────────────────────────────────────────────────┐   │
│  │                                                          │   │
│  │  Recording TTS ──────────► Profile: Studio Voice         │   │
│  │  AI Assistant ───────────► Profile: Customer Service    │   │
│  │  Voicemail Summary ──────► Profile: Analysis            │   │
│  │  IVR Agent ──────────────► Profile: IVR Bot             │   │
│  │                                                          │   │
│  └──────────────────────────────────────────────────────────┘   │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Key Tables

TablePurpose
public.ai_profilesProfile configurations

Key Files

FileDescription
modules/aiProfiles/Frontend module
---

2. Module Overview (Commercial/Business)

Business Value

AI Profiles provides customized AI behavior:

Without ProfilesWith Profiles
Single AI configMultiple personalities
Fixed voiceCustomizable TTS
No tuningTemperature, tokens
One-size-fits-allTask-specific AI

Use Cases

  1. Customer Service Bot
- Friendly, helpful tone

- Moderate creativity

  1. Professional Announcements
- Clear, formal voice

- Low creativity (consistent)

  1. Call Transcription
- Accurate model

- Fast processing

  1. IVR Assistant
- Natural voice

- Specific system prompt

Feature Highlights

FeatureBenefit
Multiple ProfilesDifferent use cases
Voice CustomizationPitch, rate, volume
Temperature ControlCreativity level
System PromptsDefine AI behavior
TTS TestingPreview voices
EmbeddingsSemantic search
---

3. Module Overview (End User/Administrator)

What Can You Do?

  • Create AI profiles for different purposes
  • Select providers and models
  • Configure temperature and tokens
  • Choose TTS voice and settings
  • Write system prompts
  • Test voice generation
  • Adjust pitch, volume, rate

AI Profiles - List View

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              AI Profiles                                        │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  Configure AI integration settings, voice profiles, and        │
│  intelligent assistants                                         │
│                                                                 │
│  [+ Add]                                                        │
│                                                                 │
│  ┌───────────────────────────────────────────────────────────┐  │
│  │ Name             │ Provider │ Model   │ Voice    │ Status│  │
│  ├──────────────────┼──────────┼─────────┼──────────┼───────┤  │
│  │ Customer Service │ OpenAI   │ GPT-4o  │ Alloy    │ Active│  │
│  │ Studio Voice     │ OpenAI   │ -       │ Nova     │ Active│  │
│  │ Analysis         │ Anthropic│ Claude 3│ -        │ Active│  │
│  │ IVR Bot          │ OpenAI   │ GPT-4   │ Shimmer  │ Active│  │
│  └───────────────────────────────────────────────────────────┘  │
│                                                                 │
│  Actions: [🧪 Test] [✏️ Edit] [🗑️ Delete]                      │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Add/Edit AI Profile

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Edit AI Profile                                    │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  [API Connection] [Model Config] [Voice Settings] [System]     │
│                                                                 │
│  ▼ API Connection                                               │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Profile Name: [Customer Service              ]            ││
│  │    Unique identifier for this AI profile                    ││
│  │                                                             ││
│  │  Provider: [OpenAI ▼]                                      ││
│  │    OpenAI | Anthropic | Google | Hugging Face | Local      ││
│  │                                                             ││
│  │  Model: [GPT-4o ▼]                                         ││
│  │    Default AI model for reasoning and responses             ││
│  │                                                             ││
│  │  [Test Connection]                                          ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  ▼ Model Behavior                                               │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Temperature: [0.7            ] (0.0 - 1.0)                ││
│  │    Lower = focused, Higher = creative                       ││
│  │                                                             ││
│  │  Max Tokens: [2000            ] (500 - 8000)               ││
│  │    Maximum response length                                  ││
│  │                                                             ││
│  │  Embeddings Model: [text-embedding-3-small ▼]              ││
│  │    Model for semantic search and indexing                   ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  ▼ System Settings                                              │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Timeout (ms): [30000         ] (1000 - 60000)             ││
│  │                                                             ││
│  │  Retry Attempts: [3           ] (0 - 5)                    ││
│  │                                                             ││
│  │  Status: ✓ Enabled                                         ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  [Save] [Cancel]                                                │
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Voice Settings Tab

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Edit AI Profile - Voice Settings                   │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ▼ Voice Selection                                              │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Voice Engine: [OpenAI TTS ▼]                              ││
│  │    OpenAI TTS | ElevenLabs | AWS Polly | Google TTS        ││
│  │                                                             ││
│  │  Voice: [🔍 Search voices...                    ]          ││
│  │    Alloy | Echo | Fable | Nova | Onyx | Shimmer            ││
│  │                                                             ││
│  │  ─── Google TTS Selection (if Google TTS selected) ───     ││
│  │  Language: [🔍 Search language...               ]          ││
│  │    Spanish | English | French | Portuguese | German...     ││
│  │  Accent: [Spain ▼]                                         ││
│  │    Spain | Mexico | US | Argentina...                      ││
│  │  Voice: [🔍 Enceladus ▼]                                   ││
│  │    Chirp D - Female | Chirp E - Male | Enceladus - Female  ││
│  │  Style: [Natural ▼]                                        ││
│  │    Natural | Alegre | Triste | Susurrar | Storyteller      ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  ▼ Voice Configuration                                          │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Pitch: [Medium ▼]                                         ││
│  │    Very Low | Low | Medium | High | Very High              ││
│  │                                                             ││
│  │  Volume: [Medium ▼]                                        ││
│  │    Silent | Very Soft | Soft | Medium | Loud | Very Loud   ││
│  │                                                             ││
│  │  Speech Rate: [Medium ▼]                                   ││
│  │    Very Slow | Slow | Medium | Fast | Very Fast            ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
│  ▼ Test Voice                                                   │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  Text to convert: [Hello, welcome to our service   ]       ││
│  │                                                             ││
│  │  [Generate] [🔊 Play]                                      ││
│  │                                                             ││
│  │  [Download Production]                                      ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

System Prompt Tab

Plaintext
┌─────────────────────────────────────────────────────────────────┐
│              Edit AI Profile - System Settings                  │
├─────────────────────────────────────────────────────────────────┤
│                                                                 │
│  ▼ System Prompt                                                │
│                                                                 │
│  ┌─────────────────────────────────────────────────────────────┐│
│  │                                                             ││
│  │  System Prompt:                                             ││
│  │  ┌─────────────────────────────────────────────────────┐   ││
│  │  │ You are a helpful customer service assistant for   │   ││
│  │  │ a telecommunications company. Be friendly, concise,│   ││
│  │  │ and helpful. Guide users to solutions efficiently. │   ││
│  │  │                                                     │   ││
│  │  │ Key behaviors:                                      │   ││
│  │  │ - Greet customers warmly                           │   ││
│  │  │ - Understand their needs quickly                   │   ││
│  │  │ - Provide clear, step-by-step help                │   ││
│  │  │ - Offer to transfer to human agent if needed      │   ││
│  │  └─────────────────────────────────────────────────────┘   ││
│  │    Instructions that define how the AI should behave       ││
│  │                                                             ││
│  └─────────────────────────────────────────────────────────────┘│
│                                                                 │
└─────────────────────────────────────────────────────────────────┘

Quick Tips

TIP
Temperature: Use 0.3 for accuracy, 0.7+ for creativity.
TIP
Test Voice: Always preview before using in production.
NOTE
System Prompt: Define AI personality and behavior.

---

4. Configuration Sections

API Connection

FieldDescription
Profile NameUnique identifier
ProviderAI service (OpenAI, etc.)
ModelLLM model to use

Model Behavior

FieldDescription
TemperatureCreativity (0.0-1.0)
Max TokensResponse length limit
Embeddings ModelFor semantic search

Voice Settings

FieldDescription
Voice EngineTTS provider
VoiceVoice selection
PitchVoice pitch level
VolumeOutput volume
Speech RateSpeaking speed

System Settings

FieldDescription
TimeoutAPI response timeout
Retry AttemptsRetry on failure
StatusEnable/disable
System PromptAI behavior instructions
---

5. Settings Reference

Providers

ProviderModelsVoice Engines
OpenAIGPT-4o, GPT-4 TurboOpenAI TTS
AnthropicClaude 3 Opus-
GoogleGeminiGoogle TTS
LocalLocal LLMLocal TTS

Temperature Guide

ValueBehaviorUse Case
0.0-0.3Focused, consistentTranscription, facts
0.4-0.6BalancedGeneral assistance
0.7-1.0Creative, variedCreative content

Voice Engines

EngineProviderFeatures
OpenAI TTSOpenAIHigh quality, fast
ElevenLabsElevenLabsVoice cloning
AWS PollyAmazonNeural voices
Google TTSGoogle300+ voices, cascading selection, emotion styles

Google TTS Selection Hierarchy

Google TTS uses a 4-stage cascading selection to manage 300+ voice options:

StageDescriptionExample
LanguageBase languageSpanish, English
AccentRegional variantSpain, Mexico, US
VoiceTechnical variant with personaEnceladus, Chirp D
StyleEmotional toneNatural, Alegre, Triste

Google TTS Voice Types

TypeQualityCostUse Case
StandardBasicLowTesting, drafts
WavenetHighMediumProduction
Neural2PremiumHighProfessional
Chirp3-HDUltraPremiumStudio quality

Google TTS Prosody Controls

ControlRangeDefaultEffect
Speed0.25x - 4.0x1.0xSpeaking rate
Pitch-20 to +20 semitones0Voice tone
Volume-10 to +10 dB0 dBOutput level

Pitch Levels

LevelValueEffect
Very Low-50%Deep voice
Low-25%Slightly lower
Medium0%Normal
High+25%Slightly higher
Very High+50%High pitched

Speech Rate Levels

LevelSpeedUse Case
Very Slow0.5xClear dictation
Slow0.75xInstructions
Medium1.0xNormal
Fast1.5xQuick info
Very Fast2.0xRapid playback
---

6. Common Scenarios & Examples

Scenario 1: Create Customer Service Profile

  1. Add Profile
  2. Name = "Customer Service"
  3. Provider = OpenAI
  4. Model = GPT-4o
  5. Temperature = 0.7
  6. Max Tokens = 2000
  7. Voice Engine = OpenAI TTS
  8. Voice = Alloy
  9. System Prompt = "You are a helpful..."
  10. Save

Scenario 2: Studio Voice Profile

  1. Add Profile
  2. Name = "Studio Voice"
  3. Voice Engine = ElevenLabs
  4. Voice = (select professional voice)
  5. Pitch = Medium
  6. Rate = Slow
  7. Test Voice
  8. Save

Scenario 3: Analysis Profile

  1. Add Profile
  2. Name = "Analysis"
  3. Provider = Anthropic
  4. Model = Claude 3 Opus
  5. Temperature = 0.3 (accurate)
  6. Max Tokens = 4000
  7. (No voice settings needed)
  8. Save

Scenario 4: IVR Bot Profile

  1. Add Profile
  2. Name = "IVR Bot"
  3. Provider = OpenAI
  4. Model = GPT-4o
  5. Temperature = 0.5
  6. Voice = Nova
  7. Rate = Medium
  8. System Prompt = "You are an IVR assistant..."
  9. Test Voice with sample greeting
  10. Save

Scenario 5: Google TTS Profile (Spanish)

  1. Add Profile
  2. Name = "Spanish Voice"
  3. Provider = Google
  4. Voice Engine = Google TTS
  5. Language = Spanish
  6. Accent = Spain (or Mexico, US, etc.)
  7. Voice = Enceladus (or select from Chirp, Wavenet, Neural2)
  8. Style = Natural (or Alegre for friendly, Triste for empathetic)
  9. Adjust Speed, Pitch, Volume as needed
  10. Enter test text and click "Convert to Audio"
  11. Preview, then Save

---

7. Limitations & Important Notes

Technical Notes

NOTE
Provider Required: Must select a provider from AI Providers first.
NOTE
Voice Testing: Uses API credits for TTS generation.
WARNING
System Prompt: Keep concise for faster responses.

Best Practices

  1. Use Profiles for Purposes: Don't reuse same profile for everything
  2. Test Voice Settings: Preview before production
  3. Tune Temperature: Match to use case
  4. Write Clear Prompts: Specific instructions work best
  5. Monitor Usage: API calls cost money

Profile Use Cases

Profile TypeTemperatureVoiceExample
Customer Service0.6-0.7FriendlyAlloy, Nova
Announcements0.2-0.3ProfessionalOnyx
Analysis0.1-0.3None-
Creative0.7-1.0Varied-
---

8. Troubleshooting Tips

Common Issues

SymptomPossible CauseSolution
Connection failedWrong providerCheck AI Providers
Voice won't playAudio blockedCheck browser
Slow responsesLow timeoutIncrease timeout
Generic answersVague promptImprove system prompt

Test Connection

Bash
# Test API manually
curl https://api.openai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello"}]}'

Debug Voice

  1. Click Test Voice
  2. Enter sample text
  3. Click Generate
  4. Check for error messages
  5. Verify voice is selected
  6. Check audio playback

---

9. Glossary

TermDefinition
TemperatureAI creativity control
Max TokensResponse length limit
TTSText-to-Speech
EmbeddingsVector representations
System PromptAI behavior instructions
Voice EngineTTS service provider
---

Lua Script Status ℹ️

Integration Module

ComponentStatus
AI Profilesℹ️ AI configuration - no Lua handler required
AI Profiles is a configuration module. It defines how AI services behave. No Lua handlers are used - profiles are referenced by AI-powered features throughout the system.

---

Documentation last updated: January 2026
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?