Overview
The Canvas is a rich content editing surface embedded within the Nadoo AI chat interface. While standard chat produces ephemeral text messages, the Canvas lets users and agents collaboratively create, edit, and refine persistent documents, code snippets, structured artifacts, and other rich content — all without leaving the conversation.When to Use Canvas
Canvas is designed for tasks where the output is a document or artifact rather than a conversational answer:- Document drafting — Reports, emails, proposals, meeting notes
- Code generation — Scripts, configurations, templates with syntax highlighting
- Structured outputs — Tables, JSON schemas, structured data
- Iterative refinement — Edit and revise content through conversation turns
- Content review — Highlight sections, leave comments, request changes
How Canvas Works
- The user requests a document or artifact in the chat (e.g., “Write a project proposal for the new mobile app”)
- The agent generates the content and opens it in the Canvas panel
- The user can directly edit the content in the Canvas or request changes through chat
- The agent applies revisions while preserving the document structure
- The final document can be exported or saved
Canvas Interface
The Canvas appears as a side panel next to the chat, providing a split-view experience:| Area | Description |
|---|---|
| Chat Panel | Standard chat interface for conversation with the agent |
| Canvas Panel | Rich content editor displaying the current document or artifact |
| Toolbar | Formatting controls, export options, and version navigation |
DocumentCanvas Component
TheDocumentCanvas component renders the rich content editor with support for:
- Rich text formatting — Headings, bold, italic, lists, links, blockquotes
- Code blocks — Syntax-highlighted code with language detection
- Tables — Structured data with row/column editing
- Markdown rendering — Full Markdown support with live preview
- Direct editing — Click anywhere in the document to edit inline
DocumentToolbar Component
TheDocumentToolbar provides controls for managing Canvas content:
| Action | Description |
|---|---|
| Copy | Copy the full document content to clipboard |
| Export | Download as Markdown, PDF, or plain text |
| Version History | Browse and restore previous versions of the document |
| Full Screen | Expand the Canvas to full screen for focused editing |
| Close | Close the Canvas and return to chat-only view |
Using Canvas in Chat
Canvas integrates naturally into the chat flow. When the agent produces content that benefits from a document view, it automatically opens in the Canvas.Creating a Canvas Document
Ask the agent to create a document:Editing with Chat Commands
Request specific edits through the chat while viewing the document:Direct Editing
Click anywhere in the Canvas to edit the content directly. Your manual edits are preserved when the agent makes subsequent changes through chat.Canvas API
The Canvas API provides programmatic access to canvas documents for integration with external systems and custom workflows.Create a Canvas
Get a Canvas
Update a Canvas
List Canvas Documents
Get Version History
Content Types
Canvas supports multiple content types, each with tailored rendering:| Content Type | Description | Features |
|---|---|---|
markdown | Markdown documents | Rich rendering, headings, lists, tables, links |
code | Source code files | Syntax highlighting, line numbers, language detection |
html | HTML content | Rendered HTML preview with source toggle |
json | JSON data | Formatted display with collapsible sections |
text | Plain text | Simple text editing without formatting |
Canvas in Workflows
Canvas documents can be created and updated by Workflow Apps using the Canvas nodes:- Create Canvas Node — Generate a new document during workflow execution
- Update Canvas Node — Modify an existing canvas document
- Read Canvas Node — Retrieve canvas content for processing by subsequent nodes
Best Practices
Use Canvas for long-form content
Use Canvas for long-form content
Activate Canvas when the expected output is more than a few paragraphs. Short answers are better served by standard chat messages.
Iterate through conversation
Iterate through conversation
Instead of rewriting entire documents manually, describe the changes you want in chat. The agent can make targeted edits while preserving the document’s structure.
Export early and often
Export early and often
Use the Export function to save snapshots of your document. While version history is maintained, exporting gives you a local copy you can share or archive.
Combine with knowledge base
Combine with knowledge base
When drafting documents that reference your organization’s data, make sure the Chat App has relevant knowledge bases attached. The agent can pull facts and figures directly into the Canvas.