AI

BitBot Avatar: How We Built a Voice-Powered AI Assistant That Talks to Your Cloud

Combining ElevenLabs conversational AI, n8n workflow automation, and Azure CLI to create an interactive voice assistant with rich data artifacts.

👤
Bitovi

What If You Could Just Talk to Your Cloud?

Imagine this: instead of clicking through Azure portal dashboards, memorizing CLI commands, or navigating endless resource lists, you simply say what you need. You ask a question in plain English — and your cloud environment answers you. Out loud. With charts.

That's the problem we set out to solve with BitBot Avatar — a proof of concept we built at Bitovi to explore how conversational AI, workflow automation, and cloud tooling can combine into something genuinely useful.

BitBot Avatar is a voice-powered AI assistant that lets you have a natural conversation with your cloud infrastructure. Ask it about your Azure resources, and it doesn't just respond with words — it generates rich visual artifacts like metric cards, bar charts, and detailed resource tables, all rendered in real-time alongside the voice response.

BitBot Avatar main interface — choose between Video and Audio conversation modes
BitBot Avatar main interface — choose between Video and Audio conversation modes

In this post, we'll walk through how we built it — the architecture decisions, the integration patterns, and the surprisingly small amount of infrastructure needed to make it all work. Whether you're building AI-powered tools for your own team or evaluating what's possible with today's voice + AI stack, there's something here for you.

The Building Blocks: ElevenLabs, n8n, and Azure

When we started building BitBot Avatar, we wanted to prove that a voice-driven AI assistant could provide genuinely valuable interaction — helping users diagnose issues, surface insights, and take action on their cloud infrastructure through natural conversation. Here's what we chose and why:

ElevenLabs provides the conversational AI layer. It handles voice input/output, maintains conversation context, and manages the agent personality. (Yes, we made BitBot "fun and cheeky" — it occasionally drops egg puns. Because why not.)

n8n serves as the workflow automation backbone. It orchestrates the entire request lifecycle — from receiving webhook calls to routing queries, calling tools, and preparing structured responses. For Bitovi, n8n has become a go-to platform for building complex AI agent pipelines with visual, maintainable workflows.

Azure CLI is the data source. When BitBot needs to know what's running in the cloud environment, it reaches directly into Azure through CLI commands — listing accounts, resource groups, storage accounts, virtual machines, and more. This could just as easily be AWS, GCP, or any API.

Architecture overview — User speaks to ElevenLabs, which triggers n8n workflows that query Azure and return voice + visual responses
Architecture overview — User speaks to ElevenLabs, which triggers n8n workflows that query Azure and return voice + visual responses

The beauty of this architecture is its modularity. ElevenLabs handles the conversation. n8n handles the logic. Azure provides the data. Swap any piece — use a different voice provider, a different data source, a different orchestration engine — and the pattern still holds. That modularity is what makes this approach practical for real-world applications.

A Conversation With Your Data

The user experience is intentionally simple. When you open BitBot Avatar, you're presented with two conversation modes: Start Video (powered by HeyGen) and Start Audio (powered by ElevenLabs). For this walkthrough, we're focused on the audio experience.

Once you start an audio session, the interface reveals three sections:

The audio conversation interface with Artifacts panel (left), push-to-talk (center), and Live Transcript (right)
The audio conversation interface with Artifacts panel (left), push-to-talk (center), and Live Transcript (right)

The push-to-talk interaction model is a deliberate UX choice. You can click and hold a button, or simply hold the spacebar, then release when you're done speaking. This avoids the awkward silence-detection issues that plague many voice interfaces — you control exactly when you're speaking and when you're done.

From Question to Answer: A Live Cloud Query

Here's where it gets exciting. In a live demo, we asked BitBot a straightforward question:

"I'd like to get an overview and details of all of the resources that we have in our cloud environment at the moment."

BitBot responded immediately with an acknowledgment — "I'm cracking into our cloud records to find those details for you right now, just a moment" — and then went to work. Behind the scenes, the ElevenLabs agent triggered a webhook call to n8n, which kicked off a workflow execution.

While the workflow was running, BitBot stayed engaged. It's configured to check in periodically — about every minute — so if processing takes time, it won't leave you in silence. It might ask "How are things going in your position lately? Are you working on anything fun?" — keeping the conversation natural while the heavy lifting happens in the background.

When the results came back, BitBot delivered a spoken summary:

"That was an egg-citing search in our Azure subscription! We have seven resource groups and thirty-two total resources, mostly supporting the BitBot Avatar project across various regions."

But the real magic happened on the left side of the screen — six rich artifacts appeared automatically:

Full conversation result — artifacts panel showing metrics, tables, and bar chart alongside the live transcript
Full conversation result — artifacts panel showing metrics, tables, and bar chart alongside the live transcript

The artifacts include:

Bar chart showing Azure resource distribution by type — storage accounts, virtual networks, compute resources
Bar chart showing Azure resource distribution by type — storage accounts, virtual networks, compute resources

This is the key insight: voice interfaces don't have to be text-only. By combining spoken responses with visual artifacts, you get the best of both worlds — the speed and naturalness of voice, plus the precision and density of data visualization.

Behind the Curtain: The Surface-Core Pattern

The architecture powering all of this follows what we call the Surface-Core pattern — a design approach we use frequently for AI agent systems at Bitovi.

flowchart LR subgraph Surface["Surface Layer"] direction TB WH[Webhook Trigger] DB[(Conversation DB)] LLM[Structured Output Parser] OUT[Response Formatter] end subgraph Core["Core"] direction TB BP[Base Prompts] IR{Intent Router} AG[Generic Agent] end EL[ElevenLabs] -->|Tool Call| WH WH --> DB DB -->|Chat History| Core IR -->|SSPR| SSPR[Password Reset] IR -->|Default| AG AG -->|Azure CLI| AZ[Azure] AG -->|Web Search| WEB[Web] Core -->|Raw Response| LLM LLM -->|Text + Artifacts| OUT OUT -->|Webhook Response| EL

The Surface is responsible for everything related to input/output:

The Core handles the actual intelligence:

This separation is powerful because it means you can swap surfaces without touching the core. Want to add a Slack integration? Build a new surface. Need a Teams bot? Another surface. The core logic — the agents, the tools, the data access — stays exactly the same.

n8n workflows overview — Surface, Core, Azure CLI, SSPR, and more
n8n workflows overview — Surface, Core, Azure CLI, SSPR, and more

How Data Flows: From Voice to Webhook to Artifact

Let's trace the complete data flow for a single query. There are actually two parallel paths that make the artifact magic work:

Path 1: The Initial Request

  1. User speaks → ElevenLabs transcribes and interprets
  2. ElevenLabs decides a tool call is needed → triggers the webhook
  3. n8n receives the request with the user query and a conversation ID
  4. The query is inserted into the conversation database
  5. All previous conversation rows are retrieved and formatted as chat history
  6. The Core is called with: query + chat history + source channel + conversation ID
  7. The Core's agent runs (Azure CLI calls, web searches, etc.)
  8. The raw response comes back to the Surface
  9. A Structured Output Parser splits it into: text (for voice) and artifacts (for UI)
  10. The response goes back via webhook to ElevenLabs, which speaks the text portion
n8n workflow execution showing the data flow — query, chat history, source parameters flowing into the core
n8n workflow execution showing the data flow — query, chat history, source parameters flowing into the core

Path 2: The Artifacts Retrieval

This is the clever part. While Path 1 is running:

  1. ElevenLabs fires events to the app at various points in the conversation
  2. The app detects these events and starts making its own requests to n8n
  3. These requests include type: "artifacts" in the body
  4. n8n recognizes this as an artifacts request and takes a different path
  5. It queries the conversation database, filters for rows with artifacts, and returns the most recent set
  6. The app receives the artifacts JSON and renders them in the Artifacts panel

This dual-path approach means the voice response and visual artifacts arrive through different channels — the voice comes back through ElevenLabs, while the artifacts come directly from the app polling n8n. It's a backoff-based polling mechanism that keeps checking until the artifacts are ready.

The Core: Intent Routing and Multi-Tool Agents

Diving into the Core execution, we can see it's remarkably clean:

BitBot Core execution in n8n — intent router, agent, and Azure CLI tool calls
BitBot Core execution in n8n — intent router, agent, and Azure CLI tool calls

The Core has three main stages:

  1. Base Prompts — Sets up the BitBot personality and context
  2. Intent Router — A classifier that determines what the user wants. Currently, it can route to:
    • Self-Service Password Reset (SSPR) — An example capability showing how the system can handle specific intents
    • Default path — Falls back to a generic agent for everything else
  3. Generic Agent — An OpenAI-powered agent with multiple tools:
    • Azure CLI — Runs Azure commands (account list, resource group list, etc.)
    • Web Search — General internet search capability
    • Web Visitor — Can visit and extract content from web pages

In the demo, the agent made multiple Azure CLI calls — az account list, az group list, az resource list, az storage account list, az webapp list — to comprehensively inventory the cloud environment. All of these ran as sub-tool invocations within a single agent execution.

ElevenLabs agent configuration — tools, stats, and webhook URL
ElevenLabs agent configuration — tools, stats, and webhook URL

Docker Compose, GitHub Actions, and You're Live

One of the strengths of this architecture is how simple the deployment is. The entire BitBot Avatar stack runs as a Docker Compose deployment on a single virtual machine. The deployment is managed through GitHub Actions — push to main, and it deploys.

The infrastructure footprint is minimal:

The n8n workflow set is intentionally small:

WorkflowPurpose
BitBot Avatar – ElevenLabs SurfaceHandles voice I/O and artifact generation
BitBot CoreIntent routing and agent execution
Azure CLIAzure resource queries
SSPR Part 1Self-service password reset (example)
Grok Web SearchWeb search capability
Website VisitorWeb page content extraction

Not all of these were even used in the demo — the SSPR, Grok Web Search, and Website Visitor are available capabilities that demonstrate the system's extensibility.

Key Takeaways

🔑 Key Takeaways

What This Means for You

BitBot Avatar is a proof of concept, but the patterns and architecture behind it are production-ready. At Bitovi, we use this same Surface-Core approach, n8n orchestration, and AI agent tooling to build solutions for clients across industries. The specifics change — the data source might be AWS instead of Azure, the surface might be Slack instead of voice — but the architecture scales.

If you're thinking about how AI and automation could transform your team's workflows, here are a few directions this kind of architecture enables:

We build this kind of thing at Bitovi. If you're exploring what's possible with AI, workflow automation, or conversational interfaces, let's talk.