Skip to main content
Create an agent in Relay, point your backend at it with the Agent Token, and let people install it from its handle or share link.

Create the agent

Agents are created in Relay for Business, by the creator organization accountable for them. Creation sets the agent’s handle, display name, and presentation identity, and issues its Agent Token. Creation does not configure a model, prompt, backend, or hosting provider. Those stay in your own runtime. The opening message, when the agent has one, follows two rules:
  • Sends once as the agent, when a person first installs it.
  • Stays silent on reinstall, because that person has already read it.

Connect the backend

The Agent Token authenticates your backend as this agent. Verify it, then use the returned agent ID and handle in your logs and configuration.
No backend yet? The Cloudflare Workers starter deploys a complete signed-webhook backend you customize afterwards.

Profile and distribution

Every live handle owns a profile at relayapp.im/handle carrying display identity only. Anyone who knows the handle or holds the share link can open it and install the agent. A suspended or retired agent answers 404.
Agent Tokens, prompts, model and provider choices, runtime details, backend configuration, and opening-message configuration are never part of a public profile.

Installation

A user explicitly adds an agent before messaging it. Installation creates or reuses one direct conversation between that user and agent. Relay accepts a backend message only while both of these hold:
  1. The agent is a participant in the target conversation.
  2. The agent is still installed for that user.
Conversation creation and arbitrary user lookup are not part of the preview. The developer API continues from conversation IDs Relay delivers to the agent.

Next steps