v1.0.0

Running, Chat and files

Updated 30 Nov 2026Edit this page

How to run graphs, pass inputs, run only part of a graph, chat with a workflow, read traces and outputs, and upload project files.

Running a graph

  1. Save (Ctrl+S). Run always executes the latest saved revision.
  2. Fill Run inputs: one typed field per Manual Input (String, Number, Boolean or JSON) and an image picker per Image Input. Fields with defaults can stay empty.
  3. Choose what to run in the toolbar selector: Run everything or Run → output name.
  4. Click ▶ Run. Nodes are coloured live; Cancel run stops it cooperatively.

What happens on the server:

  1. The revision is validated (7 stages; see Runtime). If it is not executable the API answers 422 with diagnostics and nothing runs.
  2. An execution plan is compiled (deterministic topological order, per-node timeouts and attempts, the secrets each node may resolve).
  3. A run record is created with the IR snapshot and content hash, and a job is queued for a worker.
  4. The engine runs ready nodes concurrently (up to AGENTICMIND_MAX_CONCURRENCY, default 8), emits trace events and stores outputs and checkpoints.
  5. The IDE follows the run over Server-Sent Events.

Run targets

When a graph has several Output nodes, each is a run target. Choosing Run → Index report runs that Output and everything upstream of it, nothing else. Use this to keep ingestion and querying in one project, or to test one branch.

Over the API: POST /api/projects/{id}/runs with {"inputs": {...}, "targets": ["index_report"]}.

The Chat tab

Chat is a friendly way to start runs:

  • It picks the text input named question (or the first text input) and the output named answer (or the first output). You can change both.
  • The answer streams as it is written (LLM and Agent nodes stream tokens), with a cursor, then is replaced by the final output.
  • Under each answer: latency, tokens and cost.
  • Citations [1] are clickable and open the source chunk.
  • Tool calls appear as Used N tool calls; expand to see each call’s arguments and result. ReAct thoughts and plan steps are shown too.
  • SQL answers show the query and the rows.
  • Images: an attach button appears when the graph has an Image Input; the thumbnail shows in the message.
  • Memory graphs: when the graph reads a conversation ID, Chat keeps one per thread; New chat starts a new one. When it reads a consent input, a Remember facts I share toggle (off by default) appears.
  • Approvals: if a run pauses, Chat shows Paused for approval.

Each chat message is an ordinary run, so its trace and node statuses are available like any other run.

Reading results

  • Output: the run’s outputs, status and token/cost totals. Documents open in the document viewer (source, page, section, offsets, score); image references render as thumbnails.
  • Trace: every event, in order. Useful events to look for:
Event Tells you
node_retrying A transient error is being retried (with attempt number).
node_skipped The node did not run: control_not_activated or upstream_skipped:<port>.
agent_turn / tool_call Each model turn and each tool execution of an Agent.
handoff / handoff_result A supervisor delegating to a sub-agent.
retrieved Retrieved chunks with their vector and keyword ranks.
model_route / router_fallback Which route a Model Router or Router chose and why.
loop_iteration One per loop iteration, with data.iteration.
  • Inspector → Last run shows one node’s outputs and errors.
  • Download a run as OTLP/JSON from the Trace tab to open it in an OpenTelemetry tool.

Uploading files

Files you upload are project files (artifacts), stored outside the graph and referenced by ID.

  • Project panel → Files (click empty canvas to see it): upload, list, preview and delete.
  • File pickers in node settings (Document Loader, Image Loader, OCR, Database Connector) offer Upload files inline and a list of existing files.

Accepted types include PDF, DOCX, XLSX, PPTX, EPUB, Markdown, TXT, RST, LOG, HTML, CSV, TSV, JSON, JSONL/NDJSON, XML, YAML, SQLite/DuckDB databases, and images (PNG, JPEG, WebP, GIF, BMP, TIFF). SVG is refused because it can carry scripts. The size limit is 50 MB per file (AGENTICMIND_MAX_UPLOAD_MB). Downloads are always served as attachments with nosniff, so uploaded HTML never renders inside the app. Deleting a project deletes its files.

Running from outside the IDE

From How
REST API POST /api/projects/{id}/runs (202), then GET /api/runs/{run_id} or the SSE event stream. See REST API.
One streaming call POST /api/projects/{id}/runs/stream: run id, tokens, trace, result, end.
CLI agenticmind run graph.json -i question="..." --events. See CLI.
MCP Expose the project as an MCP tool. See MCP.
Triggers Webhooks, schedules, queues, chat channels. See Triggers.
Exported app POST /<output-key> on the generated FastAPI app. See Export app.