AI Chat

Suggest a few next steps after the chat's latest answer. The first request for an answer makes one small request to the chat's model, with only the last question and answer, and its cost counts toward the chat's spend. The result is saved on the answer, and later requests for it return the saved set at no cost.

Changed on
post/ai/conversations/{public_id}/suggestions

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/ai/conversations/{public_id}/suggestions
  • Auth: HTTP bearer

Path parameters

public_idstring required

Conversation public id

Request body

answerstring nullable

Cursor of the answer the user is looking at, from the message list. When given, it must still be the chat's latest answer. Without it the latest answer is used.

Response

Suggested next steps

answerstring required

Cursor of the answer they follow on from, as in the message list.

modelstring required

The model that wrote them.

savedboolean required

True when they were saved earlier and returned without a new request.

suggestionsstring[] required

Changes