Skip to main content
Lola Send is a conversational AI platform that enables financial institutions to deploy intelligent agents on messaging channels. Built on Celai, the platform processes inbound messages through an ordered middleware pipeline, routes conversations to the appropriate agent based on sender state, and delivers formatted responses back through the originating channel. The application is stateless by design — session state and conversation history live in Redis, identity and compliance data live in backend services. This separation enables horizontal scaling and ensures no sensitive data persists in the application layer.

Architecture layers

LayerTechnologyPurpose
FrameworkCelai (proprietary)Message gateway, agent orchestration, middleware pipeline
ChannelsWhatsApp, Telegram, ChatwootMessaging connectors — pluggable
AI modelsGoogle Gemini (Vertex AI), OpenAIAgent reasoning, response refinement, message enhancement
StateRedisSession state, conversation history (stateless app)
MiddlewareAuth, contact decoding, commands, ChatwootPre-processing pipeline before agent routing
SecurityJWT (EC keys), HMAC, AES encryption, DopplerAuth, callback integrity, secret management
DeploymentDocker (non-root), RailwayContainerized cloud deployment

Message flow

Every inbound message follows the same deterministic path through the platform:
  1. Channel reception — A sender’s message arrives via WhatsApp webhook and is received by the WhatsappConnector, which normalizes the payload into Celai’s internal message format.
  2. MessageGateway — The central HTTP server accepts the normalized message and passes it into the middleware pipeline.
  3. Middleware pipeline — The message flows through an ordered chain of processors:
    • CommandsAuthMiddleware — intercepts and authorizes slash commands
    • PayhubAuthMiddleware — authenticates the sender by phone number and injects identity into message metadata
    • ContactDecodingMiddleware — normalizes contact information
    • ChatwootMiddleware — syncs the conversation to Chatwoot for human agent visibility and handoff
  4. LogicRouter — Evaluates the sender’s identity and compliance status to select the appropriate agent: onboarding, sender home, blocked, pending CIP, or service unavailable.
  5. Agent processing — The selected MacawAssistant processes the message using its system prompt, AI model, and declared tool functions. Tool functions retrieve all factual data — quotes, recipients, operations — from backend services. The model never generates this data.
  6. Message enhancement — The agent’s response passes through the Gemini-powered message enhancer, which formats the output with WhatsApp-specific styling (bold, lists, spacing).
  7. Channel delivery — The WhatsappConnector formats the enhanced response for the WhatsApp Business API and delivers it to the sender.
Lola Send does not make compliance decisions — it orchestrates the conversational flow and routes senders based on verdicts returned by the bank’s compliance services.

Bank control points

Financial institutions retain direct control over the following aspects of the platform:
Control pointWhat the bank configures
Agent promptsSystem prompts that define agent tone, behavior, and conversational boundaries
Tool availabilityWhich backend service calls each agent can invoke
Middleware orderingThe sequence and composition of the pre-processing pipeline
Channel allowlistsWhatsApp number allowlists for controlled rollouts and phased deployments
Escalation triggersConditions under which a conversation routes to a live human agent via Chatwoot
Chatwoot handoff rulesHow and when conversations sync to the omnichannel dashboard
LogicRouter rulesAgent selection criteria based on sender state and compliance status

AI model strategy

Lola Send uses a multi-model architecture where each model serves a specific, bounded role:
RoleModelProviderPurpose
Agent reasoningGPT-4oOpenAIPrimary conversation logic and tool invocation
Response refinementGPT-4.1OpenAIBlend model for tone, clarity, and brand consistency
Message enhancementGemini 2.5 Flash LiteGoogle (Vertex AI)Language detection and structured output formatting
Gemini powers the message enhancement pipeline — the last stage before responses reach the sender. It runs on Google Cloud Vertex AI, which supports VPC Service Controls to keep all inference traffic within the bank’s GCP perimeter. No conversation data leaves the controlled network boundary during enhancement. The bank can configure model selection per agent via MacawSettings and select the enhancement model independently. Model provider choices are driven by data governance requirements — not locked to a single vendor.
The bank can modify agent behavior by updating system prompts and tool availability without changes to application code. This separation of configuration from logic enables rapid iteration on conversational flows.