---
title: "Generate conversation starters for a service"
method: POST
path: "/v1/{organization}/conversation/conversation_starter"
tags: ["Conversation"]
---

# 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.

## Path parameters

- `organization` string, required

## Headers

- `x-mongo-cluster-name` string, nullable — 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.
- `Sec-WebSocket-Protocol` string[]

## Request body

- SrcAppEndpointsConversationGenerateConversationStarterRequest
  - `service_id` string, required — The identifier of the service to create a conversation starter for.
  - `service_version_set_name` string — The version set of the service to use. If not provided, the `release` version set is used.
  - `facets` AmigoLibPydanticBaseModelStrippedNonemptyString1[], required — The facets that the generated conversation starter should be about. Each generated starter is related to some of these facets.
  - `min_count` integer, required — The minimum (inclusive) number of conversation starters to generate.
  - `max_count` integer, required — The maximum (inclusive) number of conversation starters to generate.
  - `generation_instructions` string, required

## Response `200`

Succeeded.

- SrcAppEndpointsConversationGenerateConversationStarterResponse
  - `prompts` Prompt[], required — The generated prompts.
    - `prompt` string, required — The generated prompt.
    - `facets` string[], required — The facets that the generated prompt is about.

## Other responses

- `401` — Invalid authorization credentials.
- `403` — Missing required permissions.
- `404` — Service not found.
- `422` — Invalid request path parameter or request body failed validation.
- `429` — The user has exceeded the rate limit of 10 requests per minute for this endpoint.
- `503` — The service is going through temporary maintenance.

---

[API](https://skmtc.net/amigo/apis/amigo-api.md) · [All operations](https://skmtc.net/amigo/apis/amigo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/amigo/amigo-api/revisions/f0f28319e448/schema)
