younifyd
Menu

Get chat

Get chat

GET/indexes/{index_uid}/settings/chat

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get chat action (under Settings).
  3. Fill in the fields below, then reference the result from later steps as {{getChat.response.data}}.

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

Response

Returns 200 with an object. Read it in later steps with {{getChat.response.data.<field>}}.

descriptionstring | null

Index description shown to the LLM so it can decide when and how to query this index.

Default ""

documentTemplatestring | null

Liquid template that defines the text sent to the LLM for each document.

documentTemplateMaxBytesinteger | null

Maximum size in bytes of the rendered document template. Longer text is truncated.

Default 400

searchParametersoneOf

Default {}

json
{
  "description": "A comprehensive movie database containing titles, overviews, genres, and release dates",
  "documentTemplate": "{% for field in fields %}{% if field.is_searchable and field.value != nil %}{{ field.name }}: {{ field.value }}\n{% endif %}{% endfor %}",
  "documentTemplateMaxBytes": 400,
  "searchParameters": {}
}

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.