Bring Agents to the Interfaces Millions Already Use.

Spectrum is an open-source framework that connects your agents to iMessage, WhatsApp, Discord, Slack, Telegram, Instagram, and other interfaces people use every day.

Get Started

npm install spectrum-ts

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({...}))

Run

Simple, powerful, unified API that connects to infinite platforms

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 support 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.

Cross Channel

First-class for the agent era.

Photon delivers reliable, low-latency agent execution and messaging infrastructure, built to scale with real user demand.

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"]
})

Adaptive content rendering.

Spectrum adapts message structure, formatting, and interaction patterns to match native platform constraints, ensuring conversations feel natural and responsive everywhere.

We keep everything secure.

SOC 2 ready for serious teams.

Spectrum is built to meet SOC 2 standards for security, availability, and operational control - giving teams the confidence to deploy agents into production conversations.

Trusted by the world's best agent teams and developers

Built for teams at every scale

Nobody's going to download an app or visit a website just to talk to your agent.

Deploy your Coding Companion, Custom Support, and Trading agents to the platforms people actually live on.

manifesto

What we do at Photon is taking away yet another barrier of usage of Agents. We think we have a chance to make a difference.

Start building with Spectrum today