Tutorials

Executive Briefing Generator

Summarize 100-page quarterly reports or technical whitepapers into a 1-page executive brief.

Use document.summarize with the executive_summary focus preset to automatically generate C-suite strategic memos from lengthy annual reports or research papers.

const job = await fetch("https://transpera-api-dev-vv55i7vbvq-el.a.run.app/v1/jobs", {
  method: "POST",
  headers: {
    "authorization": "Bearer tp_live_...",
    "content-type": "application/json",
    "idempotency-key": crypto.randomUUID()
  },
  body: JSON.stringify({
    operation: "document.summarize",
    input: {
      uploadId: "report_upload_id",
      summaryLanguage: "English",
      requestedSummaryPages: 1,
      focus: "executive_summary"
    }
  })
}).then(r => r.json());

console.log("Summary requested. Job ID:", job.job.id);