This example demonstrates an AI-assisted document editing workflow built with Next.js and @nutrient-sdk/document-authoring.
Please send all your feature requests and bug reports to support@nutrient.io.
Configure OpenAI credentials first:
cp .env.sample .env.local
# Edit .env.local and set OPENAI_API_KEYThen install and run:
# Install dependencies:
npm install
# Run in development mode:
npm run devOpen http://localhost:3000.
For a production build:
npm run buildThe production build can be run using:
npm run startFor more information see node_modules/@nutrient-sdk/document-authoring/README.md.
OPENAI_API_KEY is required for AI-backed flows.
DOCUMENT_AUTHORING_AI_EXAMPLE_OPENAI_MODEL sets the OpenAI model used for the main assistant loop.
Possible values: any valid OpenAI model name string (for example gpt-4o-mini).
Default: gpt-4o-mini.
DOCUMENT_AUTHORING_AI_EXAMPLE_OPENAI_REASONING_EFFORT sets OpenAI reasoning effort for the main assistant loop.
Possible values: none, minimal, low, medium, high, xhigh.
Default: medium.
