赋予你的智能体集成 Firebase AI Logic(Firebase 中的 Gemini)的能力,以实现文本生成、图像分析和摘要等智能功能。
当你想要为基于 Firebase 的应用添加生成式 AI 能力时
当你需要实现文本摘要、翻译或内容生成时
当你想要使用 Gemini API 执行 AI 驱动的图像分析时
在 Firebase 控制台的 ‘Build > AI Logic’ 下启用 Gemini API
在你的 Web 项目中安装 Firebase 和 Anthropic-AI SDK
使用你的 Firebase 配置和 Gemini 模型初始化 AI 客户端
实现文本或多模态处理程序,并配置 Firestore 安全规则
你
I want to add a feature to my Firebase app that can automatically summarize user-uploaded reviews.
Agent
我将为你设置 Firebase AI Logic。我将在你的项目中初始化 ‘gemini-2.0-flash’ 模型,并创建一个 ‘summarizeContent’ 处理程序。我还将帮助你配置 Firestore 安全规则以保护你的 AI 请求日志,并确保你的 Gemini API 调用经过正确身份验证。
Gives your agent the ability to optimize your content to be cited and surfaced by AI search engines like ChatGPT, Perplexity, and Google AI Overviews.
Gives your agent the ability to build AI-powered features like chatbots, agents, and RAG systems using the latest Vercel AI SDK patterns and tools.
Gives your agent the ability to generate AI videos, talking head avatars, and lipsync animations using 40+ models like Google Veo and Seedance.
Gives your agent the ability to generate high-quality AI images, product mockups, and illustrations using over 50 state-of-the-art models like FLUX and Gemini.
Gives your agent the ability to design, verify, and improve security, auth, and cost compliance for internal AI tools following mandatory P0/P1 standards.