AI
SysCraft AI capabilities move the system toward an intelligent assistant for architects, analysts, developers, and teams working with the IT landscape.
The AI assistant does not work as a separate context-free chat. It acts as a companion next to the architecture model. It takes into account the selected diagram, elements, relationships, interfaces, data flows, use cases, tasks, documentation, and change history, if that data is available to the current user.
The main goal of AI is to speed up model understanding, gap detection, and documentation preparation. At the same time, the model remains governed: changes must be made in the correct branch, with access rights, action history, and subsequent merge of changes taken into account.
What AI can do
The AI section covers several workflows:
- model questions - the assistant answers based on the current diagram, selected element, data flow, interfaces, documentation, and change history;
- gap detection - helps find elements without descriptions, relationships without purpose, unbound interfaces, incomplete use cases, and weak spots in C4 levels;
- draft model generation - turns text, a diagram photo, a file, or JSON commands into a verifiable change plan;
- preview before applying - shows which elements, relationships, diagrams, and flows will be created or changed before writing to the model;
- documentation - prepares drafts of diagram, system, use case, architecture decision, and review materials;
- mobile upload - lets you photograph a diagram from a phone and send it to the desktop generation session;
- voice input - speeds up long requests, answers to clarifying questions, and comments;
- Telegram channel - lets you manage the selected landscape by text and voice, receive a preview, and confirm the plan from the messenger;
- AI via share link - gives an external participant the ability to ask questions only about the allowed diagram context.
Where to open AI
In the updated interface there are three entry points:
- "AI Design" on the left - a command bundle with preview, model generator, and mobile upload;
- "Chats" on the left - an AI assistant for the model alongside active discussions and Telegram;
- the sparkles button in the diagram editor - a chat in the context of the current diagram.
There can also be an AI button in the top bar, which opens chat or generation without first navigating to the section.
The button is available if:
- AI is enabled in the environment;
- the diagram is loaded;
- the user has access to the selected context;
- the opening mode allows AI use;
- for a share link, Allow AI is enabled and its dependencies are satisfied.
After opening, the AI assistant window appears. In it you can create a new session, set a session name, send a starter question, and continue the dialog in the same session. If AI is temporarily unavailable, the system shows status and an error message instead of an input field.
AI + MCP
MCP is used as the application boundary through which AI can work with the model in a controlled way: receive context, search for elements, map user-facing names to real objects, and prepare an action plan.
For the user, this means it is possible to ask questions not only in the style of "write text", but also in the style of "analyze my architecture":
- what this system does;
- which containers participate in the scenario;
- why this data flow is not bound to interfaces;
- which elements in the model look incomplete;
- which documentation can be generated from this diagram;
- which questions should be asked of the team to make the model complete;
- what has changed in the branch before merging;
- which risks are visible in the current domain.
MCP calls must not bypass system rules. If the environment has AI-driven change execution scenarios enabled, they must go through the normal model mechanisms: access rights, the selected branch, the operation log, and undo. Therefore, the AI assistant is not a way to quietly change the master model.
AI chat with model tools
In a normal AI chat, the assistant can use read-only model tools. This means it not only answers the text of the question, but can also request factual context from SysCraft:
- a list of domains, diagrams, elements, flows, and interfaces;
- visible elements of the open diagram;
- properties of the selected element, relationship, interface, or step;
- action history in the current branch;
- usage of an element, relationship, interaction, or endpoint;
- relationships and dependencies of the selected link;
- endpoints and services of the element;
- data flow steps and their request/response properties.
Access scope is defined not by the model, but by the backend: the current organization, landscape, branch, domain, and user rights are taken from the active request. Therefore, the assistant cannot substitute a branch or read data that is unavailable to the user.
If the selected AI provider does not support tool calling, the chat runs in a simplified mode and answers only using the provided context. In this case, answers may be more general. For precise model analysis, use a provider that supports OpenAI-compatible tools, or clarify the question with specific diagram, element, and flow names.
The AI chat keeps a technical trace of tool calls: operation name, success, and execution time. This helps an administrator distinguish a general language-model answer from an answer grounded in factual SysCraft data.
AI model generation
The AI generator helps turn a textual description, a diagram photo, a documentation fragment, or JSON commands into a draft model change.
The generator is available from the AI command window. In it you can:
- choose the domain where new elements will be added;
- describe the task in text or voice;
- attach images,
.txt,.md, or.jsonfiles; - paste files from the clipboard;
- open mobile upload with the "From phone" button;
- specify "Exact copy" mode if less normalization is needed;
- force file rescanning if the old recognition is no longer suitable;
- limit the number of clarifying questions;
- view the plan, warnings, validation errors, and visual preview before applying.
The key principle is: AI does not change the model directly. First, the model generates a set of commands, then the backend builds a preview, checks the rules, and returns the result to the interface. The user applies only the set of commands that was shown in the preview.
The usual workflow is:
- Open the diagram and the active working branch.
- Open AI commands and click the generator button.
- Describe what needs to be designed or changed.
- If needed, attach a photo, file, or paste an image from the clipboard.
- Start generation and wait for the plan.
- Review the summary, assumptions, questions, command list, and diagram previews.
- If AI asked questions, answer them and continue generation.
- If part of the plan is incorrect, fix a specific item or add clarification.
- Apply commands only after checking the preview.
- Review the action history and the diagram in the current branch.
Preview, validation, and fixes
Preview shows not the final model, but the result of compiling AI commands before application. This is needed so that an architect or analyst can see the consequences in advance.
In preview you can verify:
- which elements will be created or changed;
- which relationships will appear between elements;
- which diagrams and data flows will be added;
- which steps will be included in the flow;
- which commands are disabled or require review;
- which errors and warnings were found by the backend validator.
If validation returns errors, do not apply the plan blindly. Clarify the request, fix a specific item, or ask AI to rebuild the plan taking the remarks into account. If the error is related to the domain, it is better to clarify the requirement with the product owner or systems analyst first, and then repeat generation.
AI optimization of use cases and applying recommendations
An AI analysis for a use case is available in the data-flow menu. The analysis scope can be limited to the flows of the current diagram or expanded to all flows in the selected landscape. The first stage is always read-only: AI produces a report with risks and recommendations, but does not change the architecture model.
To move from the report to changes, a two-step confirmation process is used:
- Run the analysis and read the recommendations.
- Click "Prepare Changes". The system converts only unambiguous recommendations into a limited set of model commands.
- Wait for server-side verification of command structure, analysis scope, model freshness, and access rights.
- Review the change tree by domain and use case. For each operation, the type, affected object, and explanation are displayed.
- Click "Apply N Changes" only after reviewing the full plan.
- After execution, the use-case list is updated without a full page reload.
Preparing the plan does not change the model. The browser sends only the identifier of the saved ChangeSet to the server, so it cannot replace the reviewed commands before confirmation. The plan is valid for a limited time and is tied to the model version on which the analysis was performed. If another user managed to change the landscape or branch, the system will reject the outdated plan and suggest running the analysis again.
Automatic application is intentionally limited to a safe set of operations: creating and changing a use case, and creating, changing, deleting, and moving steps. Use case deletion, moving objects between domains or diagrams, and any changes outside the analyzed scope are blocked by backend validation regardless of the AI response. A single plan can contain no more than 200 commands.
Access rights
Access rights are checked twice:
- during preparation - to show in advance all domains where permissions are missing;
- immediately before the change - inside the command transaction and after locking the current model version.
If permissions are insufficient, the apply button is unavailable. The window displays the domains and required rights. Contact the administrator or the owner of the relevant domain; the system will not partially execute a blocked plan.
Atomicity and undo
All commands in a confirmed plan are executed as a single atomic batch: either all changes are applied, or the model remains in its original state. The operation receives one command log entry, one model version, and is available in action history.
After successful application, you can click "Undo changes". Undo is performed as a new compensating command rather than deleting a history record. Before doing so, the system again checks the user, rights, dependencies, and current object state. If the affected use cases have already been changed after the batch, safe undo may be rejected as a conflict - this protects newer changes from being overwritten.
Important: preparing an executable plan is a separate AI request after the textual analysis. Click the button again only when you need to rebuild the plan; applying an already prepared ChangeSet does not call AI again.
Mobile upload for AI
The "From phone" button in the generator opens the mobile upload workflow. It is useful when the source diagram is on a board, in a notebook, on paper, or on the screen of another device.
On the mobile page you can:
- photograph the diagram with the camera;
- select images or files;
- add text or voice description;
- send files to the desktop generation session;
- prepare commands and preview from the phone if the scenario is enabled.
After upload, files appear in the current AI generation session on the desktop screen. If file saving and recognition caching are enabled, re-uploading the same image can use an already saved recognition result. If you need AI to reread the image, use "Rescan Files".
Voice input
In AI forms and many SysCraft text fields, a button with a microphone icon is available. It uses browser speech recognition if the browser supports SpeechRecognition or webkitSpeechRecognition.
Voice input works as a filling accelerator:
- the recognition language follows the interface language: Russian or English;
- the recognized text is added to the current field;
- for Russian text, the system normalizes the beginning of the sentence;
- in settings you can choose stopping on pause or manual stop;
- if the browser does not support speech recognition, the microphone button is disabled.
Use voice input for long descriptions, answers to AI clarifying questions, comments on generation, and chat text. After dictation, be sure to reread the result: browser recognition can make mistakes in system names, acronyms, and technical terms.
AI through Telegram
The AI generator can create a QR code for Telegram linking. After /start, the bot receives the context of the current user, landscape, and branch and allows work to continue by text or voice.
Telegram uses the same overall workflow as web and mobile AI:
- The request enters the AI session.
- The system forms a response, clarification, or plan.
- The plan goes through normalization, preview, and validation.
- The user confirms application.
- Commands are executed through the normal SysCraft log.
- The open tab receives instructions to refresh the model, open the flow, or move to a step.
A detailed guide, phrase examples, and service commands are provided in the "AI Through Telegram" section.
What you can ask
Questions about how the system works
Ask questions when you need to quickly understand how part of the landscape is arranged:
- Explain how this diagram works for a new developer.
- Which systems participate in this business process?
- Where are the external dependencies here?
- Which containers are responsible for request processing?
- Which elements are used on other diagrams?
- Why is this use case connected to this set of interfaces?
If the question concerns a specific diagram, open it before starting AI. This gives the assistant the most useful context.
Gap detection
AI helps perform an initial model check:
- elements without owners;
- elements without descriptions;
- relationships without clear purpose;
- integration steps without interfaces;
- interfaces that are not used by flows;
- diagrams without sufficient detail;
- use cases without alternative scenarios;
- domains with many empty required properties;
- places where C4 levels are mixed too coarsely.
For quantitative checking, use dashboards and analytics, and for finding a specific event, use action history.
Documentation generation
You can ask AI to prepare documentation drafts based on the model:
- diagram description;
- system or domain description;
- explanation of an architecture decision;
- text for architecture review;
- use-case specification;
- list of open questions;
- summary of changes in the branch;
- onboarding materials for a new team member.
A good request formulation:
- Specify the audience: developer, analyst, architect, business, operations, or external reviewer.
- Specify the format: detailed description, short summary, checklist, documentation section, or clarifying questions.
- Specify the boundaries: current diagram only, whole domain, specific flow, interfaces only, or branch changes.
- Ask AI to explicitly list what data is missing.
Example:
Generate a documentation section for this diagram for the development team. Describe the purpose of the systems, the main dependencies, data flows, interfaces, risks, and the list of questions to clarify before review.
After generation, review the text and move the final version into the IT infrastructure documentation or use-case specification section.
Generating architecture commands
If you need not only text but also a draft model, use the AI command generator.
Example requests:
- Create a C1 diagram for an e-commerce solution: client, storefront, backend, payment provider, and delivery service.
- From this photo, propose a C2 diagram and an order checkout flow.
- Add cart, catalog, order, and payment subsystems, but do not create an ERD.
- Check the plan and ask questions if it is unclear which domains to use.
- Fix item 3: Kafka should be an infrastructure component, not a business system.
Always choose the working branch when generating changes. This is especially important for training, prototype, and disputed decisions: first create a draft, discuss it with the team, then correct it, and only after that move the changes into the main branch.
Questions about completeness
A useful scenario is to ask AI not only to answer, but also to ask questions:
- What is missing in this model so that it can be sent for review?
- Which questions should be asked of the domain owner?
- Which properties should be mandatory?
- Which interfaces need to be described for this flow?
- Which drill-down diagrams should be added?
- Which diagrams are better to create: BPMN, ERD, Use Case, or Domain class?
If AI asks clarifying questions, answer them directly in the question cards. The answers are saved within the current AI session and help the assistant continue analysis without losing context.
AI sessions
The AI window uses sessions. A session is a separate dialog about a specific question or work story.
In a session the following are available:
- creating a new dialog with the New session button;
- session name;
- starter message;
- message history;
- collapsed older messages;
- AI questions and user answers;
- voice input, if supported by the browser and environment;
- sending a message with the send icon button.
Do not mix independent topics in one session. For diagram review, documentation generation, and merge analysis, it is better to create separate sessions so that the answers do not mix contexts.
In generation sessions, the working generation context is additionally saved: uploaded files, analysis steps, recognition results, validation, preview, and selected commands. This allows work to continue from a specific step without recreating the entire scenario.
AI and share links
AI can be allowed for a share-link recipient only explicitly.
In the diagram sharing window there is an Allow AI switch. It becomes available only when all basic link capabilities are enabled:
- diagram visuals;
- elements outside the diagram;
- object properties;
- interfaces;
- data flows;
- documentation;
- element drill-down;
- relationship expansion;
- navigation to use diagrams.
This restriction is needed so that AI does not answer questions about data that the share link itself is not allowed to show. If at least one dependency is disabled, Allow AI is automatically turned off.
AI, documentation, and teamwork
AI is useful together with documentation, chats, and collaborative diagram work:
- in AI you can ask questions about the current diagram and ask what to do next;
- in documentation you can store final instructions and specifications;
- in chats you can discuss disputed issues with the team.
- in diagram collaboration you can see other participants, follow a colleague's cursor, and quickly pick up changes.
For newcomers, a convenient workflow is: open a key diagram, start AI, and ask it to explain the model structure in simple words. If the answer reveals gaps, discuss them in the diagram or element chat, then make changes in the working branch.
Vibe design
Vibe design is evolving as the next workflow: the user describes the desired architectural outcome in natural language, and the system helps turn it into a model, questions, documentation, and a verifiable plan.
Current AI capabilities can already be used as a preparatory layer:
- formulate the solution idea;
- ask AI to ask clarifying questions;
- get a draft list of elements, relationships, diagrams, and use cases;
- check what information is missing;
- prepare documentation before manual or semi-automatic changes are made.
Final modeling and acceptance of changes must remain a controlled process: working branch, action history, review, and merge.
A practical approach:
- First describe the idea in simple words or attach a photo.
- Let AI ask questions and assemble a draft plan.
- Check the preview and do not apply commands until the domains, C4 levels, and system boundaries are clear.
- Apply changes to the working branch.
- Discuss the result with the analyst, architect, and developers.
- Refine C1, C2, C3, data flows, and documentation as a normal design decision.
The main value of this approach is not that AI "draws the diagram itself," but that disputed decisions become visible before development. A mistake found during design is usually cheaper than a mistake found after implementation or in production.
Edge cases
AI is unavailable
Check:
- whether AI is enabled in the environment;
- whether the AI service backend is available;
- whether the correct landscape and diagram are selected;
- whether read-only mode is open without AI permission;
- whether the share link has expired;
- whether the Allow AI option for the share link is disabled.
AI answers too generally
Clarify the request:
- name a specific diagram, element, flow, or domain;
- specify the documentation audience;
- ask to reference model elements;
- ask to list assumptions separately;
- ask to ask questions first if the context is insufficient.
If the provider does not support model tools, AI may not be able to perform an exact drill-down through diagrams, endpoints, and history. In that case, switch to a provider with tool calling or provide more context manually.
AI generation does not apply commands
Check:
- whether the working branch and domain are selected;
- whether there are permissions to create elements, relationships, diagrams, and flows;
- whether there are validation errors in the preview;
- whether all commands in the plan are disabled;
- whether read-only or share mode is open;
- whether AI requires answers to clarifying questions;
- whether the mobile upload session has expired.
If the preview looks incorrect, do not apply the commands. Fix the request, answer the questions, or edit a specific item in the plan.
AI cannot see part of the data
Check:
- whether the correct domain is selected;
- whether the required branch is open;
- whether the user has rights to the data;
- whether the needed share-link options are enabled;
- whether elements outside the diagram are hidden.
AI suggests changing master
Do not make changes directly in master if the team process requires review. Create a working branch, make changes, review the history, and then perform merge.
Related sections
- Chats
- AI Through Telegram
- Diagram Sharing
- IT Infrastructure Documentation
- Use-Case Specifications
- Dashboards and Analytics
- Action History