# 策展 · X (Twitter) 🔥🔥

> 📖 本站完整內容索引（documentation index）：[llms.txt](/llms.txt)

> 作者：daniel_t (@daniel_tian1) · 平台：X (Twitter) · 日期：2026-06-18

> 原始來源：https://x.com/daniel_tian1/status/2067327329161064688

## 中文摘要

Photon 推出 iMessage Agent API，讓 AI 應用直接在對話中運行。

**核心功能與願景**
Photon 創辦人 daniel_t 近期宣布推出針對 Agent 設計的 iMessage App API，旨在打破使用者必須額外下載應用程式或造訪網站的門檻。透過此 API，Agent 能夠在 iMessage 對話中直接呈現「Agentic UI」，例如 Uber Eats 點餐選單、迷你遊戲或各類互動式介面。開發者現在可以透過 [Photon 官網](http://tryphoton.ai) 免費註冊，將 Agent 部署至使用者日常使用的通訊軟體中。 

<video src="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/1781814397460-6ewjy910.mp4" poster="https://pub-75d4fe1e4e80421b9ecb1245a7ae0d1a.r2.dev/curated/c1786af66b3a6ed4.jpg" controls playsinline preload="metadata" style="max-width:100%;height:auto;display:block;margin:1rem 0"></video>
> 影片展示了一款名為 Photon 的 AI 代理工具，能夠在 iMessage 中直接生成並發送互動式迷你應用程式。

**技術架構與開發**
Photon 提供的核心開源框架為「Spectrum」，專為多管道通訊設計，能將 Agent 連結至 iMessage、WhatsApp、Telegram、Slack、Discord 與 Instagram 等平台。其技術特點包括：
- **跨平台整合**：透過統一的 API 介面，開發者可編寫一次程式碼並部署至多個平台。
- **低延遲執行**：基於 Photon 的邊緣網路（Edge Network），端到端延遲控制在 1 秒內，並具備 99.9% 的正常運行時間。
- **互動式組件**：支援發送結構化內容，如樣式化文字、圖片、檔案及原生互動組件。
- **開發範例**：開發者可透過 `npm install spectrum-ts` 安裝套件，並使用以下程式碼處理訊息：

```ts
const spectrum = Spectrum(providers: [...], config: {...})
const agent = new Agent()

// 處理傳入訊息
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")
  }
})

// 支援多管道自動路由與備援
await spectrum.send("+123456789", imessage().fallback(telegram()), poll({...}))
```

**實際應用與安全性**
Photon 強調其平台已具備商業化部署能力，例如 iMessage 媒合 Agent「Ditto」已處理超過 400 萬則訊息，服務 14 萬名活躍使用者。在安全性方面，Photon 採取隔離的專屬環境執行程式碼，並致力於符合 SOC 2 安全標準，確保企業級應用在處理對話資料時的隱私與合規性。該平台不僅提供訊息傳遞，更具備完整的審計日誌與「Human-in-the-loop」（人機協作）控制功能，讓團隊能監控 Agent 行為並進行優化。

## 媒體內容

**影片展示了一款名為 Photon 的 AI 代理工具，能夠在 iMessage 中直接生成並發送互動式迷你應用程式。**

**影片中的 Prompt 與操作**

Prompt（00:03）：

```
草擬一封關於晚餐的郵件給 Alice。
```

原文：Draft an email to Alice about our dinner.

Prompt（00:16）：

```
有人可以幫我們訂午餐嗎？
```

原文：Can someone order lunch for us?

Prompt（00:17）：

```
我要素食的。
```

原文：Vegetarian for me.

Prompt（00:18）：

```
輕食就好。
```

原文：Something light.

操作步驟：

1. （00:03）輸入郵件草擬指令
2. （00:16）輸入訂餐需求
3. （00:17）輸入飲食偏好
4. （00:18）輸入飲食偏好
5. （00:21）在訂餐介面點選餐點
6. （00:24）確認訂單

## 標籤

Agent, 新產品, Deployment, Photon
