description: "The big picture — from API call to phone conversation to transcript"
---
Dograh is a platform for building and running voice AI agents. You define a conversation flow, connect a phone number, and Dograh handles the rest — transcribing the caller's speech (STT), generating intelligent responses (LLM), speaking them back in a natural voice (TTS), and returning structured results when the call ends.
## The core loop
```mermaid
sequenceDiagram
participant U as Dashboard / Your App
participant API as Dograh API
participant STT as Transcriber (STT)
participant LLM as LLM Provider
participant TTS as Voice Synthesizer (TTS)
participant Tel as Telephony Provider
participant Cal as Caller / Contact
U->>API: Trigger call (dashboard or API)
API->>Tel: Initiate outbound call
Tel->>Cal: Phone rings
Cal-->>Tel: Answers
Tel-->>API: Raw audio stream
loop Conversation
API->>STT: Caller audio
STT-->>API: Transcribed text
API->>LLM: Transcript + agent prompt + context
LLM-->>API: Agent response text
API->>TTS: Response text
TTS-->>API: Synthesized audio
API->>Tel: Audio stream
Tel->>Cal: Agent speaks
end
API->>API: Extract context, run webhooks
API-->>U: Run record (transcript, recording, gathered data)
The conversation logic. A workflow is a graph of nodes (conversation steps) connected by edges (conditional transitions). You define what the agent says, when it moves on, and what data it collects.
The phone infrastructure. Dograh connects to your telephony provider (Twilio, Vonage, etc.) to place and receive calls. The audio streams between the caller and Dograh in real time.
Converts the caller's speech to text in real time. Dograh sends the audio stream to your configured speech-to-text provider and uses the transcript to drive both the LLM and the final run record.
Processes the transcript and the active node's prompt to generate the agent's next response. It also evaluates edge conditions to decide when to move the conversation forward.