Skip to main content

analyst_messages

Creates, updates, deletes, gets or lists an analyst_messages resource.

Overview

Nameanalyst_messages
TypeResource
Idsnowflake.cortex.analyst_messages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
request_idstringUnique request ID
messageobjectRepresents a message within a chat. (title: The message object)
response_metadataobject
semantic_model_selectionobject
warningsarray

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
send_messageselectendpointSend a data question to the Cortex Analyst

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringOrganization and account identifier (orgname-accountname) (default: orgname-accountname)

SELECT examples

Send a data question to the Cortex Analyst

SELECT
request_id,
message,
response_metadata,
semantic_model_selection,
warnings
FROM snowflake.cortex.analyst_messages
WHERE endpoint = '{{ endpoint }}' -- required
;