Choosing the Right Agent Type
iwy offers two types of agents:| Type | Best For | Sessions per Agent | Visible in Dashboard |
|---|---|---|---|
| Single-Use (you are here) | Personalized, per-session experiences | 1 | No |
| Permanent | Reusable agents with dashboard management | Unlimited | Yes |
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
- Define your agent in code - Specify LLM, voice, avatar, and behavior via API
- Receive an agent ID - Use this ID in your frontend widget
- 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:When to Use Single-Use vs Permanent
| Use Case | Recommended |
|---|---|
| Prototyping and testing | Permanent |
| Same agent for all users | Permanent |
| Personalized agent per user/session | Single-Use |
| Config generated from your database | Single-Use |
| Production systems | Both |