> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://developer.box.com/_mintlify/feedback/box/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Box Doc Gen

export const MultiRelatedLinks = ({sections = []}) => {
  if (!sections || sections.length === 0) {
    return null;
  }
  return <div className="space-y-8">
      {sections.map((section, index) => <RelatedLinks key={index} title={section.title} items={section.items} />)}
    </div>;
};

export const RelatedLinks = ({title, items = []}) => {
  const getBadgeClass = badge => {
    if (!badge) return "badge-default";
    const badgeType = badge.toLowerCase().replace(/\s+/g, "-");
    return `badge-${badge === "ガイド" ? "guide" : badgeType}`;
  };
  if (!items || items.length === 0) {
    return null;
  }
  return <div className="my-8">
      {}
      <h3 className="text-sm font-bold uppercase tracking-wider mb-4">{title}</h3>

      {}
      <div className="flex flex-col gap-3">
        {items.map((item, index) => <a key={index} href={item.href} className="py-2 px-3 rounded related_link hover:bg-[#f2f2f2] dark:hover:bg-[#111827] flex items-center gap-3 group no-underline hover:no-underline border-b-0">
            {}
            <span className={`px-2 py-1 rounded-full text-xs font-semibold uppercase tracking-wide flex-shrink-0 ${getBadgeClass(item.badge)}`}>
              {item.badge}
            </span>

            {}
            <span className="text-base">{item.label}</span>
          </a>)}
      </div>
    </div>;
};

export const Link = ({href, children, className, ...props}) => {
  const localizedHref = href;
  return <a href={localizedHref} className={className} {...props}>
      {children}
    </a>;
};

Box Doc Gen allows you to generate business documents such as offer letters, sales contracts, invoices or agreements.
You can generate documents based on Box Doc Gen templates uploaded to Box, with data fields that can be dynamically filled using Box Doc Gen API.

<Note>
  Box Doc Gen only supports the ability to leverage English template tags when
  using Box Doc Gen templates. We recommend that customers test and review that Box Doc Gen supports their desired language requirements.
</Note>

## Prerequisites

* access to Microsoft Word

To use Box Doc Gen, you must have access to Microsoft Word, as it is required
for creating and authoring your document templates. You can utilize the Box Doc
Gen Add-in for a code-free experience or apply tagging scripts within Word to
prepare your documents.

<Note>
  Box Doc Gen is designed to facilitate the dynamic generation of business
  documents, but it is important to note that Box does not have control over
  users’ access to Microsoft Word. Users must ensure they have the necessary
  permissions and access to Microsoft Word to create and author document
  templates effectively.
</Note>

## Box Doc Gen API capabilities

Box Doc Gen API allows you to:

* mark documents as Box Doc Gen templates,
* generate documents based on Box Doc Gen templates you store in Box,
* examine the details of Box Doc Gen templates and document generation jobs.

## Box Doc Gen API version

Box Doc Gen API was released in Box API version `2025.0`. All API requests to Box Doc Gen API endpoints must specify a valid API version by setting the `box-version` header to `2025.0`.

For more details, see <Link href="/guides/api-calls/api-versioning-strategy">Box API versioning</Link>.

## Box Doc Gen workflow

<Frame>
    <img src="https://mintcdn.com/box/_tECS-SYBYV9K-kZ/images/guides/docgen/docgen-workflow.png?fit=max&auto=format&n=_tECS-SYBYV9K-kZ&q=85&s=d6f7b9b4c9ea191b90c81b778256c845" alt="A flow diagram representing Box Doc Gen workflow" width="1596" height="490" data-path="images/guides/docgen/docgen-workflow.png" />
</Frame>

1. Author your Doc Gen Template
   * Use [Doc Gen Add-in for Microsoft Word][template-addin] to create a template without any code.
   * You can also leverage [Doc Gen's tagging script][tagging-script] to author the template.

2. [Add the template to Box][upload-template] using the Box Doc Gen UI. At this point, you can:
   * Mark an existing file In Box as Doc Gen template.
   * Create or Upload a document and mark it as a Box Doc Gen template.

3. <Link href="/guides/docgen/generate-document">Generate the document</Link> using Box Doc Gen API.

[template-addin]: https://support.box.com/hc/en-us/articles/36587535449747-Installing-Box-Doc-Gen-Add-in

[template-tags]: https://support.box.com/hc/en-us/articles/36151895655059-Creating-A-Box-Doc-Gen-Template-Manually

[json-template]: https://support.box.com/hc/en-us/articles/36148012877843-Creating-a-Box-Doc-Gen-Template-using-JSON-data

[tagging-script]: https://support.box.com/hc/en-us/articles/36149723736723-Template-tags-reference

[upload-template]: https://support.box.com/hc/en-us/articles/36587432368275-Managing-Box-Doc-Gen-Templates-in-Relay

<RelatedLinks
  title="RELATED GUIDES"
  items={[
  { label: translate("Get started with Box Doc Gen"), href: "/guides/docgen/docgen-getting-started", badge: "GUIDE" },
  { label: translate("Box Doc Gen templates"), href: "/guides/docgen/docgen-templates", badge: "GUIDE" },
  { label: translate("Box Doc Gen jobs"), href: "/guides/docgen/docgen-jobs", badge: "GUIDE" },
  { label: translate("Mark file as Box Doc Gen template"), href: "/guides/docgen/mark-template", badge: "GUIDE" },
  { label: translate("Generate documents"), href: "/guides/docgen/generate-document", badge: "GUIDE" }
]}
/>
