This guide walks through the five steps to get an agent running and surfacing findings as comment annotations. Each step links to the full API reference for request and response details.Documentation Index
Fetch the complete documentation index at: https://velt-raghul-agent-docs.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Step 1: (Optional) Refine your prompt
If you have a one-line QA instruction and you’re not sure it’s specific enough to ship, run it through the prompt tools first. Check completeness: Enhance Prompt returns either “your prompt is sufficient” or a specific clarification request (with suggested options for the user to pick from). Expand into a structured task: Validate Prompt takes a simple instruction and expands it into a comprehensive QA task with an analysis prompt, response descriptions, demo examples, and tool requirements. Iterate on demo failures: Refine Prompt takes an existing analysis prompt and a list of demo failures (with feedback) and produces a refined prompt. Resolve optimal config: Resolve Config takes raw + processed instructions and recommends extraction strategies + execution strategy. These tools are optional. Skip straight to Step 2 if you already know what your agent should do.Step 2: Create the agent
Call Create Agent with a name, instructions, and a configuration block. The minimum viable agent isname + instructions + contextGathering.strategies:
{ agentId }.
For a complete walkthrough of every config block (execution, response, postProcess, input, scope, setup, metadata), see the Create Agent reference.
Built-in agents (
spell-check, broken-links, etc.) are pre-registered for every workspace. You don’t need to create them — skip straight to Step 3 with one of the built-in agent IDs.Step 3: Run an execution
Call Run Execution withagentId and url. Pass organizationId and documentId if you want findings to land as annotations on a specific document.
{ executionId }. The engine creates an execution document, dispatches a Cloud Task, and starts processing asynchronously.
Cross-page execution: Set crossPageExecute: true and the engine crawls the seed URL and processes up to maxUrlsToProcess pages (default 50).
Workflow trigger: Set trigger: "workflow" and pass workflowExecutionId when running an agent as part of an Approval Engine workflow node.
Step 4: Poll for results
Call Get Execution with theexecutionId returned from Step 3. Poll until execution.status !== "running".
| Status | Meaning |
|---|---|
passed | Execution completed successfully |
failed | Execution completed with failures |
error | Unrecoverable error (see execution.error.code and retryable) |
skipped | Execution was skipped (precondition unmet) |
resultsSummary contains aggregate counts:
matchResult is populated when postProcess.matchAndMerge.enabled is true (the default). It tells you how many findings were new (created), already existed as annotations (skipped), or were resolved because the previous finding is no longer detected (resolved).
Step 5: Fetch per-URL findings
SetincludeResults: true on Get Execution to fetch the full findings array per URL:
results array alongside execution. Each entry has the URL, its findings, and per-URL counts:
postProcess.annotations.enabled is true and organizationId + documentId were provided on dispatch). Authors of these annotations are flagged with the system AGENT_USER.
Iterating on the agent
Behavioral edits create a new version. Identity edits do not.- Edit identity (
name,description,enabled): Update Agent. No new version; the root doc is updated in place. - Edit behavior (
instructions,contextGathering,execution,postProcess,input,scope,setup): Update Agent Version. Creates versionN+1and bumps the agent’sversionpointer. In-flight executions stay pinned to whatever version they started on. - List versions: List Versions. Each version contains the full behavioral snapshot.
- Roll back the most recent change: Restore Version. Single-step undo; call repeatedly to walk backward. Cannot go below version 1.
Organizing agents
Use Agent Groups to bundle related agents together (e.g. “Brand QA”). Agents stay independent documents — groups just store anagentIds array. An agent can belong to multiple groups; deleting an agent removes it from every group automatically.
When listing agents with Get Agent(s), pass groupId to filter to a single group’s members.
Track usage
Get Agent Analytics returns per-agent, per-model, per-month token consumption plus execution counts. Filter byagentId, year, month, or model.
Next steps
API Reference
All endpoints organized into Agents, Execution, Versioning, Prompt Tools, Analytics, and Groups, with full request and response schemas.
Overview
What agents are, the 5-phase pipeline, built-in vs custom agents, and the full enum vocabulary.

