DOCUMENT Functions
Function List
CORPDEV.GRDIVE_INDEX
CORPDEV.GRDIVE_DOCUMENT_QUESTION
CORPDEV.GRDIVE_DOCUMENT_EXTRACT_FIELD
CORPDEV.GRDIVE_DOCUMENT_EXTRACT_TEXT
CORPDEV.GRDIVE_DOCUMENT_SUMMARIZE
CORPDEV.GRDIVE_INDEX(folderId)
CORPDEV.GRDIVE_INDEX(folderId)
Description: Provides an index (like a Due Diligence document index) of documents and subfolders from a specified Google Drive folder.
Parameters:
folderId
(string): The ID of the Google Drive folder.
Returns: An index of documents and subfolders.
CORPDEV.GRDIVE_DOCUMENT_QUESTION(document_id, question)
CORPDEV.GRDIVE_DOCUMENT_QUESTION(document_id, question)
Description: Asks a question about a document and retrieves the answer.
Parameters:
document_id
(string): The ID of the document.question
(string): The question to ask.
Returns: The answer to the question.
CORPDEV.GRDIVE_DOCUMENT_EXTRACT_FIELD(document_id, field_name, instructions, batch)
CORPDEV.GRDIVE_DOCUMENT_EXTRACT_FIELD(document_id, field_name, instructions, batch)
Description: Extracts a specific field from a document.
Parameters:
document_id
(string): The ID of the document.field_name
(string): The field to extract.instructions
(string): Additional instructions.batch
(number): Batch number.
Returns: The extracted field value.
CORPDEV.GRDIVE_DOCUMENT_EXTRACT_TEXT(document_id)
CORPDEV.GRDIVE_DOCUMENT_EXTRACT_TEXT(document_id)
Description: Extracts text from a specified document.
Parameters:
document_id
(string): The ID of the document.
Returns: The extracted text.
CORPDEV.GRDIVE_DOCUMENT_SUMMARIZE(document_id, instructions)
CORPDEV.GRDIVE_DOCUMENT_SUMMARIZE(document_id, instructions)
Description: Summarizes a document and returns the summary.
Parameters:
document_id
(string): The ID of the document.instructions
(string, optional): Instructions for summarization.
Returns: The summary of the document.
Last updated