Conversations
Core conversation API for creating, interacting with, and managing AI-powered conversations.
The Conversations API is the core interface for managing AI-powered interactions on the Amigo platform.
Overview
Conversations are the primary way users interact with Amigo agents. Each conversation maintains context, manages state, and handles the flow of messages between users and the AI.
API Endpoints
Conversation Management
Create:
POST /v1/{organization}/conversation/, initialize new conversations with agentsStarters:
POST /conversation/conversation_starter, generate contextual conversation startersInteract:
POST /v1/{organization}/conversation/{conversation_id}/interact, send messages and receive AI responsesEvents: events are delivered as the NDJSON stream returned by the Create and Interact endpoints
Lifecycle:
POST /v1/{organization}/conversation/{conversation_id}/finish/(204 No Content), manage conversation states and completionVoice: text-channel voice uses the Interact endpoint with
request_format=voicerather than a separate/voicepathReal-time Voice:
WSS /conversation/converse_realtime, WebSocket endpoint for real-time voice conversations
Key Features
Contextual Memory: conversations keep context across multiple interactions.
Multi-modal Support: text, voice, and structured data inputs.
Real-time Streaming: server-sent events for live updates.
WebSocket Support: low-latency bidirectional communication for real-time voice.
Voice Activity Detection: automatic speech detection in real-time mode.
State Management: track and control conversation flow.
Voice Integration: voice-to-text and text-to-voice.
Automatic Audio Fillers: handles perceived latency during voice interactions.
Common Use Cases
Customer Support: automated support conversations with context awareness.
Virtual Assistants: personal AI assistants with memory and learning.
Interactive Workflows: guide users through complex processes.
Voice Interfaces: natural language voice interactions.
Quick Start
Related Documentation
Last updated
Was this helpful?

