Skip to main content

Requete Tableur (Langage Naturel)

Queries a spreadsheet using natural language. The system translates the question into a structured query and returns matching results.

Parameters

ParameterTypeRequiredVariableDescription
querydynamic valueYesYesNatural language question to query the spreadsheet. The system interprets the question and generates the query automatically.
spreadsheetIdsarrayNoNoSpreadsheet identifiers to query. Empty to search across all workspace spreadsheets.
maxResultsnumberNoNoMaximum number of rows in the results. (Default: 100)
includeExplanationbooleanNoNoInclude the explanation of the query interpreted by the model. (Default: false)
llmSynthesisobjectNoNoLLM result synthesis configuration (enable and custom prompt).
outputVariabletextNoNoOutput variable name containing the query results.

Parameters marked Variable = Yes accept the {{blockName.field}} syntax.

Output

Output variable : nlQueryResult

{
"results": [],
"total": 0,
"has_more": false,
"success": false,
"explanation": {},
"aggregations": {}
}

Example

Ask a question about a spreadsheet.

Input :

{"query": "Quels sont les clients avec un CA superieur a 100k ?"}

Output :

{"results": [{"name": "Acme", "revenue": 250000}], "count": 1}
Tip

Formulate clear and specific questions. The block uses an LLM to interpret the question and generate the query.