This guide outlines how to integrate Coral into your app by leveraging its protocol-based infrastructure.

Use Cases for Integration

Applications integrating Coral typically fall into one of the following categories:

Interface LayerExecution LayerCoordination Layer
Apps that route user queries to Coral agents and return structured results (e.g. chat interfaces, dashboards, automation tools)Systems that offload domain-specific logic to specialised Coralized AgentsTools that orchestrate multiple agents by creating threads, managing delegation, and aggregating responses

Coral provides the underlying communication model and message routing required for all these integration patterns.

Integration Workflow

1

Run a Coral Server

Host a Coral Server locally or remotely. This acts as the backbone for thread-based communication.

2

Coralize Your Agents

Use the Coralizer CLI to convert existing functions, APIs, or tools into MCP-compliant Coral Agents.

3

Register Agents

Register each agent with the Coral Server. Agents expose tools and metadata that other components in your app can discover.

4

Create Threads

When a user initiates a task or query, your app creates a thread involving the relevant agents.

5

Send Messages

Post structured messages into the thread. These can contain tool calls, plain text prompts, or agent mentions.

6

Receive and Process Responses

Agents respond in the thread, and your app can consume and present the responses in real time or asynchronously.

Protocol Interfaces

All interactions occur through MCP-formatted messages. Each message includes:

Sender and receiver IDs

Thread context

Tool metadata (if invoking a function)

Optional memory access information

This ensures standardised execution and traceability, even when integrating multiple independently developed agents.

  • Use a frontend interface agent to manage user input and output formatting
  • Use scoped memory to maintain task-specific context without exposing unnecessary data
  • Leverage tool exposure to minimise tightly coupled integrations

Coral enables systems to build on a composable agent architecture. By integrating Coral, you are connecting your application to a distributed network of agents capable of collaboration, delegation, and secure tool invocation.