Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 8 min read

Build a Multilingual AI Insurance Comparator with Telnyx Edge Compute

Insurance comparison sites have a conversion problem. Customers land on a form, stare at twenty fields, bounce. The ones who finish still have to wait for a callback from a human agent to understand the fine print. Add m

Insurance comparison sites have a conversion problem. Customers land on a form, stare at twenty fields, bounce. The ones who finish still have to wait for a callback from a human agent to understand the fine print. Add multiple languages and the operational cost multiplies β€” a separate call center for Italian, another for French, another for German.

What if one AI assistant could handle the entire customer journey by voice or chat, in four languages, with native-sounding speech β€” and the whole thing ran on a single platform account?

That is exactly what the Telnyx Demo Comparator does. Clara, a multilingual AI insurance advisor, walks customers through every step: filling in the quote form conversationally, comparing six insurers side by side, selecting optional coverage, delivering the quote by SMS, WhatsApp, or email, verifying the customer's phone number with an OTP, and scheduling a callback. She does it in Italian, English, French, and German β€” each language with its own dedicated AI Assistant, native female Telnyx voice, tailored prompt, greeting, and speech recognition configuration.

Behind the customer-facing experience sits a full admin console: live monitoring, conversation insights with intent analysis and win/loss tracking, a leads pipeline, message logs, AI Assistant management, a knowledge base powered by embeddings, channel configuration for SMS/WhatsApp/Email/Verify, user roles with granular permissions, an audit log, and flows-and-traces with per-turn timing.

The entire platform runs on 10+ Telnyx products through one account. No external AI provider. No third-party messaging gateway. No separate analytics vendor. This is Telnyx AI Communications Infrastructure in practice β€” one platform replacing the whole vendor stack.

Try the live demo: https://telnyx-demo-comparator-27ecf463-b.telnyxcompute.com/

What Does the Demo Comparator Build?

A production-grade insurance comparison platform with four comparator verticals (car, energy, broadband, mobile) and a utilities contract management flow. The car insurance comparator is the flagship experience:

Component Purpose
Customer-facing comparator Quote form, insurer comparison, extras selection, quote delivery
Clara (AI Assistant) Conversational guide β€” voice or chat β€” in 4 languages
Admin console Monitoring, insights, leads, messages, knowledge base, users, audit
Outbound AI calls Callback scheduling and contract renewal calls via TeXML
Edge deployment Full stack on Telnyx Edge Compute with Edge SQL database

Why This Matters for Developers

The comparison-site pattern β€” form filling, multi-vendor lookup, quote delivery, identity verification, callback scheduling β€” appears across insurance, finance, telecoms, energy, and travel. Traditionally, building this requires stitching together six or more vendors:

  • An AI/LLM provider for the conversational agent
  • A voice platform for telephony
  • A messaging gateway for SMS and WhatsApp
  • An email delivery service
  • A phone verification provider
  • An analytics platform for conversation insights

Each vendor has its own SDK, authentication, billing, and failure modes. Developers call this the Frankenstack.

Telnyx collapses it into one account. One API key authenticates to AI Assistants, voice, messaging, email, verification, knowledge base, inference, and edge compute. One dashboard monitors everything. One bill at the end of the month.

Products Used

The Demo Comparator touches 10+ Telnyx products. Here is what each one does in this application:

Product Role in the Comparator
AI Assistants Conversation WebSocket with STT, LLM, and TTS β€” Clara's brain
Telnyx-hosted voices Native female voice per language (Italian, English, French, German)
Knowledge Base Cloud Storage + vector embeddings for insurance product information
Messaging API (SMS) Quote delivery and OTP codes via SMS
WhatsApp Business Quote delivery with per-language WhatsApp templates
Telnyx Email Quote delivery via email
Verify API SMS OTP for phone number verification
TeXML AI Calls Outbound callbacks for scheduled follow-ups and contract renewals
Conversation Insights Intent analysis, win/loss tracking, turning-point detection
Edge Compute Application hosting on Telnyx carrier-edge infrastructure
Edge SQL DB Persistent relational database at the edge

How Does the Customer Journey Work?

Here is what happens when a customer visits the comparator and starts a conversation with Clara:

Customer visits comparator
        |
        v
Picks language (IT / EN / FR / DE)
        |
        v
Clara greets in native language
(dedicated AI Assistant + native voice)
        |
        v
Conversational form filling
(vehicle, driver, coverage needs)
        |
        v
Clara compares 6 insurers
(price, coverage, ratings)
        |
        v
Customer selects extras
(roadside assistance, legal protection, etc.)
        |
        v
Quote delivery
(SMS, WhatsApp, or email β€” customer chooses)
        |
        v
Phone verification via OTP
(Verify API sends code, customer confirms)
        |
        v
Callback scheduling
(TeXML outbound AI call at chosen time)

Each step is a natural conversation turn. Clara never presents a traditional web form β€” she asks questions, confirms answers, and moves forward. The customer can switch between voice and chat at any point.

How Does the Architecture Connect?

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                   Telnyx Edge Compute                    β”‚
β”‚                                                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Comparator   β”‚    β”‚   Admin       β”‚    β”‚  Edge SQL  β”‚ β”‚
β”‚  β”‚  Frontend     β”‚    β”‚   Console     β”‚    β”‚  Database  β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜  β”‚
β”‚         β”‚                   β”‚                   β”‚        β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                   β”‚        β”‚
β”‚                     β”‚                           β”‚        β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”                   β”‚        β”‚
β”‚              β”‚  Application  β”‚β—„β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚
β”‚              β”‚  Server       β”‚                           β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                            β”‚
β”‚                     β”‚                                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚             β”‚                         β”‚
        v             v                         v
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”           β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ AI Assist. β”‚ β”‚ Messaging β”‚           β”‚ Verify API β”‚
  β”‚ WebSocket  β”‚ β”‚ SMS/WA/   β”‚           β”‚ (SMS OTP)  β”‚
  β”‚ STT/LLM/  β”‚ β”‚ Email     β”‚           β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  β”‚ TTS        β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜       β”‚
        β”‚              β”‚
        v              v
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚ Knowledge β”‚ β”‚ Conv.     β”‚    β”‚ TeXML AI     β”‚
  β”‚ Base +    β”‚ β”‚ Insights  β”‚    β”‚ Calls        β”‚
  β”‚ Embeddingsβ”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚ (outbound)   β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

The application server is the orchestration hub. It manages WebSocket connections to Telnyx AI Assistants for real-time conversation, dispatches quote delivery through whichever channel the customer chooses, triggers OTP verification, schedules outbound callbacks, and writes every interaction to Edge SQL for the admin console to query.

Each language has its own AI Assistant configuration:

  • Italian: Native Italian female voice, Italian system prompt, Italian greeting, Italian STT model
  • English: Native English female voice, English system prompt, English greeting, English STT model
  • French: Native French female voice, French system prompt, French greeting, French STT model
  • German: Native German female voice, German system prompt, German greeting, German STT model

The knowledge base stores insurance product data as vector embeddings. Clara retrieves relevant policy details during the conversation using semantic search β€” she does not hallucinate coverage terms or pricing.

What Does the Admin Console Show?

The admin console is not a monitoring afterthought. It is a production operations tool:

  • Live monitoring β€” Active conversations, response latency, turn counts in real time
  • Conversation insights β€” Intent classification, sentiment tracking, win/loss analysis, turning-point detection (the moment a customer decided to buy or abandon)
  • Leads pipeline β€” Every quote request becomes a lead with status tracking through the funnel
  • Message log β€” Full transcript of every SMS, WhatsApp, and email message sent and received
  • AI Assistant management β€” Create, configure, and test assistants with different prompts, voices, and knowledge bases
  • Knowledge base β€” Upload documents, manage embeddings, test retrieval queries
  • Channel configuration β€” SMS sender numbers, WhatsApp Business templates per language, email sender addresses, Verify API settings
  • Users and roles β€” Granular permissions for agents, supervisors, and administrators
  • Audit log β€” Every admin action recorded with timestamp, actor, and diff
  • Flows and traces β€” Per-turn timing breakdown: STT latency, LLM inference time, TTS generation, total round-trip

How Does Telnyx AI Communications Infrastructure Replace the Vendor Stack?

This is the core insight. A traditional insurance comparison platform serving four languages would require:

Function Traditional stack Telnyx equivalent
Conversational AI OpenAI + custom orchestration AI Assistants (managed WebSocket)
Voice Twilio Voice or Vonage Telnyx-hosted voices (native per language)
SMS Twilio Messaging Telnyx Messaging API
WhatsApp 360dialog or Meta direct Telnyx WhatsApp Business
Email SendGrid or SES Telnyx Email
Phone verification Twilio Verify Telnyx Verify API
Outbound AI calls Custom SIP + LLM TeXML AI Calls
Conversation analytics Custom pipeline Telnyx Conversation Insights
Hosting AWS/GCP Telnyx Edge Compute
Database RDS/Cloud SQL Edge SQL

That is ten separate vendor relationships, ten sets of credentials, ten billing systems, ten places where things can break at 2 AM. With Telnyx, it is one account, one API key, one dashboard, one support contact.

The latency advantage compounds too. Because AI Assistants, voice processing, and the application server all run on Telnyx carrier-edge infrastructure, the round-trip from speech to response avoids the public internet hop to a cloud region. Clara responds in under two seconds even in multi-turn conversations.

Frequently Asked Questions

Can I add more languages beyond the four included?

Yes. Each language is a separate AI Assistant with its own voice, prompt, greeting, and STT configuration. Adding a fifth language means creating a new AI Assistant in the Telnyx portal, selecting a native voice for that language, writing the system prompt and greeting, and adding the language option to the comparator frontend.

Does this work for verticals other than car insurance?

The demo already includes energy, broadband, and mobile comparators using the same Clara experience. The pattern β€” conversational form filling, multi-option comparison, multi-channel quote delivery, identity verification, callback scheduling β€” applies to any comparison or quoting workflow: travel insurance, mortgage comparison, telecoms plans, utility switching.

How does the Knowledge Base prevent Clara from hallucinating policy details?

Insurance product data is stored as vector embeddings in the Telnyx Knowledge Base (Cloud Storage + embeddings). When a customer asks about coverage details, deductibles, or exclusions, Clara performs a semantic search against the knowledge base and grounds her response in the retrieved documents. She cites specific policy terms rather than generating them.

What happens if the customer switches from voice to chat mid-conversation?

The AI Assistant WebSocket maintains conversation state regardless of input modality. A customer can speak their vehicle details, switch to typing their address, then go back to voice for coverage questions. The conversation history and form state persist across the switch.

How are outbound callbacks handled?

When a customer schedules a callback, the application writes the appointment to Edge SQL and triggers a TeXML AI Call at the scheduled time. The outbound call uses the same AI Assistant (language-matched) so Clara picks up the conversation where it left off. This also powers contract renewal reminders in the utilities flow.

Resources

Related Examples

Explore more Telnyx code examples that demonstrate individual products used in this comparator:

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.