For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrate an agent

Attach an agent to an app you built in Qore, or embed it in an external app.

Connect a built agent to a Qore app or an external app.

For a Qore app, use its Agents tab. For an external app, use the agent's Export/Integrate options.

Prerequisites

You need a built and tested agent. If needed, first create an agent.

You also need the target app. A Qore app build must be finished. You cannot attach agents during generation.

Attach an agent to a Qore app

1

Open the app's Agents tab

Open the app in App Builder. Select the Agents tab in the top bar.

You see "Make Your App Smarter with Agents" and two options.

The Agents tab in the App Builder, offering Build an Agent or Attach an Existing Agent
2

Attach an existing agent

Under Attach an Existing Agent, click + Attach Agents. Select a prebuilt agent from the list.

The Attach Agents dialog, listing prebuilt agents to connect
3

(Or) build a new agent for the app

Choose Build an Agent → Visit Agent Builder to create a custom agent. Then return and attach it.

4

Test end to end

Preview the app and confirm the agent responds and uses its knowledge and skills as expected.

Embed an agent in an external app

Use this path when the app lives outside Qore.

From Manage Agent → Export/Integrate Agent, choose the lowest-level option that fits your architecture:

  • Embed Agent — an HTML/JavaScript widget you paste into a web page. Best for web apps where the widget manages its own conversation state. Uses the agent's Authentication (Widget) key and is gated by Whitelisted Domains.

  • API Integration — endpoints and credentials to call the agent as an HTTP API. Best for server-side, mobile, or non-web apps.

  • Headless Agent Integration — server-to-server invocation with no platform UI. Best when the agent is one part of a larger pipeline.

Before generating an embed or API integration, set the agent's Authentication keys and Whitelisted Domains — a live widget reaches the agent through whatever auth and domain rules you've set.

Verify

For a Qore app, confirm the agent responds in the app preview. Confirm it uses its knowledge and skills as expected.

For an external app, confirm it responds from the external surface. It only responds where your auth and domain rules allow.

Common issues

  • "Cannot attach agents while application generation is in progress." Finish or Skip the app's current build step, then attach.

  • The embedded widget won't load. Check the host domain is whitelisted and the widget uses a valid Authentication key.

  • API calls are rejected. Reconfirm the credentials from API Integration match the agent's Authentication keys.

Last updated