Documentation

Everything you need to integrate, automate, and scale document generation with GJSDocs — from quickstart to advanced API reference.

On this page+

Getting Started

Create an account, choose your membership plan, and open your dashboard to create templates, connect variables, and generate documents. GJSDocs is designed to move teams from manual editing to repeatable, data-driven document workflows.

Using the Editor

The editor uses a three-panel layout: Variables on the left, document canvas in the center, and blocks/elements on the right. Save templates once, preview results with data, and export for delivery.

Variables System

Use placeholders like {client.name} in templates. Global variables can be reused across all documents, while document-level values can override data for specific outputs.

Hello {client.name},

Your invoice #{document.number} is ready.
Total: {totals.total}

Regards,
{company.name}

Integrations + Import

Connect Airtable, HubSpot, Google Sheets, Zapier, and REST API data sources to feed your variables. You can also import DOCX/PDF/DOC files into the project, then convert and optimize them for variable-driven generation.

AI Assistant

The editor ships with an AI panel that generates new sections from a prompt and rewrites or translates existing content. Bring your own API key for Google Gemini, ChatGPT (OpenAI), or Claude (Anthropic) — GJSDocs adds no markup on token usage.

How it works

  1. Open Workspace → Integrations and connect at least one AI provider with your API key.
  2. Open any document in the editor — the AI tab is the first one in the right sidebar.
  3. Type a prompt. The panel auto-detects intent from your selection + verbs:
  • Selection + transform verb ("translate", "rewrite", "fix", "improve") → replaces the selected component
  • Selection (container) + add verb ("add", "create", "insert") → appends new content INSIDE the selection (e.g. inside a doc-page)
  • Selection (leaf) + add verb → inserts a new sibling AFTER the selection
  • No selection + transform verb → rewrites the whole document page-by-page
  • No selection + add verb → smart-appends a new section at the end of the last page

Example prompts

"Add a payment terms section with monthly schedule and late-fee policy""Translate the whole document to Ukrainian, keep variables intact""Make the tone more formal and shorten by ~30%""Generate an NDA between a startup and a contractor for a 12-month engagement"

Variables

AI output uses the same {category.name} placeholder syntax as the rest of GJSDocs. Any new placeholders introduced by the AI appear in the Variables sidebar instantly — no save/reload required.

Models & reliability

  • Gemini cascade: 2.5 Flash → Flash Lite → 2.0 Flash → 2.5 Pro on overload
  • OpenAI cascade: GPT-4o mini → GPT-4o on overload
  • Anthropic cascade: Haiku 4.5 → Sonnet 4.6 → Opus 4.7 on overload
  • Long-document edits run page-by-page so each request stays small and structure-preserving
  • API keys are encrypted at rest with AES-256-GCM; available on Pro & Business plans

Templates

Template CRUD and cloning operations.

GETAPI Key
/api/templates
List templates for current user.
GETAPI Key
/api/templates/:id
Get template details by id.

Documents & History

Generated documents and generation history.

GETAPI Key
/api/documents
List generated documents.
GETAPI Key
/api/documents/:id
Get one generated document.
GETAPI Key
/api/history
List generation history.
GETAPI Key
/api/history/:id
Get one history entry.

Variables & Generation

Variable storage and document generation endpoints.

GETAPI Key
/api/variables
Get saved variable list.
PUTAPI Key
/api/variables
Update all saved variables.
POSTAPI Key
/api/generate
Generate a document from template and data.
POSTAPI Key
/api/generate/:id/regenerate
Regenerate a document from history.

Quick Generate Example (API Key)

curl -X POST "https://api.gjsdocs.com/api/generate" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template_id": "YOUR_TEMPLATE_ID",
    "data": {
      "client_name": "Acme Inc",
      "invoice_number": "INV-1001"
    },
    "format": "pdf",
    "response_mode": "json"
  }'

JSON mode returns metadata with download_url and file_url.