Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.svalync.com/llms.txt

Use this file to discover all available pages before exploring further.

Get Document

The Get Document node allows you to retrieve content and metadata from Google Docs documents.

Overview

This node enables you to:
  • Retrieve document content
  • Get document structure
  • Extract text and formatting
  • Access document metadata
  • Get revision history

Configuration

ParameterTypeDescription
Document IDStringThe ID of the Google Doc
Include ContentBooleanWhether to include document content
Include StylesBooleanWhether to include formatting information
Suggest ModeStringView mode (PREVIEW_SUGGESTIONS/SUGGESTING)

Authentication

This node requires:
  • Google Cloud Project
  • Google Docs API enabled
  • Service account or OAuth2 credentials
  • Read access to the document

Output

The node returns:
  • Document content
  • Document metadata
  • Formatting information
  • Success/failure status
  • Error messages if operation fails

Example Usage

{
  "document_id": "1234567890abcdef",
  "include_content": true,
  "include_styles": true,
  "suggest_mode": "PREVIEW_SUGGESTIONS"
}

Response Format

{
  "title": "Document Title",
  "body": {
    "content": [
      {
        "paragraph": {
          "elements": [
            {
              "textRun": {
                "content": "Sample text",
                "style": {
                  "bold": true,
                  "fontSize": { "magnitude": 12, "unit": "PT" }
                }
              }
            }
          ]
        }
      }
    ]
  },
  "metadata": {
    "title": "Document Title",
    "createdTime": "2024-01-01T00:00:00.000Z",
    "modifiedTime": "2024-01-02T00:00:00.000Z"
  }
}

Filtering Content

You can specify what content to retrieve:

Headers Only

{
  "document_id": "1234567890abcdef",
  "filter": {
    "types": ["HEADING"]
  }
}

Tables Only

{
  "document_id": "1234567890abcdef",
  "filter": {
    "types": ["TABLE"]
  }
}