Home / Companies / Webflow / Blog / Post Details
Content Deep Dive

How to build an AI-powered app on Webflow Cloud with OpenAI and Supabase

Blog post from Webflow

Post Details
Company
Date Published
Author
Ismail Ajagbe
Word Count
4,617
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

Webflow Cloud enables developers to run a Next.js AI chat application, including OpenAI API calls, streaming logic, and optional Supabase-backed conversation storage, within Webflow’s infrastructure rather than relying on separate serverless services. The setup requires Cloud access, Node.js 22+, the Webflow CLI, a securely stored OpenAI API key, and optionally a Supabase project, while local Workers-compatible preview testing is recommended through the OpenNext Cloudflare adapter. The implementation uses request-time client factories because environment variables are injected per request in the Cloudflare Workers runtime, a Next.js route handler that relays OpenAI streaming tokens through Web Streams, and a client component that incrementally renders the response while correctly using Webflow’s base path for browser-side API requests. Persistent chat history can be stored in a Supabase messages table keyed by session or user identity, but it requires careful Row Level Security, grants, and policies to prevent public access to conversation data. Deployment occurs through the Webflow CLI after production variables are configured in the Webflow dashboard, and common issues include missing deployed variables, prematurely aborted streams, oversized conversation context, and Supabase permission rules that silently prevent history retrieval.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 27 649 155 80 -85%
Edge Computing 1 3 3 3 -83%
Observability 1 472 102 54 -85%
Serverless 1 156 54 28 -80%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.