lightbulbStarters

Generate contextually appropriate conversation starters for a service. Starters are short prompts that suggest how a user might begin a conversation, useful for populating UI widgets, seeding test scenarios, and onboarding flows.

Overview

The conversation starter endpoint uses the service's agent configuration to generate starter prompts targeted at specific facets (topics). Each generated starter is tagged with the facets it relates to.

Prerequisites

  • Valid API key with Conversation:CreateConversation permission

  • service_id for the target service

  • Organization ID

Generate conversation starters for a service

post
/v1/{organization}/conversation/conversation_starter

Generate conversation starters for a service.

Permissions

This endpoint requires the following permissions:

  • Conversation:CreateConversation for a hypothetical new conversation created using the same setting.
Authorizations
AuthorizationstringRequired

The username should be set to {org_id}_{user_id}, and the password should be the Amigo issued JWT token that identifies the user.

AuthorizationstringRequired

Amigo issued JWT token that identifies an user. It's issued either after logging in through the frontend, or manually through the SignInWithAPIKey endpoint.

X-ORG-IDstringRequired

An optional organization identifier that indicates from which organization the token is issued. This is used in rare cases where the user to authenticate is making a request for resources in another organization.

Path parameters
organizationstringRequired
Header parameters
x-mongo-cluster-nameany ofOptional

The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database.

stringOptional
or
nullOptional
Sec-WebSocket-Protocolstring[]OptionalDefault: []
Body
service_idstringRequired

The identifier of the service to create a conversation starter for.

Pattern: ^[a-f0-9]{24}$
service_version_set_namestringOptional

The version set of the service to use. If not provided, the release version set is used.

Default: release
facetsstring[] · min: 1Required

The facets that the generated conversation starter should be about. Each generated starter is related to some of these facets.

min_countinteger · max: 10Required

The minimum (inclusive) number of conversation starters to generate.

max_countinteger · max: 10Required

The maximum (inclusive) number of conversation starters to generate.

generation_instructionsstring · min: 1Required

The instruction for the conversation starter generation.

Responses
chevron-right
200

Succeeded.

application/json
post
/v1/{organization}/conversation/conversation_starter

Basic Usage

Generate starters by providing a service ID, at least one facet, and generation instructions.

Multi-Facet Generation

Provide multiple facets to generate starters across different topics. Each starter will be tagged with the facets it relates to.

Example Response

Request Parameters

Parameter
Type
Required
Description

service_id

string

Yes

24-character hex service ID

facets

string[]

Yes (min 1)

Topics the starters should relate to

min_count

integer

Yes

Minimum starters to generate (1-10)

max_count

integer

Yes

Maximum starters to generate (1-10)

generation_instructions

string

Yes

Instructions guiding the generation

service_version_set_name

string

No

Version set to use (default: "release")

Tips

circle-info

Rate Limit: This endpoint is limited to 40 requests per minute. For bulk generation, batch your requests accordingly.

circle-check

Last updated

Was this helpful?