Skip to main content

Unified Architecture Overview

Service Configuration and Business Management Integration​


Executive Summary​

This document provides comprehensive technical documentation for the WIIL Platform's unified architecture, bridging the Service Configuration system with the Business Management system. The architecture enables organizations to deploy AI-powered conversational agents that leverage business services to conduct intelligent customer conversations, ultimately driving transactional outcomes such as appointments, reservations, and orders.

The central integration point is the Conversations entity, which connects:

  • Agents in Deployment Configurations (from Service Configuration)
  • Business Customers (end users)
  • Transactional Operations (Service Appointments, Reservations, Menu Orders, Product Orders)

1. Introduction​

1.1 Purpose​

The WIIL Platform integrates two major architectural domains:

  1. Service Configuration: Manages the deployment of AI agents through instruction configurations, deployment configurations, and communication channels.

  2. Business Management: Manages business entities (services, resources, menus, products) and their transactional operations.

The Conversations entity serves as the bridge, enabling AI agents to leverage business services in real-time customer interactions.

1.2 Scope​

This documentation covers:

  • Service Configuration components and their role in agent deployment
  • Business Management components and their catalog/transaction model
  • The Conversations entity as the central integration point
  • Data flow between both systems
  • Schema definitions for conversation handling

1.3 Intended Audience​

  • Solution Architects
  • Platform Engineers
  • Backend Developers
  • Integration Specialists
  • Technical Project Managers

2. Unified Architecture Overview​

2.1 High-Level Architecture​

Unified Architecture

2.2 Integration Points​

The architecture has three key integration points:

Integration PointConnectsPurpose
ConversationsAgents ↔ CustomersCentral hub for AI-powered customer interactions
Instruction ConfigurationsService Config ↔ ConversationsDefines agent behavior in conversations
TransactionsConversations ↔ Business EntitiesCreates business outcomes from conversations

2.3 Design Principles​

Unified Customer Experience: Customers interact through Conversations, unaware of the underlying system complexity.

Separation of Configuration and Execution: Service Configuration defines how agents behave; Business Management defines what they can do.

Transactional Outcomes: Every conversation can result in measurable business transactions.

Multi-Channel Support: Conversations span multiple channel types (OTT Chat, Telephony, SMS, Email).


3. Service Configuration Domain​

3.1 Overview​

The Service Configuration domain manages the deployment and behavior of AI agents within the platform.

3.2 Agent Configurations​

Purpose: Define AI agent capabilities and characteristicsβ€”the technical setup that powers agent deployments.

Key Attributes:

  • AI model selection (modelId, modelProvider)

Relationship to Deployments:

  • One Agent Configuration can power multiple Deployment Configurations
  • Combined with Instruction Configurations to create deployable agents
  • Examples: "Sales Agent", "Support Agent", "Booking Agent"

For API details, see Agent Configurations API Reference.

3.3 Instruction Configurations​

Purpose: The heart of agent behaviorβ€”defines the prompts, guidelines, and contextual instructions that govern how agents conduct conversations.

Key Attributes:

  • System prompts
  • Conversation guidelines
  • Domain-specific instructions
  • Compliance rules
  • Escalation criteria

Relationship to Conversations:

  • Referenced by instruction_config_id in Conversation records
  • Guides AI behavior during customer interactions

For API details, see Instruction Configurations API Reference.

3.4 Deployment Channels​

Purpose: Manage communication channels for agent deployments.

Channel Types:

  • OTT (Voice and Chat)
  • Telephony
  • SMS

For API details, see Deployment Channels API Reference.

3.5 Deployment Configurations​

Purpose: Combines agent configurations with instruction configurations to create deployable units.

Key Attributes:

  • Deployment identifier
  • Agent configuration reference
  • Instruction configuration reference
  • Channel configuration

Relationship to Conversations:

  • Referenced by deployment_config_id in Conversation records
  • Determines which agent handles the conversation

For API details, see Deployment Configurations API Reference.

3.6 Management Modules​

The platform provides specialized management modules:

ModuleManagesReceives Data From
Appointment ManagementBusiness Service catalogService Appointments
Reservation ManagementReservable Assets catalogReservations
Menu ManagementMenu Category/Items catalogMenu Orders
Product ManagementProduct Category/Product catalogProduct Orders
Property ManagementProperty Category/Address/Listing catalogProperty Inquiries

3.7 Advanced Service Configuration​

Purpose: Enables voice-powered conversations through end-to-end processing pipelines.

Key Components:

ComponentPurpose
Provisioning Chain ConfigurationSTT β†’ Agent β†’ TTS processing pipeline
Speech-to-Text (STT)Voice input transcription (Deepgram, OpenAI Whisper, Cartesia)
Text-to-Speech (TTS)Natural voice synthesis (ElevenLabs, Cartesia, OpenAI)

Relationship to Conversations:

  • Referenced by stt_model_id and tts_model_id in Conversation records
  • Enables TELEPHONY_CALL conversation types

For detailed documentation, see Translation Services.

3.8 Translation Services​

Purpose: Real-time multilingual voice translation for cross-language communication.

Key Components:

ComponentPurpose
Translation Chain ConfigurationSTT β†’ Translation β†’ TTS pipeline for language pairs
Translation SessionsLive voice-to-voice translation sessions
Translation ParticipantsMulti-participant support with language isolation
Knowledge SourcesKnowledge bases for translation accuracy

Capabilities:

  • Bidirectional translation (both parties hear translated speech)
  • Multi-participant sessions (3+ participants, each in native language)
  • Full transcription logging

For detailed documentation, see Translation Services.


4. Business Management Domain​

4.1 Overview​

The Business Management (Business Mgt) domain manages business entities and their associated catalogs.

4.2 Business Entities​

Business Mgt Manages:

EntityPurposeTransaction Type
Business ServiceBookable services (salon, clinic, consulting)Service Appointment
Reservable Assets (Resources)Bookable resources (tables, rooms, equipment)Reservations
Menu Category and MenuItemsFood/beverage offeringsMenu Order
Product Category and ProductRetail productsProduct Order
Property CategoryProperty classification for real estate-
Property AddressProperty location information-
Property ListingReal estate listings (residential, commercial, land)Property Inquiry

4.3 Customer​

Purpose: Represents business customers who interact through conversations and create transactions.

Key Attributes:

  • Identity (name, email, phone)
  • Profile preferences and tags
  • Transaction history references
  • Lifecycle status (ACTIVE, INACTIVE)
  • First and last contact dates

Relationships:

  • Referenced by customer_id in Conversation records
  • Referenced by customer_id in all transaction types
  • Linked to Service Appointments, Reservations, Menu Orders, Product Orders, Property Inquiries

For API details, see Customer API Reference.

4.4 Transactional Entities​

Transactions are created as outcomes of Conversations:

TransactionUses CatalogCreated Via
Service AppointmentBusiness ServiceConversation with AI Agent
ReservationsReservable AssetsConversation with AI Agent
Menu OrderMenu Category/ItemsConversation with AI Agent
Product OrderProduct Category/ProductConversation with AI Agent
Property InquiryProperty ListingConversation with AI Agent

5. Conversations - The Integration Hub​

5.1 Overview​

Conversations is the central entity that bridges Service Configuration and Business Management. It represents a single interaction session between a Business Customer and an AI Agent deployed via the Service Configuration system.

5.2 Conversation Initiation Flow​

Business Customer
β”‚
β”‚ Initiates contact via Channel
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Channel Handler │──────▢ Resolves deployment_config_id
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Create β”‚
β”‚ Conversation │──────▢ Links instruction_config_id
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Links customer_id
β”‚
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ AI Agent │──────▢ Uses Instruction Configuration
β”‚ (via Deployment)β”‚ Uses Business Catalogs
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β”‚ Conducts conversation
β”‚ Creates transactions as needed
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Transaction │──────▢ Service Appointment / Reservation
β”‚ Created β”‚ Menu Order / Product Order
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

5.3 Transaction Creation Flow​

Conversation (Active)
β”‚
β”‚ Customer expresses intent
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ AI Agent │──────▢ Queries Business Catalog
β”‚ Processes β”‚ (via Business Mgt)
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β”‚ Identifies matching service/resource/product
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Confirm with β”‚
β”‚ Customer β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β”‚ Customer confirms
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Create │──────▢ Service Appointment
β”‚ Transaction β”‚ Reservation
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Menu Order
β”‚ Product Order
β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Management │──────▢ Appointment Management
β”‚ Module β”‚ Reservation Management
β”‚ Receives Data β”‚ Menu Management
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ Product Management

6. Telephony-Specific Features​

6.1 Call Transfer​

For telephony conversations, the platform supports call transfers:

{
transfer_type?: 'blind' | 'warm', // Unattended or attended transfer
transfer_target: string, // Target phone number
transfer_initiated_at?: number, // When transfer started
transfer_completed_at?: number, // When transfer completed
transfer_status: 'pending' | 'completed' | 'failed' | 'returned',
transfer_reason?: string // Why transfer occurred
}

6.2 Voice Configuration​

Telephony conversations can specify:

  • stt_model_id: Speech-to-Text model for transcription
  • tts_model_id: Text-to-Speech model for voice synthesis
  • resource_url: Recording or call detail URL

7. Operational Workflows​

7.1 End-to-End Booking Workflow​

1. Customer contacts business via phone/chat/web
β”‚
β–Ό
2. Channel routes to Deployment Configuration
β”‚
β–Ό
3. Conversation created with:
β€’ deployment_config_id
β€’ instruction_config_id
β€’ channel_id
β€’ customer_id (if known)
β”‚
β–Ό
4. AI Agent (guided by Instructions) engages customer
β”‚
β–Ό
5. Agent queries Business Catalogs:
β€’ Available services
β€’ Available time slots
β€’ Available resources
β”‚
β–Ό
6. Customer selects and confirms
β”‚
β–Ό
7. Transaction created:
β€’ Service Appointment / Reservation / Order
β”‚
β–Ό
8. Conversation summarized and completed
β”‚
β–Ό
9. Management Module processes transaction

7.2 Multi-Transaction Conversation​

A single conversation can create multiple transactions:

Conversation: Restaurant Booking
β”‚
β”œβ”€β”€β–Ά Reservation (table for 4 at 7pm)
β”‚
└──▢ Menu Order (pre-order appetizers)

8. Glossary​

TermDefinition
Agent ConfigurationDefines AI agent capabilities and characteristics (model selection, provider)
Business CustomerEnd user who interacts with the platform through conversations
Business MgtBusiness Management - manages business entity catalogs
ConversationA single interaction session between a customer and an AI agent
Conversation TypeThe channel medium (OTT_CHAT, TELEPHONY_CALL, SMS, EMAIL)
Deployment ChannelCommunication channel for agent deployments (OTT, Telephony, SMS)
Deployment ConfigurationCombined agent and instruction configuration for deployment
Instruction ConfigurationDefines AI agent behavior during conversations
Management ModulePlatform service that manages specific catalog and transaction types
Service ConfigurationSystem for deploying and configuring AI agents
TransactionBusiness outcome from a conversation (appointment, reservation, order)

9. Appendix​

9.1 Conversation Status Values​

StatusDescription
ACTIVEConversation is ongoing
COMPLETEDConversation ended normally
TRANSFERREDCall was transferred to another party
ABANDONEDCustomer left before completion
FAILEDTechnical failure occurred

9.2 Conversation Summary Sentiments​

SentimentDescription
POSITIVECustomer had a positive experience
NEUTRALNeither positive nor negative
NEGATIVECustomer had a negative experience
MIXEDCombination of sentiments

9.3 Document Revision History​

VersionDateAuthorChanges
1.02025Architecture TeamInitial unified documentation

End of Document