---
title: "Get Smart Replies"
method: POST
path: "/chatbot/v2/get_smart_replies"
tags: ["chatbot"]
---

# Get Smart Replies

`POST /chatbot/v2/get_smart_replies`

Smart reply endpoint.

Use it to get possible user responses for the current dialog context. They can be served as a
 help for the user on how to continue the conversation.

## Headers

- `X-Request-Id` string

## Request body

- SmartReplyPayloadSchema
  - `context` Message[], nullable — The context of the conversation
    - `turn` string, required — The turn of the message (`bot` or `user`)
    - `message` string, required
  - `user_id` string, nullable — Unique user identifier. Used for AB tests.
  - `candidates_num` integer — The number of smart replies to return

## Response `200`

Successful Response

- SmartReplyResponseSchema
  - `smart_replies` string[], required — The smart replies of the chatbot

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/exh/apis/ex-human.md) · [All operations](https://skmtc.dev/exh/apis/ex-human/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/exh/ex-human/revisions/cd3ee850caf2/schema)
