Skip to main content

Choosing the Right Agent Type

iwy offers two types of agents: Not sure which to use? See the full comparison. Both are production-ready.

Overview

Single-Use agents are created via API and can only be activated once. After the session ends (or TTL expires), the agent ID becomes invalid. This is ideal for:
  • Personalized experiences: Create a unique agent for each user or session
  • Dynamic configuration: Generate agent settings from your database or user context
  • Auto-cleanup: No manual deletion needed—agents expire automatically
  • White-label solutions: Build products where end-users don’t see the iwy dashboard

How It Works

  1. Define your agent in code - Specify LLM, voice, avatar, and behavior via API
  2. Receive an agent ID - Use this ID in your frontend widget
  3. Agent auto-expires - No cleanup needed, agents expire after the TTL

Authentication

All API endpoints require authentication using a Bearer token. You can find your API key in your account settings.

Base URL

Quick Start

Create an ephemeral agent and embed it in your app:
Response:
Then embed the agent in your frontend:

When to Use Single-Use vs Permanent

Support

Need help? Contact us