Web

Company Portfolio Site

Full-stack company website highlighting agentic automation capabilities with interactive chatbot and voice integration.

Product preview
  • 98/100 LightHouse PageSpeed Index
  • <0.4s Pre-rendered First Load
  • Instant client:visible Interactive Time
  • 150ms WebSocket Chat Latency

Challenge, solution, outcome

Challenge

The agency needed a website that wasn't just a static flyer, but a living demonstration of their custom AI and voice automation services.

  • Achieving fast initial page load speeds while integrating interactive client-side React chat widgets
  • Maintaining session state for WebSocket chat clients across serverless restarts

Solution

Built a high-performance Astro frontend connected to a Python FastAPI backend hosting active AI conversational agents.

  • Used Astro's client:visible directive to defer loading the React chatbot code until the user scrolls to it
  • Configured local session storage keys on client browser mapping to stateless memory buffers on FastAPI

Outcome

Delivered a responsive site that showcases live chatbot conversations and agent capabilities, resulting in higher qualified sales inquiries.

Architecture & engineering

System layers derived from the delivery stack — how the product is composed end to end.

  1. Frontend Core

    Ultra-lightweight static content loading in sub-second times, with deferred hydrations for interactive subcomponents.

    • Astro v4
    • React Components
    • Tailwind CSS
  2. AI Backend Orchestration

    Streaming asynchronous messaging gateway coordinating LLM agents, outbound calls, and persistent conversation context.

    • FastAPI
    • Python
    • LangChain
    • OpenAI API

Key features

  • 01Astro Static-Site Core with Pre-rendered HTML Pages
  • 02Interactive LLM-Powered Chatbot with WebSockets
  • 03Outbound calling agent integration demo
  • 04FastAPI backend orchestrating LangChain agents
  • 05Prompt-engineered templates for specific agency services
  • 06Tailwind styling with responsive grid layouts

Technology stack

Frontend Core

Ultra-lightweight static content loading in sub-second times, with deferred hydrations for interactive subcomponents.

Astro v4React ComponentsTailwind CSS

AI Backend Orchestration

Streaming asynchronous messaging gateway coordinating LLM agents, outbound calls, and persistent conversation context.

FastAPIPythonLangChainOpenAI APIWebSockets

Results & impact

  • 98/100
    LightHouse
    PageSpeed Index
  • <0.4s
    Pre-rendered
    First Load
  • Instant
    client:visible
    Interactive Time
  • 150ms
    WebSocket
    Chat Latency
  • Optimized asset payloads in Astro through client directives and script optimization.
  • Connected Python FastAPI backend APIs to Astro static web frontends.
  • Leveraged LangChain to create context-aware custom prompt completions.

Let's build something excellent.

Get in touch to discuss details, projects, or collaborations.

Local Time: Asia/Karachi 12:00 PM