Even though AI agent development has made great progress in the past couple of years, there is still a major problem: Most people don’t interact with AI agents. The majority of people will not interact with them. They are hidden behind dashboards for developers, in specialized applications that they ask users to download and inside chat interfaces. They are very good models. The ability to reason is extraordinary. However, the distribution system is faulty.
Photon, a company that focuses on low-latency, reliable agent execution, messaging infrastructure and infrastructure for the delivery of messages, has launched Photon to directly attack this issue. Spectrum — an open-source SDK and cloud platform that connects AI agents to the messaging interfaces billions of people already use every day: iMessage, WhatsApp, Telegram, Slack, Discord, Instagram, Phone, and more.
Spectrum allows you to deploy your agent in the places where users spend most of their time.
Spectrum is What It Is
Spectrum offers a single programming interface, which abstracts the differences in messaging platforms. Spectrum delivers the agent logic to any platform that developers choose. SDKs are written in TypeScript and are MIT licensed. They can also be downloaded via Install spectrum-ts using npm The following are some examples of how to use bun add spectrum-ts. On the road map is support for Python, Go and Swift.
The iMessage minimal agent is shown below:App.messages (of app.messages).
import { Spectrum } from "spectrum-ts";
import { imessage } from "spectrum-ts/providers/imessage";
const app = await Spectrum({
projectId: process.env.PROJECT_ID,
projectSecret: process.env.PROJECT_SECRET,
providers: [imessage.config()],
});
for await (const [space, message] of app.messages) {
await space.responding(async () => {
await message.reply("Hello from Spectrum.");
});
}
That code — a handful of lines — deploys an agent that shows up in a recipient’s Messages app like any other contact. Developers can extend this agent’s functionality to WhatsApp by adding a single entry in the array: providers: [imessage.config(), whatsapp.config()]. The agent and message loop remain the same. Spectrum manages the differences at platform level internally.
SDKs are available for dev teams who need to develop connectors on non-standard platform. DefinitionPlatform The API allows developers to create their own providers. All message types — text, attachments, contacts, voice, and custom content types — are handled with type-safe inbound and outbound distinctions, which reduces a common class of runtime errors in production agent deployments.
The Infrastructure layer: latency, reliability, and scale
Photon’s underpinning infrastructure, which is a technical marvel in itself, has been able to build a spectrum that’s both reliable and secure. The company has what they call an edge-first Designed specifically for human-to-human message workloads. According to Photon’s published benchmarks, Spectrum delivers end-to-end message latency of under 1 second — compared to a CPaaS (Communications Platform as a Service) industry average of approximately 500ms to 1.5 seconds. Photon’s network edge has an E2E measured latency of approximately 150-250 milliseconds.
The platform targets 99.9% availability. For AI engineers building production agents, this matters significantly — a messaging layer that drops connections or stalls under load is far more damaging to user experience than any model-quality issue.
Spectrum includes adaptive content renderingIt automatically adjusts the message format, structure and interactions to fit each platform. An iMessage deployment, for example, can use structured options to send a survey using imessage(space).sendPoll({ question, options })Spectrum makes sure that renders in the Messages application natively, rather than using raw text as a fallback. This matters because each messaging platform has different rendering capabilities, character limits, and interaction primitives — and failing to account for these differences produces experiences that feel broken or out of place to end users.
Spectrum Ships are operationally oriented. Built-in observabilityAudit logs with detailed information, complete message histories and controls with human involvement that enable teams to review individual messages manually, track agent behaviour over time and intervene if necessary.
The same goes for iMessage
Photon’s largest production case study, which is DittoDitto is a matchmaker for students that uses iMessage. Using Spectrum, Ditto connected more than 42,000 users and processed more than 400,000 messages — entirely through iMessage, without asking users to download anything new. Ditto was used in the same manner as messaging friends, which is through the existing app on the phone.
Photon tells an example of a real-world impact from a previous client. A user’s mother — someone who had never downloaded a new app and did not know what a “prompt” was — interacted with an AI agent through iMessage for the first time. She saw the agent in her list of contacts just like other people. The agent was treated the same as her son. It was not necessary to get used to a new interface, there was no onboarding or friction. Photon says that this is the moment of true adoption.
Open Source and Cloud: Two options for deployment
Spectrum comes in two different configurations. Spectrum is available in two configurations. Spectrum SDK It is open-source under the MIT License and can be hosted by you. It offers a unified message interface with type-safe messaging, and the capability to send messages. DefinitionPlatform The API supports iMessage, WhatsApp Telegram, Terminal, and customized platforms.
Spectrum Cloud Photon hosts its infrastructure. The managed iMessage/WhatsApp connectivity, which teams can activate within minutes, comes with audit logs and human-in the-loop control. Spectrum Cloud offers a faster way to get to market for teams who want to launch quickly, without having to manage messaging infrastructure.
What you need to know
- Spectrum does not solve the model problem but the distribution of agents problemThe majority of AI agents are not adopted because users have to download or open new dashboards. Spectrum routes agents directly into iMessage, WhatsApp, Telegram, Slack, Discord, Instagram, and Phone — platforms billions of people already use daily.
- Every platform can be coded with the same codebaseDevelopers only need to create agent logic one time using the
spectrum-tsTypeScript SDK can be used to add multiple platforms using a single tool.The following are some of the providers:array. Changing from iMessage to iMessage and WhatsApp only requires you to change one line of codes. Spectrum takes care of all the platform differences. - Infrastructure built to support production-grade latency: Spectrum delivers messages in under 1 second on Photon’s edge-first network, with a measured E2E latency of ~150–250ms — significantly faster than the CPaaS industry average of ~500ms–1.5s — backed by 99.9% uptime.
- SDK is open source and MIT certified, with a Managed Cloud option.: Dev teams can self-host the entire Spectrum stack or use Spectrum Cloud for managed iMessage You can also find out more about the following: WhatsApp connectivity, built-in audit logs, message histories, and human-in-the-loop controls — without any architectural changes as they scale.
Check out the GitHub Repo and Product Page. Also, feel free to follow us on Twitter Don’t forget about our 130k+ ML SubReddit Subscribe now our Newsletter. Wait! What? now you can join us on telegram as well.
You can partner with us to promote your GitHub Repository OR Hugging Page OR New Product Launch OR Webinar, etc.? Connect with us

