Add an AI chatbot with sources to a WordPress site on AWS (Amazon Bedrock)
说明与用途
在 WordPress 站点上添加使用 Amazon Bedrock 的 AI 聊天机器人,回答来自站点页面的问题并引用来源,同时管理身份验证和成本限制。
问题
Deploy an AI chatbot that answers visitors using the site's own pages and cites sources, while managing AWS Bedrock usage and costs.
结果
The WordPress site now hosts an AI chatbot that answers questions using its own pages, cites sources, and limits usage to prevent cost overruns.
工作流
- Install "AI Chatbot, Agents & MCP for Amazon Bedrock" plugin via WordPress Plugins > Add New.
- Open AI Chat Bedrock > Settings, select AWS Region (e.g., Asia Pacific Tokyo) and model.
- Configure authentication: either attach IAM role to server or create Bedrock API key and paste into settings (or set AI_CHAT_BEDROCK_API_KEY in wp-config.php).
- Run Diagnostics to verify connection and permissions.
- Insert chat block with [ai_chat_bedrock] shortcode or enable floating chat for all pages.
- Optionally enable WordPress AI plugin features or AI agents via Settings > Agents and tools.
- Set daily request limits and monitor usage via AWS Budgets.
证据
This guide sets up AI Chatbot, Agents & MCP for Amazon Bedrock so a WordPress site answers visitors from its own pages, with links to the pages it used, on Claude or another model in Amazon Bedrock.
Choose the AWS Region, such as Asia Pacific (Tokyo), and pick a model. Enable access to that model in the same Region in the Amazon Bedrock console if your account requires it.
Never give a WordPress site broad AWS administrator permissions.
Insert the chat block, add [ai_chat_bedrock] to a page, or turn on the floating chat for every page. Answers come from your published pages in the visitor's language, with their sources.
- 记录日期: 2026-10-11T15:41:12.035Z