---
title: "Generate intent phrases"
method: POST
path: "/public/v1/agents/{agentId}/intents/generate-phrases"
tags: ["Intents"]
---

# Generate intent phrases

`POST /public/v1/agents/{agentId}/intents/generate-phrases`

Generates suggested phrases for an intent. Requires a USER API key.

## Path parameters

- `agentId` string, required

## Request body

- PublicIntentGeneratePhrasesInput
  - `name` string, required
  - `samples` string[], required
  - `amount` integer, required

## Response `201`

Generated phrases

- PublicIntentGeneratePhrasesOutput
  - `phrases` string[], required

---

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