Welcome
Get started with the Amigo AI platform APIs: Classic for text-based digital health, Platform for enterprise voice and healthcare.
Quick Start
Classic API (text-based digital health)
import { AmigoClient } from '@amigo-ai/sdk';
const client = new AmigoClient({
apiKey: process.env.AMIGO_API_KEY!,
apiKeyId: process.env.AMIGO_API_KEY_ID!,
userId: process.env.AMIGO_USER_ID!,
orgId: process.env.AMIGO_ORGANIZATION_ID!
});
const createEvents = await client.conversations.createConversation({
body: { service_id: 'your-service-id', service_version_set_name: 'release' },
query: { response_format: 'text' },
});
let conversationId;
for await (const event of createEvents) {
if (event.type === 'conversation-created') conversationId = event.conversation_id;
}
const interactionEvents = await client.conversations.interactWithConversation({
conversationId,
input: 'Hello, Amigo!',
query: { request_format: 'text', response_format: 'text' },
});
for await (const event of interactionEvents) {
// handle NDJSON events; break on 'interaction-complete'
}Platform API (enterprise voice and healthcare)
API Comparison
System Architecture
Documentation Structure
Section
Applies to
Description
Support and Resources
Resource
Description
Last updated
Was this helpful?

