November 19, 2024

AI chat with Cloudflare Durable Objects

Architecture diagram showing chat worker durable object with AI and content owner and reader users

Content owners (editors)

Readers

AI models

debug

user: anonymous

{
  "path": "/blog/ai-chat-with-cloudflare-durable-objects",
  "attrs": {
    "title": "AI chat with Cloudflare Durable Objects",
    "date": "2024-11-19",
    "layout": "BlogPostLayout"
  },
  "md": "# AI chat with Cloudflare Durable Objects\n![Architecture diagram showing chat worker durable object with AI and content owner and reader users](/images/chat-worker-durable=object.webp)\n\n### Content owners (editors)\n- Use regular WYSIWYG editor controls to edit page content.\n- Chat with AI e.g. to make changes or to brainstorm ideas.\n- Chat with other users.\n\n### Readers\n- Chat with AI and with other users about the content.\n- E.g. may provide feedback or ask questions.\n- In general are not allowed to edit content.\n\n### AI models\n- Receive context and messages from readers and editors.\n- Respond with text or with tool calls to edit content.\n",
  "html": "<h1>AI chat with Cloudflare Durable Objects</h1>\n<p><img src=\"/images/chat-worker-durable=object.webp\" alt=\"Architecture diagram showing chat worker durable object with AI and content owner and reader users\"></p>\n<h3>Content owners (editors)</h3>\n<ul>\n<li>Use regular WYSIWYG editor controls to edit page content.</li>\n<li>Chat with AI e.g. to make changes or to brainstorm ideas.</li>\n<li>Chat with other users.</li>\n</ul>\n<h3>Readers</h3>\n<ul>\n<li>Chat with AI and with other users about the content.</li>\n<li>E.g. may provide feedback or ask questions.</li>\n<li>In general are not allowed to edit content.</li>\n</ul>\n<h3>AI models</h3>\n<ul>\n<li>Receive context and messages from readers and editors.</li>\n<li>Respond with text or with tool calls to edit content.</li>\n</ul>\n"
}