Skip to main content

AI & LLM

Lido provides action formulas for calling large language models directly from your spreadsheet. Each formula sends a prompt to an AI service and writes the response to a specified output cell.


GPT

Calls an OpenAI GPT model.

Syntax:

=GPT(credential, prompts, output_ref)
=GPT(credential, prompts, output_ref, model, max_tokens, response_format, temperature, usage_output, tools)

Parameters:

ParameterDescriptionRequired
credentialOpenAI credential IDYes
promptsPrompt text or array of messagesYes
output_refCell reference to write the responseYes
modelModel name (e.g., "gpt-4o")No
max_tokensMaximum tokens in the responseNo
response_formatResponse format (e.g., "json")No
temperatureSampling temperatureNo
usage_outputCell reference for token usage statsNo
toolsTool/function definitions for function callingNo

GPTVISION

Analyzes images or documents using GPT Vision.

Syntax:

=GPTVISION(files, credential, prompt, output_ref)
=GPTVISION(files, credential, prompt, output_ref, page_ranges, model, max_tokens, response_format, image_detail, usage_output)

Parameters:

ParameterDescriptionRequired
filesFile URL(s) to analyzeYes
credentialOpenAI credential IDYes
promptInstructions for the vision modelYes
output_refCell reference to write the responseYes
page_rangesPage ranges for PDFs (e.g., "1-3")No
modelModel nameNo
max_tokensMaximum tokens in the responseNo
response_formatResponse formatNo
image_detailImage detail level ("low", "high", "auto")No
usage_outputCell reference for token usage statsNo

CLAUDE

Calls an Anthropic Claude model.

Syntax:

=CLAUDE(credential, prompt, output_ref)
=CLAUDE(credential, prompt, output_ref, model, max_tokens, system_message, files, page_ranges, usage_output)

Parameters:

ParameterDescriptionRequired
credentialAnthropic credential IDYes
promptPrompt textYes
output_refCell reference to write the responseYes
modelModel name (e.g., "claude-sonnet-4-20250514")No
max_tokensMaximum tokens in the responseNo
system_messageSystem message for the modelNo
filesFile URL(s) to includeNo
page_rangesPage ranges for PDFsNo
usage_outputCell reference for token usage statsNo

BEDROCK

Calls an AWS Bedrock model.

Syntax:

=BEDROCK(credential, prompt, output_ref)
=BEDROCK(credential, prompt, output_ref, model, max_tokens, system_message, files, page_ranges, usage_output)

Parameters:

ParameterDescriptionRequired
credentialAWS access key credential IDYes
promptPrompt textYes
output_refCell reference to write the responseYes
modelModel nameNo
max_tokensMaximum tokens in the responseNo
system_messageSystem message for the modelNo
filesFile URL(s) to includeNo
page_rangesPage ranges for PDFsNo
usage_outputCell reference for token usage statsNo

GEMINI

Calls a Google Gemini model.

Syntax:

=GEMINI(credential, files, prompt, output_ref)
=GEMINI(credential, files, prompt, output_ref, page_ranges, model, max_tokens, response_format, response_schema, usage_output)

Parameters:

ParameterDescriptionRequired
credentialGoogle API key credential IDYes
filesFile URL(s) to analyzeYes
promptPrompt textYes
output_refCell reference to write the responseYes
page_rangesPage ranges for PDFsNo
modelModel nameNo
max_tokensMaximum tokens in the responseNo
response_formatResponse formatNo
response_schemaJSON schema for structured outputNo
usage_outputCell reference for token usage statsNo

GPTURL

Analyzes the content of a URL using GPT.

Syntax:

=GPTURL(credential, url, prompt, output_ref)
=GPTURL(credential, url, prompt, output_ref, model, max_tokens)

Parameters:

ParameterDescriptionRequired
credentialOpenAI credential IDYes
urlURL to fetch and analyzeYes
promptInstructions for the modelYes
output_refCell reference to write the responseYes
modelModel nameNo
max_tokensMaximum tokens in the responseNo

EXTRACTTOTABLE

Uses AI to extract structured data from content into a table.

Syntax:

=EXTRACTTOTABLE(credential, input_content, output_table_ref)
=EXTRACTTOTABLE(credential, input_content, output_table_ref, prompt, model, max_tokens, usage_output)

Parameters:

ParameterDescriptionRequired
credentialAI credential IDYes
input_contentContent to extract data fromYes
output_table_refCell reference for the output tableYes
promptCustom extraction instructionsNo
modelModel nameNo
max_tokensMaximum tokensNo
usage_outputCell reference for token usage statsNo

EXTRACTFROMFILETOROW

Uses AI to extract data from a file and write it to a row.

Syntax:

=EXTRACTFROMFILETOROW(credential, file_source, output_ref)
=EXTRACTFROMFILETOROW(credential, file_source, output_ref, prompt, model, max_tokens, usage_output)

Parameters:

ParameterDescriptionRequired
credentialAI credential IDYes
file_sourceFile URL to extract data fromYes
output_refCell reference for the outputYes
promptCustom extraction instructionsNo
modelModel nameNo
max_tokensMaximum tokensNo
usage_outputCell reference for token usage statsNo