younifyd
Menu

Update chat

Update chat

PATCH/indexes/{index_uid}/settings/chat

Use it in a workflow

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

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

Request body

Enter the body as JSON in the step's Body 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": {}
}

Response

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

taskUidinteger (u-int32)

Unique sequential identifier of the task.

indexUidstring | null

Unique identifier of the targeted index. Null for global tasks.

statusstring

The status of a task.

One ofenqueuedprocessingsucceededfailedcanceled

typestring

The type of the task.

One ofdocumentAdditionOrUpdatedocumentEditiondocumentDeletionsettingsUpdateindexCreationindexDeletionindexUpdateindexSwaptaskCancelationtaskDeletiondumpCreationsnapshotCreationexportupgradeDatabaseindexCompactionnetworkTopologyChangedsrUpdatedsrClear

enqueuedAtstring (date-time)

Date and time when the task was enqueued.

customMetadatastring | null

Custom metadata attached to this task at creation. Use it to associate tasks with external systems or add application-specific information.

json
{
  "taskUid": 0,
  "status": "processing",
  "type": "documentAdditionOrUpdate",
  "enqueuedAt": "2025-01-01T00:00:00Z",
  "indexUid": "string",
  "customMetadata": "string"
}

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