Skip to content

Administrator Guide

Marcello Marchetti edited this page Oct 30, 2026 · 17 revisions

Administrator Guide

A single reference for tenant administrators to configure XRCopilot: the integration features — Agent Tasks, Connections, Action steps and Human Approval steps in orchestrators, MCP servers and external A2A agents. The no-code builders and the process module have their own pages: MCP-Builder, App-Builder and Business-Process-Management.

This guide focuses on what each feature does, what to put in each field, and how to make sensible choices during setup. For deeper, example-driven references see the Webhooks-Agent-Tasks, Webhooks-Connections-Action-Steps, and Integration-Templates pages.

New to the platform? Start with Getting-Started for authentication and your first agent.


Table of Contents

  1. How XRCopilot Is Organized
  2. Choosing the model for an agent
  3. Agent Tasks
  4. Connections
  5. Orchestrator Action Steps
  6. Human Approval Steps
  7. MCP Servers
  8. Agent-to-Agent (A2A) Interoperability
  9. Embedded Chat — Authenticated Identity
  10. Developer keys
  11. Agent governance
  12. Common Choices & Recommendations
  13. Troubleshooting
  14. Related Documents

How XRCopilot Is Organized

XRCopilot gives a tenant administrator four building blocks to integrate with external systems:

Building block What it's for Where it lives in the UI
Agent Task A reusable AI agent invocation triggered by webhook / schedule / manually. Produces a result and delivers it via output actions. Agents → Agent Tasks tab
Connection A reusable configuration holder for an external HTTP endpoint (base URL + authentication + secret). Used by orchestrator Action steps. Admin menu → Connections (/connections)
Action step An orchestrator step that invokes a Connection (or a one-off URL) as part of a workflow. Orchestrator editor → add an Action step
MCP server A "tool provider" that exposes external functions an AI agent can call during a conversation. Admin menu → MCP Servers (/mcp-server)

All four are per-tenant — what you configure in your tenant is isolated from other tenants. (Some MCP servers may be pre-configured platform-wide and available to every tenant by default; you can override them per-tenant when needed.)


Choosing the model for an agent

The model list

Every agent endpoint carries a model, picked from a list the platform keeps. The list is the same for the whole platform, and each entry shows a description of what that model is for next to its name, so the choice can be made without leaving the page.

Two families are available. The GPT family covers the default configuration: a newly created endpoint uses gpt-5.4. The Claude family was added in v3.2.0:

Model Context Use it for
claude-opus-5 1M tokens Long analyses, multi-step tool use, answers you do not want to revisit. The most expensive of the three.
claude-sonnet-5 1M tokens Everyday conversation and tool workflows, with the same long context at a markedly lower cost.
claude-haiku-4-5 200K tokens Classification, short answers and high volumes, where latency and cost per request matter.

A Claude model works everywhere the agent works, not only in chat: tools and MCP servers, skill selection and execution, deep analysis, attachments and images. Switching an agent from GPT to Claude needs no other change to its configuration.

Cost varies by more than an order of magnitude between the tiers. Choose by task rather than by capability: an agent that classifies short messages does not need the model an agent writing a long report does. The platform does not stop you from using the most capable model everywhere — it is simply the most expensive way to get the same answer.

What the model choice does not affect

Some functions never run on the model chosen for the agent, and their behaviour does not change whichever model you pick:

  • Document indexing — the knowledge base is indexed with a dedicated embedding model. Anthropic does not offer that capability at all, so the shared configuration keeps serving it.
  • Internal support functions — recognizing what the user is asking, filtering knowledge sources, summarizing, expanding a query. These run on a small, fast model chosen for latency and cost.

This is deliberate: the model you choose serves the agent's answer, which is what you tune it for.

Temperature

Temperature stays available on the models that accept it. The most recent Claude models no longer do: on those the agent omits the parameter instead of failing, and the answer arrives anyway — the setting simply has no effect. claude-haiku-4-5 still accepts it.

If you have tuned temperature to make an agent more or less creative and want that control, check it against the model in use: the field is shown for every model, but only the models that accept it react to it.

Since v4.0.0 every answer reasons, at a depth the platform chooses by type of work, and on a model that reasons the agent's temperature does not apply. The agent's reasoning-effort setting is likewise ignored: the depth is no longer configured per agent.

Using your own Anthropic account

An organization with its own contract with Anthropic can have its agents' answers served by its own account, with its own key and its own billing, instead of the platform's shared configuration.

Configure it as an AI endpoint of type Anthropic for the organization, with:

Field Value
Endpoint URL The base address of the Anthropic API, without any path
API key The key issued by your Anthropic Console
Model The model to use when an agent does not specify one

From that moment the main answer of the organization's agents goes through that endpoint. Everything listed under What the model choice does not affect stays on the shared configuration, so document indexing and the internal support functions are unchanged.

Note on secret storage: as with MCP credentials, an endpoint's API key is stored in its original form (no encryption layer). Issue the key scoped to a single workspace in your Anthropic Console, so it can be rotated on its own and its usage stays visible separately from the rest of your account.

Nothing forces the choice: without an endpoint of your own, the Claude models work on the platform's shared configuration, and the difference is who is billed.

Authenticating AI endpoints

The details window of an AI endpoint (Endpoints page) has an Authentication field for endpoints of type Azure Foundry and Azure OpenAI, with two choices:

Mode How the platform authenticates What you enter
API key With the key of the resource The API key field
Managed Identity (Entra) With the identity of the XRCopilot service, through Microsoft Entra ID Nothing: the key field is hidden, and no key is stored or sent
  • The field is not offered where the service does not support it — direct Anthropic, Search and Content Understanding endpoints — and those stay on API key.
  • Existing endpoints stay on API key: nothing changes until you switch one to Managed Identity.
  • With Managed Identity the service's identity must have access to the AI resource; agree this with Hevolus before switching an endpoint.
  • The Knowledge Graph follows the endpoint's mode, so profiles can be activated on an endpoint using Managed Identity as well.

When a model is no longer available

grok-4-fast-reasoning and DeepSeek-R1 have been removed from the list: their deployments are retired, and anyone picking them got an error. The removal is deliberately conservative — a model still referenced by an agent or orchestrator endpoint is left in place rather than deleted, because deleting it would take that endpoint out of the configuration.

Agents already saved on one of those two models are not modified: the model is a free-text value, and rewriting it is the owner's decision rather than the platform's. The list simply stops offering them. If one of your agents stops answering after this release, check its model against the list.


Agent Tasks

What is an Agent Task

An Agent Task is a saved configuration that runs an AI agent on demand. Each task has:

  • An agent that does the work (its system prompt, tools, knowledge base, etc. are configured separately on the agent)
  • A trigger (how the task starts)
  • One or more output actions (how the result is delivered)
  • An optional input template with {{variables}} filled in at runtime from trigger data

Use Agent Tasks when you want an external system (a Power Automate flow, a SharePoint event, a scheduled job, a button in another product) to ask your agent something and receive an answer asynchronously.

Triggers — how the task starts

Trigger When to use it Notes
Webhook An external system sends an HTTPS POST to start the task The system shows a hookId and an X-Api-Key (shown once at creation — store it securely). Optional IP whitelist. Callers also need an APIM subscription key — see Webhooks-Agent-Tasks for the full credential list.
Schedule The task runs on a fixed schedule Cron-style configuration. Times are in UTC.
Manual A user clicks Run now in the agent task detail page No external surface

When the trigger fires, the platform resolves {{variables}} in the agent's input template from (in priority order): webhook payload → static variables → built-in variables ({{date}}, {{time}}, {{taskName}}).

For the full Webhook trigger reference (HTTP details, authentication headers, payload format) see Webhooks-Agent-Tasks.

Output Actions — where the result goes

After the agent finishes, the platform dispatches one or more output actions:

Output type What it does
Email Sends an email to one or more recipients with the agent's response (and any generated files)
Webhook Sends an HTTP request to your endpoint, with the result in the body
Inbox Drops the result into the user's in-app inbox (no external delivery)

You can configure multiple output actions on the same task (e.g., email and webhook).

Webhook output configuration

Configure how the platform calls your endpoint when the task completes.

Field What to put Default
URL Destination URL (HTTPS recommended) —
HTTP method GET, POST, PUT, PATCH, or DELETE POST
Headers Optional custom headers. Header values are stored encrypted at rest. none
Body template Optional JSON body template using {{var}} placeholders. Leave blank to use the default body shape (see below). (default body)
Query parameters Optional URL query string pairs (each value supports {{var}} interpolation) none
Authentication Structured auth: none / bearer / basic / custom header. The secret value is stored encrypted at rest. none
Expected status range Allowed HTTP response status codes (e.g. 200-299, or 200,201,204). Out-of-range responses trigger retry/failure handling. 200-299
Max retries How many times to retry on transient errors 3
Include full response When the default body template is used, controls whether the agent's text response is included true

If you leave Body template empty, the platform sends a default JSON body with executionId, taskId, taskName, companyId, status, durationMs, timestamp, agentResponse?, files?. This is what most integrations expect — leave it as-is unless your receiver expects a different shape.

Every outbound delivery automatically carries these correlation headers (you don't need to configure them):

  • X-XRCopilot-ExecutionId
  • X-XRCopilot-TaskId
  • X-XRCopilot-Attempt
  • X-Idempotency-Key (deterministic — safe for retry deduplication on the receiver side)

For the complete payload reference and integration examples (Power Automate, Logic Apps, SharePoint flows, code samples) see Webhooks-Agent-Tasks and Integration-Templates.

Email output configuration

Field What to put Default
Recipients One or more email addresses —
Subject Subject line. Supports {{taskName}}, {{status}}, {{date}}, {{executionId}} placeholders. auto-generated
Include files Whether to add download links for files generated by the agent true
Body format html or text html

The sender address is the platform default configured by Hevolus. Per-tenant senders are on the roadmap.

Quotas, retries, timeouts

In the agent task's Execution Policy tab:

Field What it controls Default
Execution timeout Max time the agent has to produce a response before the task is killed 300s
Max daily executions How many times the task can run per UTC calendar day; further requests are rejected 100
Max retries (execution) How many times the agent itself is retried on internal failures 0
Webhook max retries How many times the outbound webhook is retried (separately) 3

Webhook delivery retries use exponential backoff between attempts (15s, 30s, 60s; not configurable). Execution retries (the "Max retries" row above) use a separate configurable delay (retryDelaySeconds, default 30s).


Connections

What is a Connection

A Connection is a saved configuration for an external HTTP endpoint, used by orchestrator Action steps so you don't have to re-enter base URLs and authentication for every workflow.

Think of it as a "named API endpoint" you create once and reference from many places.

Create and manage Connections under the Connections entry of the admin menu (/connections).

Webhook connection fields

The field names below are the JSON configuration keys exposed by the Connection editor (see Webhooks-Connections-Action-Steps for the full schema).

When you create a new Connection of type HTTP Webhook:

Field What to put
Connection ID Lowercase slug (letters, digits, hyphens). Auto-suggested from the display name. Cannot be changed after creation.
Display name Friendly name shown in pickers (e.g. "Acme CRM (Production)")
baseUrl The base URL of the endpoint, including any common path prefix. E.g. https://api.acme.com/v1. Action steps will append their path to this.
defaultHeaders Optional headers added to every call through this Connection (key-value grid). Use for things like Accept: application/json or X-Tenant: acme. Don't put secrets here — use the dedicated Secret field below.
auth Structured authentication — see Authentication modes below
ignoreSslErrors Skip TLS certificate validation. Only enable for trusted internal endpoints with self-signed or expired certificates. Off by default.
Secret The actual credential value (bearer token, basic password, header value). Stored encrypted at rest. Click Set / update secret on Edit to replace; leaving it empty preserves the existing secret.

Authentication modes

auth.type Required fields What it does
none — No authentication header is sent
bearer (Secret holds the token) Sends Authorization: Bearer <secret>
basic username (Secret holds the password) Sends Authorization: Basic <base64(username:secret)>
header headerName (e.g. x-functions-key, X-Api-Key) — Secret holds the value Sends <headerName>: <secret> as a custom header

Pick the mode that matches what the target system expects. The most common combinations:

  • Azure Functions with function-key authorization → header mode, headerName = x-functions-key
  • Most modern SaaS APIs (Stripe, Slack inbound, Notion, ...) → bearer mode
  • Legacy on-prem services → basic mode
  • Internal systems with no auth → none

Test connection

After saving, click Test connection to verify the Connection loads and the secret can be decrypted. A deeper round-trip test (an actual probe against baseUrl) is on the roadmap.

Deleting a Connection

If you try to delete a Connection that is referenced by one or more Action steps, the system shows a confirmation prompt with the reference count. You can either:

  • Cancel — keep the Connection
  • Force delete — proceed; the affected steps will fail at runtime (the orchestrator returns a clear error and downstream Condition steps can branch on lastActionError)

Deletes are soft — the record is kept for audit purposes but the Connection no longer appears in pickers.

For a complete walkthrough including worked examples, see Webhooks-Connections-Action-Steps.


Orchestrator Action Steps

What is an Action step

In an orchestrator workflow, an Action step invokes an external system (e.g. sends an email, calls a webhook); action steps are used inside Workflow Orchestrators (configured in the Orchestrator editor). The step pauses execution while the call runs in the background, then resumes when the result arrives and propagates outputs to downstream steps.

Add an Action step from the step picker in the orchestrator editor.

Built-in providers

Provider Action Connection required?
Email Send Email No — uses the platform sender
HTTP Webhook HTTP Request Optional — use a Connection for reusable endpoints, or an inline URL for one-off calls
JavaScript Run Script No — runs a sandboxed script over context data

Future providers will appear in the same picker once added; the configuration UI adapts automatically to each provider's input fields.

Configuring an Email action

Field What to put
to One or more recipient emails (templated — values may contain {{var}} placeholders that resolve to context values from earlier steps)
cc / bcc Optional
subject Email subject (templated)
html HTML body (templated) — rich editor with bold/italic/lists/font-size/links
plainText Plain-text alternative (templated). At least one of html / plainText is required.
replyTo Optional reply-to address
attachments Optional. Each entry has filename, source (URL or context variable), contentType

Configuring a Webhook action

When a Connection is selected, the call is sent to Connection.baseUrl + path. When no Connection is selected (the field can be cleared with the x button on the dropdown), the call is sent to the absolute url you provide.

Field What to put
method GET, POST, PUT, PATCH, DELETE
path Relative path appended to the Connection's baseUrl (e.g. /customers/{{customerId}})
url Absolute URL — only when no Connection is selected
queryParams Optional key-value pairs (templated)
headers Optional custom headers for this call only (templated)
body Request body. JSON object, array, or scalar — templated.
contentType application/json (default), application/x-www-form-urlencoded, or text/plain
auth Inline auth for one-off calls — overrides the Connection's auth
expectedStatusRange Allowed HTTP statuses (e.g. 200-299, 200,201,204)
timeoutSeconds Per-call timeout (1–60 seconds)
ignoreSslErrors Per-call override of the Connection-level TLS-bypass flag

Every outbound webhook automatically carries the same correlation headers used by Agent Task webhooks (X-XRCopilot-ExecutionId, X-XRCopilot-TaskId, X-XRCopilot-Attempt, X-Idempotency-Key).

Configuring a JavaScript action

Runs a short deterministic script to transform data during the workflow — handy when a calculation, filter, aggregation or validation is faster and more reliable written as code than delegated to an AI agent. The script runs in a closed sandbox: no Internet, no filesystem, no external libraries — only computation over the data you provide.

Let the assistant write it. You do not have to start from a blank field. While the script is empty the editor offers Generate the script with AI; a dedicated button next to the editor opens the same assistant at any time, including when code is already there. The assistant asks a few questions about what the step must produce and then delivers the finished script behind a Use this code button that drops it into the step (it asks before replacing existing code). It starts from the step's context — the upstream variables available, the input bindings already configured and the current script are handed to it when it opens — and it also advises on the configuration around the code: which bindings to create, which Output mapping rows to add, whether the step needs Use context files. Everything below still applies: review what it wrote, and use Run before saving.

The editor. The script field is a code editor with syntax highlighting and line numbers, also available in a near-fullscreen window for longer scripts. You can export the current script as a .js file named after the step, and import an existing .js file into it — oversized or non-text files are rejected.

The script. In the Script (JavaScript) field, write the body of a function that reads a global input object and ends with return <a JSON value>. Example:

return { doubled: Number(input.n) * 2 };

The returned value is exposed to later steps through the same Output mapping described below (e.g. map doubled → result).

Feeding data in (input bindings). The input grid maps context variables into the script's input object. Each row: a key (the name the script reads, e.g. input.n) and a value ({{variable}} or a literal). Leave the step's generic Input mapping empty — for this provider the data path is the input grid.

Processing uploaded files. If the conversation has uploaded files and the step has Use context files enabled, the script receives them already parsed in input.files (an array). Each entry has name, ext, mimeType, size, kind ("table", "text" or "binary") and:

  • kind: "table" (Excel .xlsx/.xls, .csv, .tsv) → sheets, an object with one entry per sheet name, each { headers, rows } where rows are objects keyed by header;
  • kind: "text" (.txt/.md/.xml/.html/.json) → text (raw string; for JSON use JSON.parse(file.text));
  • kind: "binary" or a file over the limits → metadata only (tooLarge: true), no content.

Notes: an Excel exposes all its sheets (pick by name, e.g. file.sheets["Sales"]); Excel cells keep their types while CSV cells are always strings (use Number(...)); a file over the size/row limits appears with tooLarge: true without failing the step.

// Sum the "Amount" column of the first Excel's first sheet
const f = input.files.find(x => x.ext === "xlsx");
let total = 0;
for (const r of f.sheets["Sheet1"].rows) total += Number(r.Amount);
return { total: total };

Testing. The Run button executes the script against a sample input you provide, using the same engine as the runtime, and shows the output/errors — validate before saving.

Limits. The platform enforces fixed limits on script size, output size, memory, CPU/time, and on context files (number, size, rows/cells). A script that exceeds CPU/time/memory is interrupted and the step fails; a file over its limits is passed as metadata only. Script errors are deterministic and are not retried.

Collecting a file mid-orchestration

input.files is populated from the files attached to the conversation. Besides files the user attaches before the chat starts, you can collect a file in the middle of a workflow — for example ask for an Excel, then process it with a JavaScript step.

To offer the upload, add a step that pauses and invites the file, and turn on its Allow file upload toggle:

  • a User question step — enable Allow file upload in its panel; or
  • an Agent step that pauses to ask the user for clarification — enable Allow file upload in its panel.

When the orchestration pauses on such a step, the chat shows the attach (paperclip) icon so the user can upload; on any other pause the paperclip stays hidden. The uploaded file then reaches every downstream step that has Use context files enabled — for example the JavaScript step that reads input.files.

The paperclip is gated on this toggle only in orchestrator chats; single-agent chats always allow attachments. If the paperclip is greyed out while the bot is asking for a file, the pausing step doesn't have Allow file upload enabled.

Sending data to the next step (Output mapping)

The Output mapping section of the Action step lets you pick fields out of the action's response and expose them as named variables to downstream steps.

Each row has two columns:

Output path (from the response) Context variable (used as {{name}} later)
body the entire body
body.0.name the name of the first element if body is an array
body.voices[0].id same with bracket notation
headers.Content-Type a specific response header
statusCode the HTTP status code
* the whole response wrapper {statusCode, headers, body, elapsedMs}

Once mapped, you can reference the variable in any downstream step: {{firstVoiceName}}, {{customerId}}, etc. A SendMessage step shows clickable chips for the available upstream variables — click to insert.

Reacting to failures

When an Action step fails (HTTP error, timeout, body too large, SSRF block, ...) the platform populates a special context variable lastActionError with the failure details:

lastActionError.code         e.g. "StatusOutOfRange", "Timeout", "HttpError", "WebhookBlocked", "ResponseTooLarge"
lastActionError.message      human-readable reason
lastActionError.providerId   "webhook" or "email"
lastActionError.actionId     "request" or "send"
lastActionError.attemptCount how many attempts were made
lastActionError.timestamp

You can add a Condition step right after the Action and branch on {{lastActionError.code}} — for example, sending an alert via email when the ticketing webhook fails, then terminating; or retrying via a different provider.


Human Approval Steps

What is a Human Approval step

A Human Approval step pauses a workflow at a specific point until a person approves or rejects the request. The step has two outgoing branches in the workflow editor — approved and rejected — and both must be connected before the orchestrator can be saved. When the decision arrives, the workflow resumes on the corresponding branch.

The decision is also published into the orchestration context for downstream steps. With the default context variable name approval:

Variable Value
approval approved, rejected, or expired
approval_decided_by the decider (email address for email-link decisions, user id for portal decisions)
approval_rationale the optional rationale entered by the decider
approval_decided_at decision timestamp (UTC, ISO 8601)

Configuring the step

Field Notes
Request title Subject of the approval email and header of the decision page. Supports {{variables}} from the workflow context.
Description (markdown) What is being approved — shown in the email and on the decision page. Supports {{variables}}.
Recipients One or more approver email addresses; each entry can also be a {{variable}} resolved at runtime.
Timeout (hours) 1–168, default 72. When it expires the request is auto-rejected and the workflow continues on the rejected branch with outcome expired.
Context variable Base name for the published variables (default approval).

If a {{variable}} used in the title, description or recipients does not exist in the context at runtime, it resolves to an empty string — double-check variable names against the upstream steps (the editor's variable picker lists them).

How approvers decide

  • By email — each recipient receives a personal, signed Approve / Reject link. The link opens a confirmation page that requires no login (it also works for approvers outside the tenant), and nothing is decided until the approver explicitly confirms — so email gateways that pre-open links cannot trigger a decision. An optional rationale can be entered before confirming.
  • From the portal — signed-in users find every pending request on the approvals page (/approvals), which lists both Agent Task and workflow approvals. A notification bell in the top bar shows a live counter of pending approvals.
  • The first decision wins: once a request is decided, the other links show "already decided".

Expiry, cancellation and audit

  • Expired requests are auto-rejected (outcome expired); cancelling a workflow execution invalidates its pending approval links.
  • Every request and decision is audited: requester, recipients, decider, channel (email or portal), rationale and timestamps.

Unattended runs. A workflow started with nobody connected — a scheduled or webhook-triggered Agent Task — fails the approval step immediately, with a clear message, instead of waiting for a decision that cannot arrive. Keep approval steps out of fully automated flows, or start those flows from a context where an approver is present.

Availability

Human Approval steps appear in the step picker when the OrchestratorActionStep feature flag is enabled for the tenant — the same flag that controls Action steps.


MCP Servers

What is an MCP server

An MCP server (Model Context Protocol) exposes tools an AI agent can call during a chat — e.g. "create a Jira ticket", "look up a customer in HubSpot", "search the internal wiki".

Each MCP server is registered once in your tenant, then assigned to one or more agents that should have access to its tools.

Manage MCPs under the MCP Servers entry of the admin menu (/mcp-server). Requires admin privileges.

MCP configuration fields

Field What to put
Name Display name for the server
Description Free-text description of what tools the server provides
Command The endpoint or executable that implements the MCP protocol
Environment variables Optional key-value pairs the MCP server expects (e.g. BASE_URL, WORKSPACE_ID). Sent as X-Env-<key> headers to the MCP runtime.
Timeout How long the agent waits for a tool response, in seconds. Default 180.

MCP authentication modes

The MCP server's authentication is configured separately from the basic fields above.

Mode What to put Notes
OAuth 2.0 Client ID, Client Secret, optionally pre-filled Refresh Token The platform manages access-token refresh automatically. The "Auth status" indicator reflects the current state (Not authenticated / Pending / Authenticated / Failed).
API Key A single API key string The platform passes it as an argument in the tool call.
Custom Headers A set of header name/value pairs (JSON-formatted in the field) Headers are added to every outbound MCP request. Useful for proxied MCPs, signed-header schemes, multi-header credentials.

Note on secret storage: at present MCP credentials are stored in their original form (no encryption layer). Aligning them with the encrypted-secret pattern used by Connections is on the roadmap. In the meantime keep MCP secrets to scopes/keys that can be rotated independently if access to the database is ever compromised.

Assigning MCPs to agents

In the agent detail page, the MCP servers widget shows a multi-select picker. Choose one or more MCP servers — the agent will see their tools at runtime and can decide whether to call them.

An agent can be configured to require a tool call (forced tool use) or to use tools opportunistically — those are agent-level settings in the agent editor.

Suggested prompt for agents

Whoever configures an MCP server usually knows its tools better than whoever will later connect it to an agent: in which order they should be called, which parameters are easy to get wrong, what that system does not cover. An MCP server configuration carries an optional suggested prompt for agents field so that knowledge travels with the server instead of staying with the person who wrote it.

The suggested prompt never acts on its own. When the server is connected to an agent and the field is filled in, a dialog offers three choices, and the decision stays with whoever connects, every time:

Choice What happens
Add The text is appended to the agent's own prompt, separated by a blank line
Replace The agent's prompt becomes the suggested one
Do not add The agent's prompt is left exactly as it is

The dialog appears in all three places where an MCP server is connected to an agent, one dialog per server when several are connected together.

After Add, the text is the agent's: no marker is written around it, so it stays editable by hand and disconnecting the server does not remove it. That is a deliberate trade — a marker would allow automatic removal, at the price of cluttering a prompt the user then edits.

Servers published from the MCP-Builder arrive with this field already written by the MCP Buddy, and every publish realigns it to what is in the builder.

MCP health check

The MCP list page shows a health-check button next to each server. Click it to send a diagnostic request through the configured tool surface. If your MCP requires OAuth and the access token has expired, the health check triggers the refresh flow automatically.

Forwarding user context

The MCP editor has a Forward user context toggle (off by default). When enabled, the identity and context of the current chat user are sent to that MCP server as sanitized X-User-Context-<key> headers, so its tools can return only the data that user is allowed to see (for example, a CRM lookup scoped to the signed-in customer).

  • The context comes from the chat request's McpContext. For an authenticated embed it always includes the verified user id under the user-id key, plus any claims you mapped.
  • For a user signed in to the platform with Microsoft Entra ID, the chat forwards user-id and email automatically — the same keys, so an MCP server built for the embedded case works unchanged. When both are present, the signed-in user's verified identity takes precedence over one declared from outside.
  • These headers never override the server's own authentication: they use a reserved prefix and are sanitized (no control characters, capped length and count).
  • The MCP server keeps authenticating to the backend system with its own per-tenant credential — the forwarded header identifies the user, not the service.
  • Leave it off unless the target MCP server is explicitly designed to read X-User-Context-* headers, to avoid sending user hints to servers that don't need them.

Agent-to-Agent (A2A) Interoperability

XRCopilot speaks the Agent-to-Agent (A2A) protocol in both directions:

  • Inbound — your agents and orchestrators are published as A2A endpoints that external A2A-capable clients (Microsoft Copilot Studio, for example) can discover and invoke.
  • Outbound — your agents can call external A2A agents as tools of their own during a conversation.

Publishing an agent — the per-agent key

Publishing an agent over A2A issues a key dedicated to that agent, in the same action that creates the publication. Callers send it in the X-XRCopilot-A2A-Key request header, and the agent card declares the scheme — a client reading the card configures itself.

  • The key is shown once, at issue time. Only its hash is kept, so it cannot be displayed again: copy it before closing the dialog.
  • Regenerate key issues a new one and invalidates the previous one immediately — the integration using the old key stops working until it is updated.
  • The published-agents grid flags the agents with no key issued: those cannot be called. Agents published before this release start in that state, so regenerate a key to make them callable again.
  • One key per published agent — revoking one integration leaves the others untouched.

Registering an external agent

External agents are registered once per tenant under the External Agents entry of the admin menu (/a2a-external-agents), next to MCP servers.

Field What to put
Agent URL The agent URL as published by the remote platform — the agent card is discovered automatically from it.
Name / Description Pre-filled from the card; the description stays editable.
Authentication No Authentication, API key (custom header), Bearer token (static) or OAuth 2.0 client credentials.
Timeout (seconds) How long to wait for the external agent's answer, polling of a long-running task included. Default 120.

Verify fetches the card and shows the agent's name, description and declared skills before you save; Refresh card re-reads it later, after the remote agent changes. Credentials are stored encrypted and are never shown again.

Write a real description. The description — the one in the registry, or the skills declared in the card — is the only thing your agent reads to decide whether to delegate a question. An external agent registered with neither is still exposed as a tool, but the model has no reason to ever pick it. Say when the external agent should be used, not just what it is.

Assigning external agents to an agent

From the agent's knowledge configuration, choose the external agents that agent may delegate to — the same way you assign files, profiles and MCP servers. The External Agents tab of the agent detail page lists what is connected and lets you remove single entries or all of them.

Each connected agent becomes one tool your agent may call. It works in chat, in Agent Tasks and in orchestrator steps. If the external agent needs information it is missing, its question surfaces in the conversation and the answer resumes the same remote task rather than starting a new one.

What leaves your tenant. Your agent decides at runtime what to send to a registered external endpoint, and what comes back is third-party content. Register only endpoints you trust: as with an MCP server, adding one is an administrative decision at tenant level.


Embedded Chat — Authenticated Identity

By default, an embedded (iframe) chat is anonymous — the agent doesn't know who the visitor is. Enable authenticated embed when the agent must act on behalf of the specific user signed in on the host site — most importantly, to let an MCP-backed tool (e.g. a CRM) return only that user's data.

The design is identity-provider-agnostic: XRCopilot never talks to the host site's identity provider. The host site's backend asserts who the user is; XRCopilot verifies that assertion server-side and only then trusts it as the chat UserId. Configure it per endpoint in the agent detail page, card User identity verification (embed).

This section is the console reference. For the integration guide to hand to the host site's development team — how to choose a mode and what their backend has to do on each page load, with examples — see Authenticated-Embed.

Verification modes

Mode How it works Effort for the host site
Server-to-server exchange The host backend calls XRCopilot with an embed API key and receives a single-use, short-lived session token to place on the iframe URL (?embedSession=…). Lowest — one HTTPS call, no cryptography
Signed token — shared secret (HS256) The host backend signs a short-lived JWT with a shared secret registered on the endpoint; passes it to the iframe (?embedToken=…). Low
Signed token — public key (RS256) The host backend signs a JWT with its private key; only the public key is registered here. Medium
None Declared, unverified context only (personalization). —

Verification is fail-closed: if a token or session is present but invalid or expired, the chat is blocked rather than silently downgraded to anonymous.

Configuration fields

In the User identity verification (embed) card:

Field Applies to What to put
Verification mode all One of the modes above
Shared secret / PEM public key signed-token modes The HMAC secret (HS256) or the PEM public key (RS256). Encrypted at rest; never shown again — leave blank on edit to keep the stored value
UserId claim signed-token JWT claim holding the user id (default sub)
Context claims (CSV) signed-token Extra claims to forward as context, e.g. email,department
Expected issuer / audience signed-token Validated when set; audience defaults to the endpoint id
Clock skew (s) signed-token Tolerance for exp/nbf (default 120)
Session lifetime (s) server-to-server TTL of a minted session token (default 300)
Generate / rotate embed API key server-to-server Produces the key shown once — copy it immediately; it is stored only as a hash
Require identity all verified modes Block anonymous chat on this endpoint
Configuration active all Master on/off for the configuration

The host site places the resulting session or token on the iframe src (its backend renders it after the user signs in).

How the identity reaches a CRM (MCP)

  1. The user signs in on the host site; its backend obtains a session token (or signs a JWT) for that user.
  2. The iframe presents it; XRCopilot verifies it and stamps the verified UserId and context on the chat.
  3. On the CRM's MCP server, turn on Forward user context. The verified identity is sent as X-User-Context-* headers.
  4. The MCP server filters CRM data by that user, using its own service credential for the CRM connection.

Agree with the customer which value keys the CRM to the user (usually the email, or a stable internal id mapped via Context claims).


Developer keys

What they are for

Developer keys issue credentials with which an external code editor reads your organization's configuration through the "XRCopilot" MCP server: agents, topics, orchestrations, embeddable endpoints and the SDK documentation. They exist for people who develop outside the platform and want their tool to know the real context — the actual agent names and ids, the topics that exist, the endpoints available — instead of being told about them.

A developer key is read-only. It cannot create, change or delete anything: it answers questions about the configuration and nothing else. The server exposes nine tools, all of them reads:

Tool Answers
list_agents · get_agent The agents of the organization and the detail of one
list_topics · get_topic The topics and the detail of one
list_orchestrators · get_orchestrator The orchestrators and the detail of one
list_public_endpoints The endpoints that can be embedded or called from outside
get_openapi · search_docs The public API definition and the SDK documentation

There is no tool for conversations and none for knowledge-base content: a developer key cannot read either.

Issuing a key

From the Developer keys page, create a key and give it a name you will recognize later. The key is shown once, at creation: from that moment only its fingerprint is stored, so it cannot be shown again. If it is lost, revoke it and issue another.

The same page shows the two values to configure in the editor:

  • the address of the MCP server to connect to;
  • the name of the header the key travels in.

Both come from the platform, so read them from the page rather than writing them down from elsewhere.

Revoking

Revoke a key at any time from the same page. Revocation takes effect immediately: whoever is using that key loses access on the next call, with no grace period.

Every key records who created it and when, which is what makes it possible to tell keys apart when one has to go.

What to tell your developers

  • The key identifies the organization, not the person: it reads the configuration of the tenant it was issued for.
  • It is a credential. It belongs in the editor's own secret store or in an environment variable, never in a repository.
  • It grants no write access and no access to conversations or knowledge-base content — only to the configuration listed above.

Agent governance

What it does

Governance checks every action an agent takes outside the platform against a set of rules, and writes the outcome to a log in which any tampering shows (each entry is chained to the previous one by a hash). The governed actions are:

  • a call to an MCP tool or to a skill while the agent is reasoning;
  • an email, a webhook or a script sent by an orchestrator or by an Agent Task.

Governance never slows down or interrupts an answer: if an evaluation fails, the action goes ahead and the error is logged.

Choosing the mode

Each tenant chooses its own mode from Governance › Dashboard:

Mode What happens
Off The default. Nothing is evaluated and nothing is logged.
Observe Rules are evaluated and the log records what they would have done; nothing is blocked.
Enforce A rule that denies stops the action.

A good rollout is to start in Observe, read the log for a while, and move to Enforce once the rules deny only what they should. The Dashboard also sets how long the log is kept, from 180 to 3,650 days.

The governance owner

From the Dashboard the tenant can name a governance owner among its administrators. The owner receives by email the rules that deny (also those that would have denied in Observe mode), approvals, warnings and settings changes. Notices can be All (the default), Denies only or Off; the same rule on the same agent is reported at most once every 15 minutes. Governance settings can be changed only by a tenant administrator or by the owner.

Policy — rules and rulebooks

Governance › Policy has three tabs:

  • Rules — every rule that applies to the tenant's agents, each written as a sentence and with its own switch. Hevolus rules apply to every agent until they are switched off; they cannot be edited, but Duplicate and complete creates a tenant copy with the values they need (for example the domains an agent may write to), which replaces the original. Tenant rules are written in an editor whose values are validated by the platform, never executed as text.
  • Rulebooks — Hevolus rulebooks group rules by topic (communication scope, network egress) and by regulation (GDPR, AI Act, OWASP, SOC 2, CIS); a tenant can write its own, for all agents or for some.
  • Agent records — see below.

Nothing takes effect until the changes are published, and every published version is immutable.

Agent records

For each agent the record shows what the administrator declares (purpose, accountable person, classification, vendor alternative) next to what the platform reads from the agent (model, provider, knowledge, MCP servers, A2A agents, skills, autonomy, and the rules that cover it). From here you can:

  • Suspend / Resume an agent, with a reason. A suspended agent cannot perform governed actions, in Observe mode too. A suspension can be tested without stopping anything.
  • Confirm review. Any later change to model, instructions, knowledge, connectors, skills, A2A, autonomy or classification marks the agent to review, with the list of differences.

Agents that talk to people without declaring they are an AI are flagged (AI Act, art. 50(1)).

The log and its export

Governance › Log lists every decision with operation, outcome, rule and tool duration. The log never contains arguments in clear text or keys: only a sha256: fingerprint of the arguments.

The log can be exported in four formats, through a download link valid for 15 minutes:

Format Use it for
JSON Lines Archiving, and verifying the hash chain
CloudEvents 1.0 SIEM tools (Microsoft Sentinel, Splunk, Elastic): one field mapping, the same for every CloudEvents source
CSV Spreadsheets
Microsoft Sentinel One JSON array of records with fixed columns and the time in TimeGenerated: the sample for creating a Log Analytics custom table (Direct Ingest) and the body of the Logs Ingestion API, sent in parts of at most 1 MB

The hash chain cannot be verified on the CSV and Sentinel files, because their columns are renamed; the SHA-256 in the export manifest still guarantees the integrity of the whole file.

Availability

The Governance menu is visible to tenant administrators.


Common Choices & Recommendations

Per-tenant vs platform-shared

Most resources you configure (agents, agent tasks, connections, workflow orchestrators) are per-tenant. They are visible only inside your tenant and isolated from other customers.

A few MCP servers may be platform-shared — pre-configured by Hevolus and available to every tenant by default. You can override them per-tenant by creating a same-named MCP in your tenant; the per-tenant version then takes precedence for your tenant's agents.

When to use Inline URL vs Connection

For an orchestrator Action step targeting an HTTP endpoint, prefer a Connection when:

  • You're calling the same endpoint family from multiple steps or orchestrators
  • The endpoint has authentication (centralized, rotatable secret)
  • The endpoint requires standard headers (set once in defaultHeaders)

Use inline URL (no Connection) only for:

  • One-off webhooks (e.g. a one-shot Slack incoming-webhook with the auth token baked into the URL)
  • Quick prototyping before deciding whether to formalize a Connection
  • Public endpoints with no authentication that won't be reused

Handling secrets

  • Secret values in Connections (bearer tokens, function keys, basic auth passwords, custom header values) are encrypted at rest and never returned by any UI or API call after save.
  • The dialog only allows replacing the secret via the explicit Set / update secret button — there is no "show current value" option.
  • If a secret is leaked, regenerate it on the source system and update the Connection through the Set / update secret flow. Don't try to read the existing value.
  • For Agent Task webhook output configurations, individual header values and the structured auth secret are encrypted the same way. The header names are visible (they're not secret).
  • For MCP servers — secrets are not encrypted yet (planned). Use scoped credentials and rotation where possible.

Production rollout — feature flags

Some features may be progressively rolled out behind feature flags. Currently:

Flag Default When to ask Hevolus to enable it
OrchestratorActionStep Off Once you want to use the orchestrator Action step type and the Connections admin page. Hevolus can enable it for your tenant.

If you don't see Connections in the admin menu or the Action option in the orchestrator step picker, the flag is off for your tenant.


Troubleshooting

Symptom Likely cause What to try
Action step: webhook returns 403 Wrong secret in the Connection, or auth mode mismatch with the endpoint Verify the credential outside XRCopilot (e.g. with curl), then update via Set / update secret
Action step: webhook returns 404 Wrong method (GET vs POST), wrong path, or baseUrl doesn't include /api//v1 prefix Open the Connection and confirm baseUrl. Open the step and confirm method and path
Action step: returns WebhookBlocked error The target URL is a private/internal IP (loopback, 10.x, 192.168.x, cloud metadata) Use a publicly reachable endpoint, or a tunnel
Action step: returns Timeout error The endpoint is slow or unreachable Increase timeoutSeconds (max 60), or check network reachability
Action step: OutputMapping path '<x>' did not match warning Typo in path, or the response shape is different than expected Temporarily map body to a variable, run once to inspect the raw response, then correct the path
Output mapping: lastActionError.code = ResponseTooLarge The endpoint returned a body bigger than the allowed cap Use server-side pagination or filtering on the endpoint
Connection edit: secret seems lost after edit Leaving the secret field empty on Edit preserves the existing secret — that's by design If you need to replace, click Set / update secret and enter the new value
Connection delete: 409 Conflict with reference count The Connection is used by N orchestrator Action steps Either remove/update the affected steps first, or proceed with force-delete (the steps will fail at runtime with a clear error)
Agent Task webhook: receiver gets duplicate deliveries Receiver doesn't honor X-Idempotency-Key and the network/retries caused a duplicate Use the X-XRCopilot-ExecutionId header for deduplication on the receiver side
Agent Task webhook: receives JSON in unexpected shape The body template was changed away from the default Open the agent task's webhook output config; clear the body template to restore the default shape
Agent Task: status is QuotaExceeded Reached maxDailyExecutions for the UTC day Increase the quota in the task's Execution Policy, or wait for the UTC date to roll over
MCP: Auth status stays Failed Wrong client credentials, or the OAuth provider doesn't allow the configured grant type Verify the credentials with the upstream provider. For OAuth, check that the refresh-token grant is enabled.
MCP: agent doesn't seem to use the configured tools The MCP server isn't assigned to the agent, or the agent's system prompt actively discourages tool use Open the agent detail page, confirm the MCP server is selected in the MCP picker

Related Documents

Document When to read it
Webhooks-Connections-Action-Steps Setting up orchestrator workflows that call external HTTP endpoints — worked examples, full field reference
Webhooks-Agent-Tasks Integrating an external system that triggers Agent Tasks or receives their results — HTTP details, authentication, payload shape, code samples
Integration-Templates Step-by-step Power Automate, SharePoint, and Logic Apps recipes for Agent Tasks
REST-API-Reference Detailed API endpoint reference
Getting-Started First-time setup and orientation

Clone this wiki locally