Starters
Generate contextual conversation starter prompts for UI widgets and onboarding flows.
Generate contextually appropriate conversation starters for a service. Starters are short prompts that suggest how a user might begin a conversation. They are 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
A valid API key with
Conversation:CreateConversationpermissionThe
service_idfor the target serviceYour organization ID
Generate conversation starters for a service
Generate conversation starters for a service.
Permissions
This endpoint requires the following permissions:
Conversation:CreateConversationfor a hypothetical new conversation created using the same setting.
The username should be set to {org_id}_{user_id}, and the password should be the Amigo issued JWT token that identifies the user.
Amigo issued JWT token that identifies an user. It's issued either after logging in through the frontend, or manually through the SignInWithAPIKey endpoint.
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.
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.
[]The identifier of the service to create a conversation starter for.
^[a-f0-9]{24}$The version set of the service to use. If not provided, the release version set is used.
releaseThe facets that the generated conversation starter should be about. Each generated starter is related to some of these facets.
The minimum (inclusive) number of conversation starters to generate.
The maximum (inclusive) number of conversation starters to generate.
The instruction for the conversation starter generation.
Succeeded.
Invalid authorization credentials.
Missing required permissions.
Service not found.
Invalid request path parameter or request body failed validation.
The user has exceeded the rate limit of 10 requests per minute for this endpoint.
The service is going through temporary maintenance.
POST /v1/{organization}/conversation/conversation_starter HTTP/1.1
Host: api.amigo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
X-ORG-ID: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 137
{
"service_id": "text",
"service_version_set_name": "release",
"facets": [
"text"
],
"min_count": 1,
"max_count": 1,
"generation_instructions": "text"
}{
"prompts": [
{
"prompt": "text",
"facets": [
"text"
]
}
]
}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
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
Best Practices
Use specific, descriptive facets rather than generic ones (for example,
"appointment rescheduling"rather than"general").Keep
generation_instructionsfocused on tone and context rather than exact wording.Use the
--jsonflag in the CLI to pipe starters into other tools or save to files.
Related Documentation
Create Conversations: use generated starters as
initial_messagevalues.Conversation History: retrieve past conversations.
Last updated
Was this helpful?

