Bring Agents to the Interfaces Millions Already Use.
Spectrum is an open-source framework that connects your agents to iMessage, Telegram, WhatsApp, Slack, Discord, Instagram, and other interfaces people use every day.
Cross Channel
const spectrum = Spectrum(providers: [...], config: {...})
const agent = new Agent()
// Handle incoming messages by type
spectrum.onMessage(async ({ space, message }) => {
switch (message.type) {
case "text":
const response = await agent.generate(message.content)
await space.send("Hello World", attachment(...))
await space.send(response)
case "attachment":
await message.react("like")
}
})
// Auto-select the best available channel for delivery
await spectrum.send("+123456789", sticker(...))
// Explicitly route through iMessage with Telegram as fallback
await spectrum.send("+123456789", imessage().fallback(telegram()), poll({...}))
Simple, powerful, unified API
- Send rich, structured content
- Including styled text, images, files, and more.
- Deliver Generative Agentic UI as native, interactive components across platforms.
- Available across every interface: From direct messages to group chats and beyond.
- Built for omni-channel communication, seamlessly supporting text, voice, and video.
- Tap into platform-specific capabilities when you need deeper, native integrations.
- Stay proactive with real-time events, event-driven and responsive.
Photon Spectrum
Low latency, high reliability. Spectrum is built to power real-world agents at scale - delivering fast, reliable messages in under 1 second on Photon's edge network with 99.9% uptime.
//iMessage
imessage(space).sendPoll({
question: "Where should we eat?",
options: ["Sushi", "Hotpot", "Italian"]
})
Sushi
Hotpot
Italian
Adaptive content rendering. Spectrum adapts message structure, formatting, and interaction patterns to match native platform constraints, ensuring conversations feel natural and responsive everywhere.
Trusted by the world's best agent teams and developers
Ditto is an iMessage-based matchmaker agent for college students. Learn how we helped them connect 42,000+ users through iMessage.
140k+ active users
4M+ messages processed
Nobody's going to download an app or visit a website just to talk to your agent.
Telegram
iMessage
Slack
Discord
WhatsApp
Phone
Start building with Spectrum today
Products
Community
Manifesto
What we do at Photon is taking away yet another barrier of usage of Agents. We believe we have a chance to change the way people think about Agents. We call it Agents for the rest of us because Agents aren't just for the elite; we think we have a chance to make a difference.