Skip to content

Email-Based AI Chatbot Agent

Azure Functions & Azure OpenAI

Architect: Britt Bottoms

graph TB
    A[User] -->|Access with Custom URL and SSL| B[Open WebUI]
    B -->|SSO - OIDC - Entra ID| C[User Authentication]
    C -->|Authentication| B

    B --> D[Azure Cache for Redis]
    B --> E[LLM Pipeline in App Service]

    F[Large Language Model] -->|Response| B
    E --> F

    I[PGVECTOR in PostgreSQL flexible server] --> E

    B -->|Retrieval-Augmented Generation| J[Apache Tika in App Service]
    J -->|Text Extraction| G[Sentence-Transformers Embedding Model]
    G -->|Embedding| I

    B -->|Connects to| H[Azure Database for PostgreSQL flexible server]
    
    B --> L[Azure File Shares]
    E --> L

    subgraph Azure
        B
        C
        D
        E
        F
        G
        H
        I
        J
        L
    end
End User (Sends Email)Azure Function (Email Processor)AI APISMTP ServerSends email questionSends question for AI responseReturns AI-generated answerSends reply email with answer via SMTPDelivers AI answer to user’s inboxEnd User (Sends Email)Azure Function (Email Processor)AI APISMTP Server