Skip to content

[Suggestion] Mastra TypeScript voice agent with Deepgram Agent SDK (TypeScript) #337

Description

@deepgram-robot

What to build

A working integration example that builds a voice-enabled AI agent using the Mastra TypeScript agent framework with Deepgram's Agent SDK for voice interaction. The example should create a Mastra agent with tools and workflows, then connect it to a web-based voice interface using the Deepgram Agent SDK's React components.

Why this matters

Mastra is a rapidly growing TypeScript-first agent framework that provides tools, workflows, RAG, and memory for building AI agents. TypeScript developers building voice agents want to leverage Mastra's agent orchestration capabilities while using Deepgram for voice I/O — but there is no example showing this integration. Since both Mastra and the Deepgram Agent SDK are TypeScript-native, this is a natural pairing that lets developers build sophisticated voice agents with full type safety across the entire stack.

Suggested scope

  • Language: TypeScript
  • Frameworks: Mastra (latest), Deepgram Agent SDK (@deepgram/agent)
  • Deepgram APIs: Voice Agent API, Agent SDK React components
  • Key components:
    • Mastra agent with at least 2 tools (e.g., knowledge retrieval, API call)
    • Mastra workflow for multi-step conversation logic
    • Deepgram Agent SDK voice widget as the frontend interface
    • Server-side Mastra agent connected to Deepgram Voice Agent API
    • Next.js or Vite for the web scaffold
  • Backend: Node.js server running Mastra agent
  • Complexity: Medium — Mastra setup, Agent SDK integration, WebSocket bridging

Acceptance criteria

  • Runnable with minimal setup (clone, add API key, run)
  • README explains the pattern clearly
  • Uses current SDK version
  • Mastra agent with working tool calls accessible via voice
  • Deepgram Agent SDK widget provides the voice interface
  • Conversation flows through Mastra's workflow engine
  • Full TypeScript type safety across the integration

Raised by the DX intelligence system.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions