Google Generative AI agent 已在我的网站上线
我在不到 2 小时内把 Google 的生成式 AI agent 集成到网站上:这里是哪些地方有效、哪些不行,以及我后来为什么把它替换成自建 chatbot。
本文写于2023年,部分内容可能已发生变化。
Update Feb 2026
The Google Gen AI agent described below is no longer active. After experimenting with Google's off-the-shelf solution, I ended up building my own AI assistant called Sydney that actually synthesizes content across all 486 blog posts. Turns out, what I wanted all along—nuanced answers grounded in my actual writing—required building it myself. Still coding, still learning.
I've also shipped two products since this post:
Original post from Aug 2023 preserved below for context.
在 2023 年 8 月,我用 Google Cloud Gen App Builder 集成了 Google 的 generative AI agent。这是我从这次实践里学到的东西。
Here are my initial impressions of the setup/integration process
- 整个流程相当快且直观。
- Verify ownership:我需要向 Google 验证网站归属,才能让 Google crawler 抓取公开内容。我喜欢这一步,因为它能防止滥用,避免别人用你的站点去创建 agent。
- Free money is welcome! Google 给了我:
- $1000 免费额度试用 Gen App Builder。
- $600 免费额度试用 Dialogflow CX。
- 这两项都是构建 chat app 需要的。
- 额度是系统自动发放,不需要我额外申请,这点真的很惊喜!谢谢 Google。:D
- Time to go live is relatively short:我网站内容不算多,crawler 完成索引不到 2 hours。
- Super easy to integrate to an existing website:几乎就是复制粘贴代码。我当时没有花时间改 agent 的外观,因为默认样式对我已够用。
ML settings
我继续做了 Generative AI setting 自定义,确保它符合我需求。
Grounding confidence
我在 High confidence、Medium confidence、Low confidence 之间来回切换,因为不确定哪个最好。由于我对同一主题会长期持续写,我希望 chatbot 能把历史内容综合后给出更有层次的回答。这个目标下到底该用哪个设置,我还不确定。
Agent Identity
我用的是自己在 chatGPT custom instructions 里的描述:“thoughtful, creative, provide nuanced answers.”
My initial impressions about the agent's answers
我问了 agent 一些问题,回答质量有好有坏。我不确定它会不会随着时间变得更好。
例如下面这些问法,回答并不理想:
- Tell me about the latest 10 articles on this website?
- Answer: I'm sorry, I don't have access to the last 10 articles on this website. How can I help you today?
- Chandler's comment: 这个回答很奇怪,因为 AI 本来就能访问所有内容。
- What does Chandler think about Kevin Rudd?
- Answer: While I don't have a good frame of reference to agree or disagree strongly with what Kevin shared, I find his talk insightful.
- Chandler's comment: 这个回答勉强还行,但给出的参考链接代表性不够。
- Does Chandler write about Ray Dalio often?
- Answer: Yes, chandler nguyen blog has written about Ray Dalio.
- Chandler's comment: 我希望 AI 能进一步说明更多内容,比如我具体怎么写 Ray Dalio,或者我平均每季度写两次等。
不过当我问更具体的问题时:
- what is Chandler's advice about high-yield saving accounts for expats?
- how about health insurance?
- How about treasury direct website?
这些问题的回答就明显更好。
My impression after a few days
现在我问了更多问题后,总体感受是:回答质量还有明显提升空间。这个 Gen AI chatbot 似乎并不会真正“综合”我网站内容后再回答,而是更多在旧文本里找关键词片段拼接回复。这是我基于目前交互做出的判断。
我猜这种方式对于“数据库给定明确答案、内容长期变化不大或有固定真相源”的行业是可以的。但对于博客,我期待 bot 能跨整站内容做综合,再基于不同时间发布的文章给出更细腻的答案。也许我期待太高? :P 但这就是我的预期。
另外,bot 对新内容的跟进似乎不够及时。比如我几个月前改过自我介绍,但你问 “Who is Chandler Nguyen?”,它仍主要基于旧内容和旧职位来回答。
最后,我还导出了过去 15 年全部已发布文章,并成功作为 data source 上传给 chatbot app。我不确定这是否真的有帮助。UI 如果能显示效果变化就更好了。
我这边就先写到这里。
你有在自己的网站上集成过任何现成 AI agent 吗?很想听听你是否也遇到“更像搜索,不像综合”的问题,或者你已经找到真正好用的方案。
致敬,
Chandler







