Skip to content

AI Chat Panel

The AI Chat is your intelligent design assistant built into LoomCAD. It understands natural language commands and can create components, wires, and perform design tasks automatically.

TIP

For AI capabilities, prompting strategies, and workflow guides, see AI Copilot Overview. This page focuses on the panel interface and controls.

TIP

You can configure your own API keys for AI providers in Profile Menu → API Keys. This gives you higher rate limits and more control over your AI usage.

ai-chat-overview.png
ai-chat-overview.png
AI Chat panel showing a conversation with the AI
Show message history, input field, and context badges

Opening AI Chat

Method 1: left click click AI button in Status Bar

Method 2: (if configured) Use keyboard shortcut

The AI Chat panel appears as a floating, draggable window. New users see a welcome message with quick-start tips on first opening. Hover over the header to see the move cursor, then drag to reposition:

ai-chat-drag-cursor.png
ai-chat-drag-cursor.png
Move cursor appears over the header when dragging is available

Panel Layout

ai-chat-layout.png
ai-chat-layout.png
AI Chat panel with labeled sections
  • Chat title - auto-generated or custom name
  • Model selector - choose AI provider/model

Header buttons (left to right):

ButtonDescription
Model settings
Chat settings
Chat history
Chat actions
New chat
Expand to fullscreen
Toggle debug info (show/hide message IDs)
Hide chat

Model selector dropdown:

ai-chat-model-dropdown.png
ai-chat-model-dropdown.png
Model dropdown showing available AI models
ProviderModelsNotes
AnthropicClaude Sonnet, Claude Opus, Claude HaikuRecommended
GoogleGemini, GemmaFast, multimodal
OpenRouterGPT, Mixtral, 100+ modelsVariety of options
LM StudioLocal modelsPrivacy, offline use

Model Settings

model-settings.png
model-settings.png
Model settings dialog
ElementDescription
Current modelShows selected AI model
Max TokensMaximum number of tokens in the response (leave empty for default)
TemperatureControls randomness: 0.0 = deterministic, 1.0 = very creative (leave empty for default)
RESETReset to default values
CANCELClose without saving
SAVESave settings

Note: If settings are not specified, the model will use its default values.

Chat Settings

chat-settings-dialog.png
chat-settings-dialog.png
Edit Chat History dialog
ElementDescription
TitleChat name (editable)
Shared AccessToggle to allow access to other users
TagsAdd tags for categorization
✨ AUTO GENERATE TITLEAuto-generate chat title based on content
CANCELClose without saving
SAVESave changes

Chat Actions

chat-actions-dialog.png
chat-actions-dialog.png
Choose an action for this chat dialog
ElementDescription
Clear ChatRemove all messages but keep the chat history record
Delete ChatPermanently delete chat and all messages (cannot be undone)
CANCELClose dialog

Fullscreen Mode

ai-chat-fullscreen.png
ai-chat-fullscreen.png
AI Chat in fullscreen mode

Fullscreen mode expands the chat to fill the entire window. Press or Esc to exit.

Message Area

  • Your messages - right-aligned
  • AI responses - left-aligned
  • Code blocks - syntax highlighted
  • Context badges - shows what AI can see

Input Area

  • Message input - type your prompt
  • Send button - submit message

Sending Messages

Basic Usage

  1. Type your message in the input field
  2. Press Enter or left click click
  3. AI responds with text and/or code

Example Commands

Create components:

Create connector J1 with 8 pins

Connect wires:

Add a red wire from J1 pin 1 to J2 pin 1

Batch operations:

Create 5 connectors J1-J5, all 4-pin

Ask questions:

How do I export to PDF?

Context Badges

Context badges are information blocks that are sent to AI along with your message.

context-badges-example.png
context-badges-example.png
Context badges panel with add button and badges

Badge Panel Elements

ElementDescription
+Add badge button — opens dropdown (see below)
Badge iconType indicator
Badge nameContent description
SizeData size (e.g., "3.7 KB")
Toggle visibility — temporarily disable without removing
Remove badge
left click click a badge to view its content.

Add Badge Dropdown

context-badges-dropdown.png
context-badges-dropdown.png
Add badge dropdown menu
OptionDescription
Attach fileAttach a file (images, PDF, text/markdown)
Project contextSubmenu with project data options (see below)
System message guideSubmenu with instruction templates (see below)
URLAdd web page content
Inspector contextAdd selected element's properties

Project Context Submenu

context-badges-project.png
context-badges-project.png
Project context submenu expanded
OptionDescription
@allAll project data
@projectProject overview
@componentsComponent library data
@sheetsDrawing sheets data
@bundlesWire bundle data

System Message Guide Submenu

context-badges-system-guide.png
context-badges-system-guide.png
System message guide submenu with instruction templates

Instruction templates that can be enabled/disabled:

TemplateDescription
General instructionsBasic AI behavior guidelines
Query commandsCommands for querying project data
Draw commandsCommands for creating elements
Update commandsCommands for modifying elements
Move commandsCommands for repositioning elements
Erase commandsCommands for deleting elements
Extract wiresWire extraction instructions
Merge anchorsAnchor merging instructions
Convert to sideviewSide view conversion instructions
Make sideviewSide view creation instructions

Enabled templates are included as context badges automatically.

Attachments

chat-attachments.png
chat-attachments.png
Chat with attached image

Add context by attaching files:

TypeUse Case
ImagesWiring diagrams, photos
PDFsDatasheets, specifications
Text filesAny text format: TXT, JSON, YAML, XML, CSV, etc.

To attach:

  1. left click click + in the badge panel
  2. Select Attach file
  3. Choose file from disk

Image Analysis Use Case

When you attach an image:

Extract the wires from this wiring diagram

AI analyzes the image and can:

  • Identify components
  • Detect wire connections
  • Propose schematic creation

Using Badges

  • Add badges to provide context to AI
  • AI automatically accesses badge data
  • No need to copy-paste information
  • Toggle visibility to temporarily exclude data

Example with DigiKey badge:

Create connector J1 using this DigiKey component

AI reads the specs from the open DigiKey dialog and creates the component with all properties.


Code Execution

AI can generate JavaScript code to modify your design.

code-execution.png
code-execution.png
AI response with code block and Run Script button

Running AI-Generated Code

  1. AI provides code in a code block
  2. left click click Run script
  3. Code executes on your design
  4. OK message appears if script ran successfully
code-execution-ok.png
code-execution-ok.png
OK message after successful script execution

Script Errors

If script has errors, an error message appears with details:

code-execution-error.png
code-execution-error.png
Error message with line number and action buttons
ElementDescription
Error messageDescription of the error
Line/columnError location in code
Code snippetFragment with highlighted error line
SCROLL TO ERRORJump to error in code block
ASK AIAsk AI to fix the error

Error line is highlighted automatically. left click click SCROLL TO ERROR to scroll to it if not visible:

code-execution-scroll-error.png
code-execution-scroll-error.png
Error line highlighted in code block
left click click

ASK AI to get error explanation and corrected script:

code-execution-ask-ai.png
code-execution-ask-ai.png
AI explains error and generates fixed script

Manual Edit

You can also fix errors manually by editing the message:

code-block-edit-enter.png
code-block-edit-enter.png
Message dropdown menu with Edit option
left click click the dropdown arrow on a message to access:
OptionDescription
EditEdit the message content
DeleteDelete this message
Delete all from hereDelete this and all following messages

After selecting Edit, the message becomes editable:

message-edit.png
message-edit.png
Message being edited with Save and Cancel buttons
  1. Edit the code in the text area
  2. left click click Save to apply changes
  3. Error indication resets and script can be run again

Code Block Features

FeatureDescription
Syntax highlightingJavaScript code is colored
Copy buttonCopy code to clipboard
Run scriptExecute the code
SaveSave script for reuse
Error markersShows line numbers with errors

Save Script

left click click

Save to save the script for later reuse:

script-save-dialog.png
script-save-dialog.png
Save Script dialog
FieldDescription
DestinationChoose current project or library
Script nameRequired name for the script
DescriptionOptional description
TagsOptional tags for organization

Destination dropdown example:

script-save-destination.png
script-save-destination.png
Destination dropdown with current project and libraries

Filled form example:

script-save-filled.png
script-save-filled.png
Save Script dialog with filled fields

After saving, the script appears in the Scripts tab in the Sidebar:

scripts-tab.png
scripts-tab.png
Saved script in the Scripts tab

Safe Execution

  • Code runs in a sandboxed environment
  • Can only affect your LoomCAD project
  • Cannot access external systems
  • Undo available if something goes wrong (Ctrl+Z)

Generate Further

When the AI model runs out of context window space, it may produce an incomplete response. In this case, a Generate further button appears at the end of the message.

generate-further-1.png
generate-further-1.png
Incomplete AI response with Generate further button
left click click the button to continue generation:
generate-further-2.png
generate-further-2.png
Continued generation with more content
generate-further-3.png
generate-further-3.png
Further continuation of the response

When the response is complete, the button disappears and Run script / Save buttons appear for code blocks:

generate-further-4.png
generate-further-4.png
Complete response with Run script and Save buttons

Message Actions

left click click the dropdown arrow on your message to access actions:
message-actions-menu.png
message-actions-menu.png
Message actions dropdown menu
ActionDescription
EditEdit message content
DeleteDelete this message
Delete all from hereDelete this and all following messages
Regenerate answerRegenerate AI response to this message

AI Message Actions

left click click the dropdown arrow on an AI message:
ai-message-actions-menu.png
ai-message-actions-menu.png
AI message actions dropdown menu
ActionDescription
EditEdit message content
DeleteDelete this message
Delete all from hereDelete this and all following messages

Edit Messages

left click click Edit to modify any message. Two editing modes are

available:

Quick Edit

message-edit.png
message-edit.png
Quick edit mode
  1. Edit the text directly
  2. left click click Save to apply

Message Editor

left click click Edit Mode to open the full

editor:

ai-message-edit-mode.png
ai-message-edit-mode.png
Message editor with formatting toolbar and preview
ElementDescription
Preview ModeReturn to quick edit mode
Formatting toolbarBold, italic, lists, code blocks, tables, etc.

Common Elements

Available in both editing modes:

ElementDescription
Message completedUncheck to show "Generate further" button
Editor paneRaw markdown text on the left
Preview paneRendered preview on the right
Character CountShows message length
Scroll AutoAuto-scroll preview with editor
Cancel / SaveDiscard or apply changes

Delete Messages

left click click Delete to remove a single message, or **Delete all from

here** to remove the message and all following messages.


Chat Management

left click click to open

chat history list:

chat-history-list.png
chat-history-list.png
Chat history list showing all conversations

Main Header

In list mode, the main header shows an additional button:

ElementDescription
Back to current chat

All other buttons remain the same as in Header.

List Header

ElementDescription
ChatsPanel title
Refresh chat list
Import chat history from previously exported JSON file
Create new chat

Create New Chat Dialog

left click click from

Header or from List Header to open:

create-chat-dialog.png
create-chat-dialog.png
Create New Chat History dialog
ElementDescription
TitleChat name (required)
Shared AccessToggle to allow access to other users
TagsAdd tags for categorization
CANCELClose without creating
CREATECreate new chat

Type in the search field to filter chats by title.

Chat List

Each chat item shows:

ElementDescription
TitleChat name (auto-generated or custom)
Date/TimeWhen chat was last active
Message countNumber of messages in chat
Chat options menu
left click click a chat to open it.

Chat Options Menu

chat-context-menu.png
chat-context-menu.png
Context menu for chat item
OptionDescription
EditEdit chat title and settings
ShareShare chat with other users
ExportExport chat to JSON file
ArchiveMove chat to archive
DeleteDelete chat permanently

Pagination

Navigate through pages of chats using the page numbers at the bottom.

Auto-Titling

After your first exchange, AI automatically names the chat based on content. To rename, use Chat Settings.


AI Capabilities

What AI Can Do

  • Create components with properties
  • Draw wires and bundles
  • Modify existing elements
  • Answer questions about LoomCAD
  • Explain features and workflows
  • Generate batch operations
  • Analyze designs for issues

What AI Cannot Do

  • Access external websites (except via badges)
  • Modify system files
  • Execute arbitrary system commands
  • Access other users' projects

Troubleshooting

"No API Key" Error

Configure API keys in Profile Menu → API Keys:

  1. left click click your profile in the top right
  2. left click click API Keys
  3. Enter key for your provider
  4. left click click UPDATE to save

Rate Limit Errors

If you hit rate limits:

  • Wait a few minutes
  • Use a different model
  • Configure your own API key (higher limits)

AI Not Understanding

Try:

  • Be more specific in your prompt
  • Provide context with badges (open Inspector, DigiKey)
  • Break complex requests into steps
  • Use simpler language