Skip to main content
Insights (also accepted as goals for backward compatibility) let you define measurable targets — such as lead capture rate or booking completion — and track them against your genies’ conversations.
Standard users can only manage their own insights. Admin users can view and manage all insights by passing adminMode: true.

List all insights

Returns all insights with full details for the authenticated user.
string
required
Must be "insights"
string
required
Must be "all"
object
boolean
object

List insights

Returns a paginated list of insights for the authenticated user.
string
required
Must be "insights"
string
required
Must be "list"
object
boolean
object

Get insight

Retrieves a single insight by ID.
string
required
Must be "insights"
string
required
Must be "get"
string
required
The insight UUID.
object

Create insight

Creates a new insight metric.
string
required
Must be "insights"
string
required
Must be "create"
object
required
boolean
object

Update insight

Updates an existing insight. Supports partial updates.
string
required
Must be "insights"
string
required
Must be "update"
string
required
The insight UUID.
object
required
Any combination of name, description, type, target.

Delete insight

Permanently deletes an insight.
string
required
Must be "insights"
string
required
Must be "delete"
string
required
The insight UUID.
This action is irreversible.

Attach insight to genie

Links an insight to a genie. Each genie can have only one insight attached at a time — attaching a new one replaces the existing attachment.
string
required
Must be "insights"
string
required
Must be "attach"
object
required
boolean

Detach insight from genie

Removes the insight attachment from a genie.
string
required
Must be "insights"
string
required
Must be "detach"
object
required

Generate insight

Uses language understanding to suggest insight fields from a natural-language description. Returns suggested name, description, type, and target values that can be reviewed before saving.
string
required
Must be "insights"
string
required
Must be "generate"
object
required
boolean
object

Error codes