Skip to main content

Documentation Index

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

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

Canvas is now the Document Editor. Any Canvas files you created before are still accessible in their original chats.

Document Editor

The Document Editor opens as a panel alongside your chat, so you can write and iterate on documents without switching context. Use it when you want to draft a proposal, write a report, put together a project plan, or work on any longer piece you’ll refine and share. Documents are saved to your Library automatically, so they’re accessible across all your chats. You can open the Document Editor in three ways:
  • Type a prompt like “draft a proposal” or “create a report”. The editor opens automatically.
  • Click Create document in the input bar and choose your format: Document, Word, or PDF.
  • Open the Tools menu and select Create document.
Chat input bar with Create document active and the format selector showing Document, Word, and PDF options
Once you have sent your prompt, the editor panel opens on the right side of the screen.

Formatting

Edit your document directly in Langdock. Click anywhere to start typing, deleting, or rearranging content. To add structure to your document, type: / anywhere to open the formatting menu. It’s organized into three groups: headings and text styles under Format, Lists, and insertable elements under Insert including tables, code blocks, and an auto-generated table of contents.
Slash command menu open in the Document Editor showing Format, Lists, and Insert groups
  • Heading 1, Heading 2, Heading 3, Heading 4
  • Bullet List and Numbered List
  • Blockquote and Code Block
  • Tables
  • Table of contents
  • Divider
The toolbar at the top of the editor shows the same options and is always visible. Use the expand icon in the top bar to switch to full-screen view when you want to focus on writing without the chat alongside.

Edit with AI

The Document Editor lets you collaborate with the AI in two distinct ways: You can make edits on specific text, or broader changes across the whole document. Select any text you would like to edit, and click the Edit with AI button that appears. This quotes your selection into the chat where you can type your instructions. The AI applies the change directly in the document.
Text selected in the Document Editor with the Edit with AI button appearing to the right
For broader changes such as rewriting a section, adjusting the tone, or expanding content, type your instructions in the chat without selecting anything first. The AI edits the document and saves a new version automatically.

Export your Document

When you’re ready to use your document outside Langdock, export it directly from the editor. Click the download icon in the top bar and choose your format:
  • Download Markdown
  • Download Word
  • Download PDF
Download menu open in the Document Editor top bar showing Download Markdown, Download Word, and Download PDF options
You can generate documents in the Document Editor and export them as PDF or Word files. It is not possible to edit Word or PDF files directly in the Document Editor.

Working with Code

You can also work with code directly from within the Document Editor, so you can build interactive tools without leaving Langdock. Use it to build interactive outputs like data dashboards, charts, visualizations, and small tools for your team. All of your generated code is automatically saved to your Library, so it’s accessible across all your chats. You can open the Document Editor in three ways:
  • Type a prompt like “build me a budget tracker” or “create a bar chart from this data”. Langdock automatically opens the editor for you.
  • Click Create document in the input bar and describe what you want to build in your prompt.
  • Open the Tools menu and select Create document.
Chat input bar with a code prompt and the Create document button active

Code and Preview

Once your code is generated, you work with it in two views. Toggle between them at the top of the panel. Code shows the full source file. You can read through it, edit it directly by clicking anywhere and typing, or ask the AI to make changes. Everything saves automatically.
Code view in the Document Editor showing the HTML source of a monthly budget tracker
Preview renders your code live. Interact with it and test it directly before sharing or exporting.
Preview view in the Document Editor showing a running Monthly Budget Tracker

Debugging with AI

The Document Editor lets you iterate on your code with the AI directly from the chat. Type your instructions in the chat to add a feature, change the styling, fix a bug, or rework the layout, and the AI applies the change directly to the file and saves a new version automatically.
If the preview fails to render, an error card appears. Click Fix with AI to send the error to the chat automatically. The AI reads it and applies a fix.
Error running code dialog showing the error message and a Fix with AI button

Export your Code

When you’re ready to use your file outside Langdock, download it directly from the editor. Click the download icon in the top bar. The file downloads in its native format: .html, .jsx, or .tsx.

Version history

Every change is tracked automatically, for both documents and code files. Version history gives you a full record of every edit made to your file, whether by you or the AI, so nothing is ever lost. Click Version history in the top bar to open the version panel. Each version is timestamped and attributed to either you or the AI. Select any version to see exactly what changed. Click Restore version to make it the current document or file.
Version history dialog showing a diff view of changes alongside a list of versions attributed to the user and AI
When you ask the AI for changes, it always builds on your most recent edits rather than an older version. This ensures your manual edits are never lost.

Save to external storage

Both documents and code files can be sent directly to your team’s storage without downloading and re-uploading them. Click the external storage button in the top bar. All three options are always visible. Click Connect next to any integration that isn’t set up yet:
  • Open in SharePoint
  • Open in OneDrive
  • Open in Google Drive
External storage dropdown showing Open in SharePoint, Open in OneDrive, and Open in Google Drive with Connect options

Library

Whether you are working with documents or with code, everything you create is saved to your Library automatically. Your Library is the central home for all your files across Langdock, so you can always find and continue working on them across different chats.
Library view showing a document created in the Document Editor under Recent files
Open any document or file from the Library to keep editing.

What happened to Canvas?

Canvas is now the Document Editor. Any documents or files you created in Canvas are still accessible in the original chats where they were created. The Document Editor is built on what Canvas started, with version history, direct export to Google Drive, OneDrive, and SharePoint, and a Library where all your files are always accessible. They will be the foundation for new features coming to Langdock over time. Prompts that include the word “Canvas” still open the relevant editor, so your team can continue using that language without any disruption.